STM32H753 Processor-in-the-loop Error
21 views (last 30 days)
Show older comments
Hi,
I'm trying to run a PITL simulation using an STM32 NUCLEO-H753ZI board. I have been getting an error which is preventing me from deploying the code to the board and so far have been unable to fix it. I've attached an excerpt from the Simulink logs. To the best of my knowledge I've followed the instructions at https://uk.mathworks.com/help/ecoder/stm32-get-started.html to setup the STM32 hardware support package. I have also tried uninstalling and re-installing the support package. I have done the following to configure the PITL simulation:
- In the Simulink settings under 'Hardware Implementation' I've selected the correct processor (STM32H7xx Based (single core)) and set FreeRTOS as the operating system
- Under 'Target Hardware Resources', created .ioc file and configured the 'Connectivity' tab to use the correct COM port and set the USART port to USART3
- Set the 'Connectivity Mode' to ST-Link using SWD
- Opened the .ioc file by clicking 'Launch' and configured as follows:
- Under 'System Core -> SYS' set the timebase source to TIM5
- Under 'Connectivity -> USART3 -> DMA Settings' ensured there is a USART3_RX and added a USART3_TX with default settings
- Under 'Middleware -> FreeRTOS' set Interface to CMSIS_V2. Under 'Advanced Settings', set Use_NEWLIB_REENTRANT to 'Enabled'. Under 'Config Parameters' set TIME_TASK_PRIORITY to 41 (prompted to set to >40 by Simulink)
- Under 'Project Manager', ensured 'Do Not Generate the main()' is ticked
- Under 'Project Manager', using the STM32Cube FW_H7 V1.11.2 firmware package
- Under 'Advanced Settings', ensured all available drivers which have Low-Level (LL) options had been enabled. Ensured none of the generated function calls are 'Static'
I have also created a generic main.h file as Simulink complained about one not existing. I've attached this below as well.
Has anyone seen this issue before / know what I'm doing wrong?
0 Comments
Answers (1)
Divyanshu
on 30 Oct 2024 at 3:55
Although you followed the documentation getting started with STM32 properly and even tried installing & uninstalling the support package, but a possible reason for the issues encountered can be that 'STM32 NUCLEO-H753ZI' board is not supported by MATLAB. Here is the list of all STM32 boards supported:
Hope it helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!