Skip to main content
Bassem
Associate II
June 19, 2024
Solved

STM32CubeF4 examples don't build in MKD 5.38

  • June 19, 2024
  • 7 replies
  • 2259 views

Dear support team,

I download recently the last release of Stm32cubeF4 v1.28 and I have the MDK V5.38 installed in my machine, so normally I was expecting that examples will build out of the box but it's not the case.

It looks like the project example provided are working only in older version of MDK, I try to change some settings but the compiler version it's not even the same, and I end up with a mess.

So my question do you have any migration guide or any steps description that could help to solve this issue.

Best regards

Bassem taamallah

This topic has been closed for replies.
Best answer by Bassem

These steps that you mentioned I have already done them, when I figure out that the compiler used now is ArmClang but still I end up with the following error message for each single file compiled :

Bassem_0-1718823908485.png

This just the build of simple example on the target STM32F4-Discovery, maybe I miss something 

7 replies

KDJEM.1
ST Technical Moderator
June 19, 2024

Hello @Bassem and welcome to the Community :),

 

The development toolchains and compilers for STM32CubeF4 1.28.0 are IAR V8.50.4, MDK-ARM V5.31 and STM32CubeIDE v1.14.0 as mentioned in release notes.

KDJEM1_0-1718795539449.png

MDK-ARM 5.38 comes by default with AC6 only. To use it with AC5 compiler, please follow the steps available in this AN: https://developer.arm.com/documentation/ka005073/latest/"

I hope this help you!

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
Bassem
BassemAuthor
Associate II
June 19, 2024

Thanks for your answer, unfortunately it's an extra step that need to be carry out, beside that AC5 it's not officially supported anymore, so better to move to AC6 and benefit from Keil support if needed, anyway for my use case it's not mandatory to stuck to STM32F4, my second question is there any STM32cube package released with the MDK-ARM 5.38 or later.

Thank you in advance for your support. 

Tesla DeLorean
Guru
June 19, 2024

What are the errors you're getting?

It's easy enough to switch to the Version 6 compiler, and Version 5 used to be in a download package.

As I recollect it MDK 5.38 needs to pull packages if it needs them. And you might have to remove a command line option for C99 and check the checkbox item for it instead.

Using it here, and it's much faster at compilation.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Bassem
BassemAuthorBest answer
Associate II
June 19, 2024

These steps that you mentioned I have already done them, when I figure out that the compiler used now is ArmClang but still I end up with the following error message for each single file compiled :

Bassem_0-1718823908485.png

This just the build of simple example on the target STM32F4-Discovery, maybe I miss something 

Tesla DeLorean
Guru
June 19, 2024

Looks to be because of a divergent version of CMSIS, would suggest the project contemporary version from the HAL directories. Let it pull F4 pack, selected Default V6, checkboxed C99

keil538_v6_f4_build_001.jpg

 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..