Export of blinky to Keil results in project which fails to compile

10 Feb 2018

I tried exporting blinky to a uvsion project (for a Nucelo F091RC board), but the resulting code is not compilable, giving

assembling irq_cm0.S... irq_cm0.S: Error: #5: cannot open source input file "UVISION_VERSION SETA 524": No such file or directory irq_cm0.S: UVISION_VERSION SETA 524: 0 warnings, 1 error irq_cm0.S: Error: A1067E: Output file specified as './mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M0/irq_cm0.S', but it has already been specified as '.\build\irq_cm0.o' irq_cm0.S: error: A1905U: Pre-processor step failed for 'UVISION_VERSION SETA 524'

and

assembling startup_stm32f091xc.S... startup_stm32f091xc.S: Error: #5: cannot open source input file "UVISION_VERSION SETA 524": No such file or directory startup_stm32f091xc.S: UVISION_VERSION SETA 524: 0 warnings, 1 error startup_stm32f091xc.S: Error: A1067E: Output file specified as './mbed-os/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device/TOOLCHAIN_ARM_STD/startup_stm32f091xc.S', but it has already been specified as '.\build\startup_stm32f091xc.o' startup_stm32f091xc.S: error: A1905U: Pre-processor step failed for 'UVISION_VERSION SETA 524'

Can anyone suggest how to fix this? And can the exported be fixed, please?

29 Mar 2018

Exporting project is not working for GCC either.. nothing works.