8 years, 4 months ago.

stm32l476 nucleo .. no file device,h

I written a rs485 class and used it on F03xx F303 F411 and F401, but if I select an ST32L476 it cannot find a file called device.h . If however I just select another device it compiles and works again.

I tried to change the uart pins (as the device has many) but the same error appears.

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

1 Answer

8 years, 4 months ago.

The L476 was probably added to mbed after you wrote your original RS485 lib and test program. You probably need to update the mbed lib. Right click on the mbed lib in your project, select update and then recompile all.

Accepted Answer

Thanks this is the correct answer. You can right click on the project and update as well, as what I did, but that does NOT solve the problem, you must select mbed and right click, ONLY then it will works. This is not clear clear on prev posts.

posted by Gerrie de Jager 02 Jul 2016