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.
9 years, 10 months ago.
Blink_led does not work on Nucleo-L476RG
I compiled and downloaded this example sketch successfully. I assume the executable code was downloaded to the board but nothing happened. Red LED1 remains on all the time instead of blinking according to the sketch. The original code in the board continues to blink the green LED2 instead. I must have missed something but don't know what that is. Please help.
1 Answer
9 years, 10 months ago.
Did you actually download it to the board? As in, dropped the bin file you downloaded on the USB flash drive that appeared when you plugged in your Nucleo?
If yes (or no USB flash drive), follow the notes regarding firmware update that are on the platform page.
I did the firmware update and established serial link. I also clicked "compile and download". However, nothing happened. I am not sure what you mean by downloading to a USB flash drive. This is the first time I am using ST's product. I think there is something very basic that I missed. Thanks for helping.
posted by 27 Oct 2015Yes there is :P. When you click compile and download, it should present you with the option to download a bin file (hex for a few other boards, but bin for yours). If you plug in your Nucleo board it should present you a USB drive in for example Windows explorer. The bin file should be downloaded to the USB drive (or to your standard download folder, and from there drag and drop it on the USB drive).
If it does not actually give you a message that the site wants to download a bin file: Try another browser first. If you do not have a USB flash drive when you plug in your Nucleo: No idea how that could happen if you already have a serial link and updated firmware.
posted by 27 Oct 2015
Eric, The upgraded driver and firmware obviously did their job that when I clicked compile it automatically download the .bin file. I can see that during the download all LEDs are off except LED1 is blinking for a short while. However, after download completed the original program in the Nucleo-L476RG continued to run instead of the new program just compiled and downloaded. Pressing reset button did not help.
posted by Thomas Lo 27 Oct 2015Sorry that I clicked "Accepted" too early and messed up the comminication. Just want to confirm that when the board is plugged into the laptop there is a USB device recognized. Once I click on MBED.HTM I can see all the documentation and to open mbed compiler, etc. So, I am pretty sure that I followed everything correctly. The only thing I did not do right is to plug in the board before I installed the driver in the laptop. I wonder if that has anything to do with it. No matter how I compile the code it is always successful but the code just does not get executed.
posted by Thomas Lo 28 Oct 2015