STM32F4xx SPI Block Error

4 vues (au cours des 30 derniers jours)
behnam sanaei
behnam sanaei le 25 Août 2024
I'm working with a customized embedded system with stm32f410C8 processor in simulink R2024a. I'm using the latest version of embedded coder support package for STM32 procesors(version 24.1.3). The goal is communicating with a sensor over SPI. In a simple model I have added just a SPI Tranmit block.When I set chip select calling mehod to "Provided by the SPI peripherial" there is no error in model building process. but when I set chip select calling mehod to "Expilicit GPIO calls" I got this strange error without any hints to debug
### Starting build procedure for: H4CAModel
### Build procedure for H4CAModel aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
=====================================================================
H4CAModel Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 0.63179s
Unrecognized field name "Signal".
I have done many projects with this support package but with other processors like stm32h7 series and i didn't encountered this error. The point to be noted in this case is that SPI blocks for STM32F4xx processors have been added to suport package recently(R2024a).
Every little tip can go a long way.
Thanks.
  1 commentaire
Kohei Sagawa
Kohei Sagawa le 1 Sep 2024
I got same problem with F767ZI.

Connectez-vous pour commenter.

Réponses (2)

Akshat Dalal
Akshat Dalal le 25 Août 2024
Hi,
This error typically occurs when the code generation information file doesn't exist and can arise due to various reasons. Please refer to the following MATLAB Answer to see a few trouble shooting steps for this issue: https://www.mathworks.com/matlabcentral/answers/1974729
  1 commentaire
behnam sanaei
behnam sanaei le 25 Août 2024
Thanks for your response. I checked the link but it didn't work.

Connectez-vous pour commenter.


Saurav Shandilya
Saurav Shandilya le 10 Sep 2024
The issue is not getting reproduced by just using SPI transmit block. It would be great if you can contact MathWorks Technical Support and share the models and IOC file so that the issue can be debugged properly.

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by