ARMmbed

Exporting mbed to SW4STM32 for STM32F0 series

FYI, exporting mbed code using any STM32F0 series to SW4STM32 results in an error in which the project is not recognized as a CDT project after importing it into Eclipse. This is problematic because you cannot load the compiler settings.

The reason for this error is that the exporter generates improper xml for the .cproject file when dealing with quotes. Specifically, the lines that read:
<listOptionValue builtIn="false" value="CMSIS_VECTAB_VIRTUAL_HEADER_FILE="cmsis_nvic.h""/>

Should instead read as:
<listOptionValue builtIn="false" value="CMSIS_VECTAB_VIRTUAL_HEADER_FILE=&quot;cmsis_nvic.h&quot;"/>

After replacing the 4 instances of the above line in the .cproject file, the settings loaded properly.

This is very helpful, thank you so much