I'm using MK10DX256VLK7 with internal oscillator, the problem is that it runs just when I'm debugging (I use Segger J-Link) but it doesn't run standalone, I'm sure I'm writing the code to FLASH, I have selected the FLASH target and verified code is running from FLASH. Any thoughts about what I'm doing wrong? Thanks.
Solved! Go to Solution.
Hello Carlos:
I guess the problem is that you might be compiling with a "semihosting" ewl library.
Please go to Project -> Properties -> C/C++ Build -> Settings -> Librarian, and make sure that you do not have selected any of the "XXX_hosted" options. You can go with ewl_noio.
Hope this solves the problem.
Regards!
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Carlos:
I guess the problem is that you might be compiling with a "semihosting" ewl library.
Please go to Project -> Properties -> C/C++ Build -> Settings -> Librarian, and make sure that you do not have selected any of the "XXX_hosted" options. You can go with ewl_noio.
Hope this solves the problem.
Regards!
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
That was the problem, thank you very much Jorge, now I see how inadvertently enabled this when creating my project:
This means now I have no Debugger Console IO support right?
Good to know it worked.
You are right, without one of those "hosted" libraries you have no debugger console support. It is always better to use a UART and a terminal program. In case you really need printfs, you can use the ConsoleIO component. Check the next tutorial:
Tutorial: Printf() with (and without) Processor Expert | MCU on Eclipse
Regards!
Jorge Gonzalez