Compile Macros BUG

25 Aug 2017

Hi mbed community!

I found a problem regarding compile macros in online mbed compiler. It converts each macro to upper case. So, when I add compile macro named "STM32F401xE" it apperas as "STM32F401XE" in gcc command line. Command line is show below. How can it be resolved?

List of macros: STM32F401xE NUCLEO_F401RE STM32F4 STM32F401RETx STM32 ARM_MATH_CM4 USE_STM32F4XX_NUCLEO MBEDTLS_FS_IO MBEDTLS_PEM_PARSE_C MBEDTLS_X509_USE_C MBEDTLS_PLATFORM_C USART_PRINT_MSG USE_HAL_DRIVER TARGET_FPU_VFP IOT_ERROR IOT_INFO IOT_DEBUG

Command line example: Info: Compile: armcc -c gnu -O3 -Otime split_sections apcs=interwork cpu=Cortex-M4.fp md no_depend_system_headers c99 -DASSERT_MSG -DSTM32F401XE -DIOT_ERROR -DMBED=1 -DDEVICE_I2CSLAVE=1 -DFPU_PRESENT=1 -DDEVICE_PORTOUT=1 -DUSBHOST_OTHER -DTARGET_NUCLEO_F401RE -DTARGET_RTOS_M4_M7 -DDEVICE_RTC=1 -DTOOLCHAIN_object -DDEVICE_SERIAL_ASYNCH=1 -DTARGET_STM32F4 -DCMSIS_RTOS -DSTM32F401RETX -DIOT_DEBUG -DMBED_BUILD_TIMESTAMP=1503670182.88 -DDEVICE_I2C_ASYNCH=1 -DTARGET_CORTEX_M -DTARGET_LIKE_CORTEX_M4 -DSTM32 -DTARGET_M4 -DTARGET_UVISOR_UNSUPPORTED -DMBEDTLS_PEM_PARSE_C -DDEVICE_SPI_ASYNCH=1 -DSTM32F4 -DDEVICE_SERIAL=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_I2C=1 -DTRANSACTION_QUEUE_SIZE_SPI=2 -DCORTEX_M4 -DDEVICE_STDIO_MESSAGES=1 -DTARGET_STM32F401RE -DTARGET_FF_MORPHO -DTARGET_FAMILY_STM32 -DUSE_HAL_DRIVER -DMBEDTLS_PLATFORM_C -DDEVICE_PORTIN=1 -DTARGET_RELEASE -DUSE_STM32F4XX_NUCLEO -DNUCLEO_F401RE -DTARGET_STM -DMBEDTLS_X509_USE_C -DDEVICE_SERIAL_FC=1 -DDEVICE_PORTINOUT=1 -DIOT_INFO -DTARGET_LIKE_MBED -DMBED_CMSIS_RTOS_CM -DDEVICE_SLEEP=1 -DTARGET_FPU_VFP -DUSART_PRINT_MSG -DTARGET_FF_ARDUINO -DMBED_USERNAME=PavelSavyhin -DDEVICE_SPI=1 -DUSB_STM_HAL -DTOOLCHAIN_ARM_STD -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DDEVICE_ERROR_RED=1 -DTOOLCHAIN_ARM -DARM_MATH_CM4 -DMBEDTLS_FS_IO -DTARGET_STM32F401xE -I/extras -I/src -I/source/Aws_iot_sdks -I/source/Aws_iot_sdks/aws_iot_src -I/source/Aws_iot_sdks/aws_iot_src/protocol -I/source/Aws_iot_sdks/aws_iot_src/protocol/mqtt -I/source/Aws_iot_sdks/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper -I/source/Aws_iot_sdks/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/platform_nucleo -I/source/Aws_iot_sdks/aws_iot_src/shadow -I/source/Aws_iot_sdks/aws_iot_src/utils -I/source/Aws_iot_sdks/aws_mqtt_embedded_client_lib -I/source/Aws_iot_sdks/aws_mqtt_embedded_client_lib/Debug -I/source/Aws_iot_sdks/aws_mqtt_embedded_client_lib/Debug/src -I/source/Aws_iot_sdks/aws_mqtt_embedded_client_lib/MQTTClient-C -I/source/Aws_iot_sdks/aws_mqtt_embedded_client_lib/MQTTClient-C/src -I/source/Aws_iot_sdks/aws_mqtt_embedded_client_lib/MQTTPacket -I/source/Aws_iot_sdks/aws_mqtt_embedded_client_lib/MQTTPacket/src -I/source/Drivers -I/source/Drivers/BSP -I/source/Drivers/BSP/Components -I/source/Drivers/BSP/Components/Common -I/source/Drivers/BSP/Components/hts221 -I/source/Drivers/BSP/Components/lis3mdl -I/source/Drivers/BSP/Components/lps25h -I/source/Drivers/BSP/Components/lps25hb -I/source/Drivers/BSP/Components/lsm6ds0 -I/source/Drivers/BSP/Components/lsm6ds3 -I/source/Drivers/BSP/STM32F4xx-Nucleo -I/source/Drivers/BSP/X-NUCLEO-IDW01M1 -I/source/Drivers/BSP/X_NUCLEO_IKS01A1 -I/source/Drivers/CMSIS -I/source/Drivers/CMSIS/DSP_Lib -I/source/Drivers/CMSIS/DSP_Lib/Source -I/source/Drivers/CMSIS/DSP_Lib/Source/BasicMathFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/CommonTables -I/source/Drivers/CMSIS/DSP_Lib/Source/ComplexMathFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/ControllerFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/FastMathFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/FilteringFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/MatrixFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/StatisticsFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/SupportFunctions -I/source/Drivers/CMSIS/DSP_Lib/Source/TransformFunctions -I/source/Drivers/CMSIS/Device -I/source/Drivers/CMSIS/Device/ST -I/source/Drivers/CMSIS/Device/ST/STM32F4xx -I/source/Drivers/CMSIS/Device/ST/STM32F4xx/Include -I/source/Drivers/CMSIS/Device/ST/STM32F4xx/Source -I/source/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates -I/source/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm -I/source/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc -I/source/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar -I/source/Drivers/CMSIS/Include -I/source/Drivers/CMSIS/RTOS -I/source/Drivers/CMSIS/RTOS/Template -I/source/Drivers/STM32F4xx_HAL_Driver -I/source/Drivers/STM32F4xx_HAL_Driver/Inc -I/source/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I/source/Drivers/STM32F4xx_HAL_Driver/Src -I/source/Middlewares -I/source/Middlewares/ST -I/source/Middlewares/ST/STM32_SPWF01SA -I/source/Middlewares/ST/STM32_SPWF01SA/Inc -I/source/Middlewares/ST/STM32_SPWF01SA/Utils -I/source/Middlewares/Third_Party -I/source/Middlewares/Third_Party/FreeRTOS -I/source/Middlewares/Third_Party/FreeRTOS/Source -I/source/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I/source/Middlewares/Third_Party/FreeRTOS/Source/include -I/source/Middlewares/Third_Party/FreeRTOS/Source/portable -I/source/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang -I/source/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS -I/source/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F -I/source/Projects -I/source/Projects/Multi -I/source/Projects/Multi/Applications -I/source/Projects/Multi/Applications/MQTT_AWS -I/source/Projects/Multi/Applications/MQTT_AWS/Inc -I/source/Projects/Multi/Applications/MQTT_AWS/MDK-ARM -I/source/Projects/Multi/Applications/MQTT_AWS/MDK-ARM/STM32F401RE-Nucleo -I/source/Projects/Multi/Applications/MQTT_AWS/MDK-ARM/STM32F401RE-Nucleo/DebugConfig -I/source/Projects/Multi/Applications/MQTT_AWS/MDK-ARM/STM32F401RE-Nucleo/Objects -I/source/Projects/Multi/Applications/MQTT_AWS/SW4STM32 -I/source/Projects/Multi/Applications/MQTT_AWS/Src preinclude=/build/mbed_config.h depend /build/Drivers/BSP/STM32F4xx-Nucleo/stm32f4xx_nucleo.NUCLEO_F401RE.d -o /build/Drivers/BSP/STM32F4xx-Nucleo/stm32f4xx_nucleo.NUCLEO_F401RE.o /source/Drivers/BSP/STM32F4xx-Nucleo/stm32f4xx_nucleo.c in "Drivers/BSP/STM32F4xx-Nucleo/stm32f4xx_nucleo.c", Line: 0, Col: 1