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.
5 years, 8 months ago.
how to explore my program
Hi I have started using mbed for nucleo-F103RB. Starting from simple LED blink program as below how can I further see the functions and initialize and other functions:
#include "mbed.h" DigitalOut myled(LED1); int main() { while(1) { myled = 1; // LED is ON wait(0.1); // 200 ms myled = 0; // LED is OFF wait(0.1); // 1 sec } }
Here how can I see (navigate) where are initilize bits of registers and other settings. Also how can I navigate further to see full function like wait(0.1) etc like in other IDEs like microchip IDE we can many thanks for help.
1 Answer
5 years, 8 months ago.
Hi Amjad,
In order to step through and debug your program (to see the register values and information) you will need to export your program from the online compiler to a desktop IDE such as Eclipse or Keil. You can learn more about exporting and debugging via various desktop IDEs here: https://os.mbed.com/docs/latest/tutorials/debugging-applications.html
Please let me know if you have any questions!
- Jenny, team Mbed
If this solved your question, please make sure to click the "Thanks" link below!