Skip to main content
vlal
Associate II
September 16, 2019
Solved

LED blinking using Simulink and STM32-MAT/TARGET not working

  • September 16, 2019
  • 13 replies
  • 3156 views

I have installed STM32-MAT/TARGET , generated configuration with CubeMx, made simulink model, generated c code for keil, and compiled with out errors but the port is not toggling. I have been trying for last two weeks to get it work. I have attached cubemx file and simulink model with this message, kindly someone help me

Matlab2019a

STMcubeMx 5.3

I have tried with the simpleGPIO example supplied also, but that too didn't worked, is there any compatibility issue between the cubeMX and Matlab2019 version?

The examples supplied are made with earlier version of cubeMX and Matlab

This topic has been closed for replies.
Best answer by Cyril FENARD

Hi @vlal​ ,

Your main.c is not correct, stm32xxxx_it.c is missing.

It seems as if STM32\script\customRoutineProcess.tlc is not the correct one.

This file was strongly changed with the 5.1.0 version of STM32-MAT/TARGET (to fit with STM32CubeMX V5.1.0 and later).

Regards.

Cyril

13 replies

vlal
vlalAuthor
Associate II
September 24, 2019

Uploaded the project folder or last answer with this message

main.c appears to be good

Cyril FENARD
Cyril FENARDBest answer
ST Employee
September 24, 2019

Hi @vlal​ ,

Your main.c is not correct, stm32xxxx_it.c is missing.

It seems as if STM32\script\customRoutineProcess.tlc is not the correct one.

This file was strongly changed with the 5.1.0 version of STM32-MAT/TARGET (to fit with STM32CubeMX V5.1.0 and later).

Regards.

Cyril

vlal
vlalAuthor
Associate II
September 25, 2019

Yes that solved the problem

I removed the CubeMX installation and installed again, now all are working

Thanks for the help in achieving the results Cyril sir