cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6570-DK AI demo not working

ClosedBridge
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
jiangfan
ST Employee

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.

View solution in original post

5 REPLIES 5
jiangfan
ST Employee

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.

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

ado
Associate

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

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 ?

ado
Associate

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