Hi! I am new to all this stuff. While transfering Keil project to Cube IDE I'm facing many issues, is there a proper step by step tutorial or help on how to transfer kei project to cubeIDE?
Also help me with following errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-28 1:44 PM
Errors
- fatal error: rt_sys.h: No such file or directory
#include <rt_sys.h>
I have this fuction in somefile
__asm void MSR_MSP(u32 addr)
{
MSR MSP, r0 //set Main Stack value
BX r14
}
- error: expected '(' before 'void'
__asm void MSR_MSP(u32 addr)
- error: expected identifier or '(' before string constant
volatile("MSR MSP, r0")
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-28 2:28 PM
Might be easier to generate a project in CubeIDE and then transfer your user code over. Kiel uses a different compiler, so a lot of system files are not going to transfer over well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-28 7:44 PM
You don't have rt_sys.h and probably don't need it. If you have semi-hosting for putchar/fputc then you're going to have to replace that plumbing with GNU/GCC equivalent code.
You'll also need to move to CMSIS supported __set_MSP() from Drivers\CMSIS\Include\cmsis_gcc.h
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-29 11:39 AM
cubeide uses GCC. GCC have different naming conventions ​than ARMCC used by keil. for example writing assembly functions is different. Read gcc-arm-non-eabi documentation for more details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-29 1:15 PM
Create a cubeIDE project, set the mcu and packages and the peripheral and clocks settting and from there, import your source files incrementally.
Eclipse fans will like CubeIDE, Keil or IAR...
