Clear Filters
Clear Filters

STM32F4xx SPI Block Error

7 views (last 30 days)
behnam sanaei
behnam sanaei on 25 Aug 2024 at 9:04
Commented: behnam sanaei ongeveer 23 uur ago
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.

Answers (1)

Akshat Dalal
Akshat Dalal on 25 Aug 2024 at 9:27
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 Comment
behnam sanaei
behnam sanaei ongeveer 23 uur ago
Thanks for your response. I checked the link but it didn't work.

Sign in to comment.

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!