4 years, 11 months ago.

A strange error when compiling the example of the quick start

Hi, when I read the document of the quick start, there is an example, named "mbed-os-example-blinky", the link is https://os.mbed.com/docs/mbed-os/v5.12/quick-start/online-with-the-online-compiler.html

I import the example to my mbed online ide, then compiling, but an error appears: Error: L6636E: Pre-processor step failed for '/extras/mbed-os.lib/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_ARM_STD/stm32f412xg.sct'

I don't know how to fix the error, then I import an example by right click->New Program, and select "Blinky LED test for the ST Nucleo Boards", import this example to my project, and compiling successfully.

After compiling the example of "Blinky LED test for the ST Nucleo Boards", then comiling "mbed-os-example-blinky", the error disappears, and I get the .bin file.

I feel the error is very strange, can anyone telling me why the error appears?

P.S. My board is Nucleo-F412ZG

1 Answer

4 years, 11 months ago.

Hi Wang,

I think you can not fix this error because this error is not caused by you. If I understand it correctly this error is caused by ARM compiler and it is random. Please try to compile the code many more times and you will se sucessful result I think.

You can see same problems here https://os.mbed.com/questions/85765/Error-L6636E-on-the-NUCLEO-F767ZI-DISCO-/ and I have same problems too. So if it possible you can change revision of the MbedOS5, I prefer revision 5.10.4

Best regards

J.

Accepted Answer

Hi, Jan, Thank you for telling me the post. You are right, I try to compile many more times, and getting the .bin file sometimes. Best Regards. Wang

posted by wang gaoteng 21 May 2019