STM32F4xx SPI Block Error
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (2)
Akshat Dalal
el 25 de Ag. de 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
Saurav Shandilya
el 10 de Sept. de 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.
0 comentarios
Ver también
Categorías
Más información sobre STMicroelectronics Discovery Boards en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!