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.
10 years, 4 months ago.
Nucleo - native code
My first foray into the STM chipset it with the Nucleo f401re board. I then purchased a few of the discovery boards.
No knocks on mbed, but I've not had much luck moving away from some of the canned programs like blinking leds, reading analog, printf "hello world". It seems like many of the functions are not fully developed. For instance, on printf, certain format code combinations give incorrect output, if any; the analog read functions work, but the chip has many other analog read functions that aren't exposed; the timer isn't fully developed, etc.
I looked for other tool chains without luck, they are expensive or have limited if any examples.
If would be nice if I could mix some gpio calls with the mbed libraries, or have access to the same underlying code.
Is there a way to get the mbed library source to be able to modify it?
Maybe I am missing something, just some pointers would help.
Thanks.
Jerry
1 Answer
10 years, 4 months ago.
Yes this is completely possible. That printf issue might be related to the used C lib, although I never noticed it on other targets which use that C lib. Analog read/timer functions are fully developed, they just don't expose every option on the chip. Thats always something you get when you want to make a generic interface.
Anyway, besides modifying mbed source code you can also keep it standard and just add your own functions (there are also user libs which do this, although the Nucleo targets are fairly new, so not as many as for the others. Still you might find something, for the LPCs and Freescale devices they are there).
And to really answer your question, here is the mbed source code: http://mbed.org/users/mbed_official/code/mbed-src/ (delete normal mbed lib, import that one). F401 mbed source: http://mbed.org/users/mbed_official/code/mbed-src/file/20b371a9491b/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE, F401 ST source: http://mbed.org/users/mbed_official/code/mbed-src/file/20b371a9491b/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE