Embedded Coder Support for STM32 Nucleo-H7a3zi-q

4 views (last 30 days)
Yohannh
Yohannh on 27 Mar 2024
Answered: Asim on 12 Jul 2024
I have trying to get the NUCLEO-H7A3ZI-Q to work with Embedded Coder Support for STM32. So far I have gotten simple models with GPIO digital write and sending data on UART working and running properly from simulink. But basic models using the ADC and PWM blocks of Embedded Coder Support for STM32 STM32H7xx(single core) library is not working. Also monitor and tune function is also not working and giving XCP Internal timeout error. I've done all the steps mentioned in the following thread too
Is there any documentation or material available speciifally for configuring simulnk and stmcubemx parameter for the stm32h7a3zi processors and nucleo boards to build and run models from simulink? I am using NUCLEO-H7A3ZI-Q as the developmemt board. The board mentionioned in embedded coder support package supported board list is NUCLEO-H7A3ZITQ but I am assuming this is the same as mine as I can't find any NUCLEO-H7A3ZITQ board.
  2 Comments
Yohannh
Yohannh on 27 Mar 2024
Any example models built and working on STM32H7xx(single core) or NUCLEO-H7A3ZI-Q is appreciated.
Nithin
Nithin on 2 Apr 2024
Could you try disabling ADC calibration from the model's Configuration Parameters and then check? Additionally, you could also try keeping only one of ADC of PWM blocks active (by commenting out the other), and then running Monitor & Tune. This will help isolate the problem at hand.

Sign in to comment.

Answers (1)

Asim
Asim on 12 Jul 2024
Hello Yohannh,
I have encountered a similar error related to the 'XCP Internal Timeout Error' in external mode. Here is a workaround that helped me resolve the issue:
1. Check Serial Communication: Ensure that serial communication is functioning correctly.
2. Vary Baud Rates: If serial communication is not happening, try adjusting the baud rates on both the IOC and the configuration parameters of the Simulink model.
3. Correct Port Selection: Make sure the correct port is selected for data transfer.
I hope this helps!
Best Regards,
Asim Asrar

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!