Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 months ago.
This does not work...:(
When I first imported this I got an error that "device.h" does not exist. I imported mbed-src and that error went away but was replaced by an error that the K22F platform is not supported RTX_Conf_CM.c, which I also get when I import the same project from within the compiler.
I *NEED* mbed-rtos to work on this platform for a product we are developing now.
Question relating to:
1 Answer
9 years, 6 months ago.
Go to this file in your imported mbed-rtos: http://developer.mbed.org/users/mbed_official/code/mbed-rtos/file/318e02f48146/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c. Then add TARGET_K22F next to all TARGET_K64F and it should work fine. Should be added to official one too, but I can't do it currently until someone accepts another pull request :).
Well, I had to chase down another file as well. I made progress, but got a more scary error now:
Error: "/extras/mbed_031413cf7a89/TARGET_K22F/TOOLCHAIN_ARM_STD/MK22F51212.sct", line 4 (column 9): Error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.
--Per response below
Yes. I had imported the source for mbed-src per another thread and evidently it can't co-exist with the mbed-rtos. Is the full mbed library contained in the mbed-rtos folder?
THANKS!
posted by 20 Nov 2014First of all, missed that you also have to supply the initial_sp, not a clue why it can't just get the one from the CMSIS files, but okay. This one is different than the K64F, it is for the K22F:
#elif defined(TARGET_K22F) #define INITIAL_SP (0x20010000UL)
If I then compile it is succesfull (also with different initial_Sp, but then it won't actually work).
Regarding your error: Do you maybe have a library imported twice?
posted by 20 Nov 2014
Hmmm...I successfully exported this to Kinetis Design Studio format and imported it into my workspace. However, when I build, I get an error: Description Resource Path Location Type undefined reference to `rt_get_PSP' rt_Task.c /frdm_rtos_K22F/mbed-rtos/rtx/TARGET_CORTEX_M line 252 C/C++ Problem
Odd that I got it in the export, but didn't see that error when I compiled from mbed. Any thoughts?
posted by Thor Hall 24 Nov 2014