Skip to main content
ramkumarkoppu
Associate III
October 13, 2019
Question

Issues with CubeMX for STMH747XI

  • October 13, 2019
  • 17 replies
  • 3384 views

The first issue is, CubeMX does not generates User labels for Pepipherals for example GPIOs assigned to Cortex-M4 similar to User labels assigned to Cortex-M7. Used IAR toolchain.

The second issue is IAR project generated by CubeMX for Cortex-M4, throws The stack pointer for stack 'CSTACK' is outside the stack range. This is broken project generation.

This topic has been closed for replies.

17 replies

Khouloud ZEMMELI
ST Employee
October 14, 2019

​Hello @ramkumarkoppu​ , could you please share your ioc file and explain more your second request ?

Thanks and regards,

Khouloud.

ramkumarkoppu
Associate III
October 14, 2019

Hi @Khouloud ZEMMELI​ Please find the attached CubeMX project and it's associated generated IAR and Keil projects.

ramkumarkoppu
Associate III
October 14, 2019

IAR gives me error at M4 debugging time about CSTACK as per the attached screenshot.

ramkumarkoppu
Associate III
October 14, 2019

and Keil gives me linker error as per the attached screenshot.

ramkumarkoppu
Associate III
October 14, 2019

For now help on the issue 2 as per my original request. after resolving this I can provide more details about issue 1 as per my original request.

Khouloud ZEMMELI
ST Employee
October 14, 2019

​As I see, it's just a warning and not an issue for IAR, otherwise , for the first request , you're right and issue will be fixed in the next release,

Best Regards,

Khouloud.

ramkumarkoppu
Associate III
October 15, 2019

Hi @Khouloud ZEMMELI​ I have tried the CubeMX version 5.4.0, it is not generating User labels for the GPIOs Cortex-M4 project, and the worst is it also stopped generating user labels for Cortex-M7 which it is used do it in previous version. This is not a major problem, but user labels are things which we used to do it in other projects, but now it is no more available. Tried with the latest version of Keil.

ramkumarkoppu
Associate III
October 14, 2019

But why is the generated Keil project doesn't build? Is the generated default code should be building without any issues right? Can you please look at this Keil project generation for the same ioc file? This is because we are using both IAR and Keil for now to decide one of these two toolchains.

Khouloud ZEMMELI
ST Employee
October 14, 2019

​For keil -M4 , no error reproduced

0690X00000AqKFyQAN.png

Khouloud ZEMMELI
ST Employee
October 14, 2019

​Same result for keil-M7

0690X00000AqKGNQA3.png

ramkumarkoppu
Associate III
October 14, 2019

I see error as per the attached screen shot. Using Keil v5.28

Khouloud ZEMMELI
ST Employee
October 14, 2019

​Yes this's an issue in the 5.3.0 CubeMX version ( reproduced ) and it's fixed now for the 5.4.0 version (as attached screenshots).

Best Regards,

Khouloud

ramkumarkoppu
Associate III
October 14, 2019

OK. If I understand is correct, this is the issue with the currently available cubemx version 5.3.0 and it is fixed now will be available in the next version 5.4.0 ? When this 5.4.0 is available to download? the version available at https://www.st.com/en/development-tools/stm32cubemx.html page is 5.3.0

Khouloud ZEMMELI
ST Employee
October 14, 2019

​It will be available this week.