Skip to main content
Kamurasi-Jordan-Arthur
Associate III
May 12, 2026
Question

Run failed: Error: STM32CubeProgrammer exited with code 1

  • May 12, 2026
  • 1 reply
  • 108 views

Hey there, 
I have run into an issue while trying to using the new edge AI-studio software. I try to make a run such that I am able to the reach the generate project page.

However, currently, I am stack at the point where the pipe running in the EDGE AI studio tries to use the STM32 cube programmer, I think to run the binary and verify it works before proceeding to provide the generated project page.

My set up includes a custom made board, set in DEV boot, and an st-link v3 pwr connected to the custom board. I can confirm that I am able to program the board using cube programmer. I am also able to debug the code programed to this board using XIP paradigm , there for I think the connection there is okay,

The custom boards OCTO XSPI is very similar to that of the stm32n6570.DK as I am able to use the default bootloader for the dev board to be able to program it.

How ever the logs from running the cube AI studio say 

Run failed: Error: STM32CubeProgrammer exited with code 1

I attached a log file to this run as reference.
The very last line in the logs should be the place you are probably looking for. 

I have no communication over USART1 to the virtual com port over USB to on the stlink v3pwr if that's what the SW is looking for to verify if things work.


1 reply

Kamurasi-Jordan-Arthur
Associate III
May 12, 2026

This is just an update.
and just now checking with the STM32N657 Nuecleo board.

I see this log, 
Slightly different but very similar failure, 

My Question, Is the tool only meant to work with the STM32N650-DK. cause I saw another post where they talked about the choice of the bootloader for the Nucleo  not having been put into consideration during the AI studio's SW design at the time.

I cant test with the dev board at the time cause I have had it missed up recently. i.e "wont power up correclty".

Any immediate insight into the matter will save me the project by fur.