Skip to main content
Graduate
December 20, 2024
Solved

STM32N6570-DK AI demo not working

  • December 20, 2024
  • 4 replies
  • 2370 views

Hello,

I recently bought the newly released development kit STM32N6570-DK that includes a touch screen and a MIPI camera manufactured by ST. It comes preprogrammed with some nifty demos, including the AI demo which should show off the AI capabilities with a stream from the included camera. When I load the AI demo the screen freezes up, and I can see the backlight to the screen turn off.

Additionally I noticed there are some level shifters (TR1 on the camera module) on the PCB for the camera that either carry a clock or data line for MIPI. When I activate the demo the 3.3V line starts toggling at about 160MHz for about 2ms, and then stays low after that.

For reference, I am powering the dev kit off of a USB 3.0 port on my laptop.

Could you help me identify if this is a camera module, dev kit, power, or cable issue?

Thanks,

-Alex

    This topic has been closed for replies.
    Best answer by jiangfan

    Yes, STM32N6570-DK comes preprogrammed with some nifty demos, including the AI demo which should show off the AI capabilities with a stream from the included camera. The AI demo with the included camera needs more power/current. So, it is suggested to power the board via USB-C to USB-C cable, either from laptop or USB-C charger. Optionally, you may power board with USB-A to USB-C cable at USB1 port and jumper JP2 at 3-4 5V_USB_SNK position - no current limit circuit in this power path.

    USB-A to USB-C cable connecting between on board ST-LINK/V3EC port and laptop is not enough to provide the needed current, hence you "can see the backlight to the screen turn off", meanwhile you should see LD3 turning RED on which means over-current status.

    4 replies

    jiangfanAnswer
    ST Employee
    December 20, 2024

    Yes, STM32N6570-DK comes preprogrammed with some nifty demos, including the AI demo which should show off the AI capabilities with a stream from the included camera. The AI demo with the included camera needs more power/current. So, it is suggested to power the board via USB-C to USB-C cable, either from laptop or USB-C charger. Optionally, you may power board with USB-A to USB-C cable at USB1 port and jumper JP2 at 3-4 5V_USB_SNK position - no current limit circuit in this power path.

    USB-A to USB-C cable connecting between on board ST-LINK/V3EC port and laptop is not enough to provide the needed current, hence you "can see the backlight to the screen turn off", meanwhile you should see LD3 turning RED on which means over-current status.

    Graduate
    December 20, 2024

    Thank you! Powering over USB1 and changing the J2 jumper works.

    Visitor II
    March 28, 2025

    Hi,

    I thought power was my STM32N6570-DK problem too, but it seems not.

    I have been trying to flash the n6-ai-getstarted demos seperately to the default shipped AI demos just to see it works.

     STM32N6-AI - AI software ecosystem for STM32N6 with Neural-ART accelerator - STMicroelectronics

    Tried on both Linux/Ubuntu and Windows with both CubeIDE and CubeProgrammer.

    Drivers/usb seem fine but i keep getting a "Connection to device lost" on CubeProgrammer or "Waiting for debugger connection" errors when i try to flash N6 with new application so its not programming any new applications.

    Tried with JP2 at position 1-2 and 3-4 with all different USB cable types too.

    Happens when i select "Run after programming" on CubeProgrammer or hit B1 (Reset Button on DK).

    Verbose CubeProgrammer Log attached, Any ideas ?

    See at end of log "14:33:17:828 : Warning: Connection to device 0x486 is lost"

    thanks

     

     

    DeviceManager.pnglsusb.pngstm32Prg.pngstm32cubeIDE.png

    ST Employee
    March 31, 2025

    it seems that power was your STM32N6570-DK problem too.

    Did you power the board via USB-C to USB-C cable from your PC(or USB-C charger) and ensure it can provide >=2A current ?

    Visitor II
    March 31, 2025

    Yes, im supplying >=2A on  USB1(CN18) and JP2 is at position 3-4 as per doc.

    Discovery kit with STM32N657X0 MCU - User manual

    Please suggest best boot option for starting ?

    ado_0-1743418136887.png

    And, Maybe taking a step back, where should i be starting, running these examples below ? 

    STM32CubeN6 - STM32Cube MCU Package for STM32N6 series (HAL, CMSIS devices, and examples running on ST boards) - STMicroelectronics

    or these ?

    STM32N6-AI - AI software ecosystem for STM32N6 with Neural-ART accelerator - STMicroelectronics

     

     

     

    ST Employee
    April 1, 2025

    Flash boot is used if board correctly flashed when user wants to try a new example/demo etc.

    Visitor II
    April 9, 2025

    Hope that all worked, for me , one thing that threw me was when following this README to load the object detection to the DK,

    stm32ai-modelzoo-services/object_detection/deployment/README_STM32N6.md at main · STMicroelectronics/stm32ai-modelzoo-services · GitHub

    and it says 

    "3. Set the switch BOOT0 to the right (dev mode) and disconnect/reconnect the power cable of your board."

    i believe it should say BOOT1 and not BOOT0 ?