9 years, 3 months ago.

Cannot compile Nucleo Blink LED example on Nucleo-F070RB board

Hi. Attempting to flash the LED using the imported Nucleo Blink LED code from this website and receiving the following error:

Error: Cannot open source input file "device.h": No such file or directory in "extras/mbed_4fc01daae5a5/platform.h", Line: 21, Col: 20

Also selected to upgrade to the latest library during the import session.

Unable to resolve this error. Any ideas ?

The selected hardware is indeed correct (F070RB on the top right of the compiler window).

Also, the ST-Link firmware is reported to be more recent with the received boards (M9). The MBED latest firmware is M6. Leave the boards at M9 firmware ?

Thanks.

1 Answer

9 years, 3 months ago.

Right mouse button on the mbed lib, click update.

That program contains link to an older version which doesn't support your board yet.

Thank you Erik for the very prompt reply. Just attempted the update on the mbed lib inside this project but no difference on resolving the same error. Please advise.

Update ! Got it working.

Please select FIX IT button and then select MBD-SRC option (2nd option from list). Then project will compile fine.

Thank you for your support.

Thank you Martin - updated my original post to supply more details...

Here are the steps taken for this project and resolution:

1) Followed ST website link to access the MBED compiler for the Nucleo-F070RB board:

http://www.st.com/web/en/catalog/tools/PF261491

Program Name: My_LED_Blinky

Creates a new project with the selected program name.

Select Import Wizard button at top of screen -> Programs -> select Nucleo_blink_led (06 November 2014)

select Import button

Import as Program -> Select Update all libraries to the latest version -> Import.

Use mouse to select MBED libraries (right pane confirms version is the latest).

MBED library is version 92:4fc01daae5a5

Compile. The following error is posted:

Error: Cannot open source input file "device.h": No such file or directory in "extras/mbed_4fc01daae5a5/platform.h", Line: 21, Col: 20

Right mouse click on MBED library -> select Updated -> after a few flashes, the library remains at 92:4fc01daae5a5.

To resolve, select FIX IT button from the line with the error code.

Select mbed-src (2nd option in the list).

Now the code will compile fine. Tested the source code and confirmed to be working fine. Also deleted the original imported MBED library (92:4fc01daae5a5) and the remaining code (mbd-src and single main.cpp file compile fine).

Believe the latest MBED library is 93:e188a91d3eaa ? Found here:

http://developer.mbed.org/users/mbed_official/code/mbed/

Perhaps with the above library version, the project will also compile ok ?

Hope this helps to clarify the procedure and observations. Please confirm if additional details are required.

posted by Sanjiv Bhatia 03 Feb 2015

@juthi Always specify versions of everything yoru application is using, links to it and if beta is enabled or not. Helps us to answer it ;)

posted by Martin Kojtal 03 Feb 2015