Report
1 week, 4 days ago.

Export to Nucleo-L476RG

Exporting project from online IDE results in a build failure as bellow

make all 
...

"Assemble: except.s"
cc1.exe: fatal error: /filer/workspace_data/exports/0/0b56195140e36b1c83f4483fb903ae8c/mbed_config.h: No such file or directory
compilation terminated.
make[1]: *** [mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_GCC/except.o] Error 1
make: *** [all] Error 2

13:59:47 Build Finished (took 12s.945ms)

Fixing the link inside the Makefile results in another problem

"Assemble: except.s"
cc1.exe: fatal error: mbed_config.h: No such file or directory
compilation terminated.
make[1]: *** [mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_GCC/except.o] Error 1
make: *** [all] Error 2

I tried all kind of things.. I cannot get it to works.

I tried to use the mbed cli .. but I get other problems and a simple blinky_led cannot be compiled.

In some files the (for ex. USBMSD.h there is an include that has a wrong path to file the file is BlockDevice.h

Compiler cannot find the file.

MBED-OS is broken totally ..

Why do I try to use the local version of my file? I need to fix another bug .. which is the AnalogIn class.

Using more than one GPIO pin you get a wrong reading from the analogin. Surely the initialization is wrong. The following lines must be added as per other discussion done on the forum

    	   __HAL_ADC_RESET_HANDLE_STATE(&obj->handle);

    	    if (HAL_ADC_Init(&obj->handle) != HAL_OK) {
    	        error("Cannot initialize ADC");
    	    }
posted by Mariwan J. 08 May 2019
Comment on this question
Be the first to answer this question.

To post an answer, please log in.