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.
8 years, 3 months ago.
Old code not working in OS 5. How do I compile with mbed 2 (classical)?
Is the online compiler already using mbed OS 5 now (Aug 18, 2016)?
I have some old code that works well previously (in the online compiler). However now the newly generated program compiled from the same old code does not work... I doubt it may be because of the incompatibility with mbed OS 5.
Is there any way that I can still compile code with mbed 2 (classical)?
Thanks!
Question relating to:
1 Answer
8 years, 3 months ago.
Hi Zach,
Thanks for your message, hopefully i can give you some help.
So the online compiler you can use both the "mbed-os" library or the "mbed" (classic). They both should work exactly the same with your original program.
You can always compile with either of the libraries, simply remove the "mbed-os"library from your program directory and import "mbed" https://developer.mbed.org/handbook/mbed-SDK
I hope that helps,
Regards,
Andrea, team mbed
The issue I'm having now is the serial port. Basically I'm receiving streams on the serial port using interrupt. This used to work well before. However now receiving bytes from the serial port will occasionally reset the MCU, which seemed very weird. I'm using STM32F411.
posted by Zach Wang 19 Aug 2016