STM32H753 Processor-in-the-loop Error

20 ビュー (過去 30 日間)
Ben Hudson
Ben Hudson 2024 年 10 月 28 日 13:33
回答済み: Divyanshu 2024 年 10 月 30 日 3:55
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:
  1. In the Simulink settings under 'Hardware Implementation' I've selected the correct processor (STM32H7xx Based (single core)) and set FreeRTOS as the operating system
  2. 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
  3. Set the 'Connectivity Mode' to ST-Link using SWD
  4. Opened the .ioc file by clicking 'Launch' and configured as follows:
  5. Under 'System Core -> SYS' set the timebase source to TIM5
  6. Under 'Connectivity -> USART3 -> DMA Settings' ensured there is a USART3_RX and added a USART3_TX with default settings
  7. 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)
  8. Under 'Project Manager', ensured 'Do Not Generate the main()' is ticked
  9. Under 'Project Manager', using the STM32Cube FW_H7 V1.11.2 firmware package
  10. 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?

回答 (1 件)

Divyanshu
Divyanshu 2024 年 10 月 30 日 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!

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by