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.
7 years, 6 months ago.
How to compile C code on F302R8
Hello everyone ! i am a beginner with the nucleo F302R8. i installed USB ST driver and the ST-link driver and all stuffs but i still have some problems ! The nucleo is detected as a mass storage of 72Ko and not 500Ko! and when i use the online IDE, i download the BIN file in the card but it's not executed! Can you please help me ? its really urgent! THANK YOU very much for your answers and wish you the best! PEACE!
1 Answer
7 years, 6 months ago.
Hi. Which program are you testing ? Can you post it here with the <<code>> your code <</code>>
markers ?
Recommend to start with the usual LED blinky code from here -> you can select the import code and be sure the target board matches your Nucleo. Proceed to compile and then paste the compiled .BIN file to your drive letter:
https://developer.mbed.org/teams/ST/code/Nucleo_blink_led/?platform=ST-Nucleo-F302R8
That should be enough to launch the LED blinky code but feel free to press the RESET button or even power cycle the board to be sure of the reset action. The landing page for your Nucleo board also offers more details on how to configure the board for mbed.