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.

Accepted Answer

thank you very much ! it works ! i don't know why ; i did the same yesterday and it didn't work and now its works.. weird x) ! thank you Sanjiv ! appreciate it ;) !

posted by fousey Shadow 17 May 2017