cancel
Showing results for 
Search instead for 
Did you mean: 

Can't connect custom board to STM32Cube AI Studio

sleepytui
Associate

Hi everyone,

I’m having an issue connecting my custom board based on STM32H723ZGT6 to STM32Cube.AI StudioThe software cannot detect any COM port or target device.

Setup:

    • UART interface via USB-TTL converter

    • Using USART1 (PA9 TX / PA10 RX)

    • TX/RX crossed correctly

    • Windows Device Manager detects the COM port normally

    • The same COM port appears and in other software (e.g. Arduino IDE)

 

    • c9a89973beabc55de226abe2c09537a2.png

 

Dependency Software versions (all latest): STM32CubeProgrammer v2.22, path in setting also are correct.

Additional info:

    • I can connect to the MCU successfully using ST-LINK in STM32CubeProgrammer

    • However, UART connection in CubeProgrammer fails with timeout

 

Question:

What is the correct way to make STM32Cube AI Studio detect and successfully connect to an STM32H723ZGT6 MCU on a custom board?

Thanks for any advice.

3 REPLIES 3
hamitiya
ST Employee

Hello @sleepytui 
We detect only peripherals with STMicroelectronics as manufacturer.

If your ST-Link is genuine (ST-Link v2/v3), it should be the case.

In Ports (COM & LPT) you should have:

image.png

 

I will note the point in order to display other COM ports if possible, but could you confirm how your ST-Link is connected to your board?

 

Thanks in advance.

Best regards,

Yanis


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi Yanis,


Thanks for your advice, 
I have changed the ST-LINK, and the board is now correctly detected and connected in AI Studio.

However, I’ve run into a new issue during the "Validation on Target". Even though the connection is established, the "Run" process fails with the following errors:

E200(ValidationError): TARGET: Unable to bind the ST.AI runtime with "network" c-model: []
E801(HwIOError): Invalid firmware - COM10:115200

It seems the host cannot communicate with the firmware once it's flashed. I am also seeing an RCC warning popup during project generation:

aa420fcbbe309515b42e0b8f143d621b.png

And there is my connection settings:

f850dc0d0d79c538036ba5a1767c2505.png

I also attached the full log file below for more details. Any guidance or suggestions to resolve this validation error would be much appreciated. Thank you for your help!

Tui

 

hamitiya
ST Employee

Hello @sleepytui 

Having RCC issue from STM32CubeMX is unexpected and is probably the reason why the validation fails. If you have an error in the clock settings, the project for sure won't start.

 

Could you please share the IOC file available in your folder :

C:\Users\admin\.stm32cubeaistudio\workspace\H723_Test\.ai\run\run-2\

 

I will check on my end if the clock settings I've set for your MCU is incorrect. If so, I will help you update your environment to go further.

 

Best regards,

Yanis


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.