<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>B..'s Activities</title><link>https://community.arm.com/members/b_2e00__2e00_</link><description>B..'s recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>Minimum CMakeLists.txt file to use with ARMClang v6 with CLion</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/45179/minimum-cmakelists-txt-file-to-use-with-armclang-v6-with-clion</link><pubDate>Sun, 22 Dec 2019 00:11:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:af4dc0c8-2a53-4b48-a8ea-09515f327467</guid><dc:creator>siso</dc:creator><description>&lt;p&gt;I would like to use ARMClang 6 series toolchain (compiler and linker) to build and compile or debug for STM32F103RB board Evaluation board.&lt;br /&gt;I want to use CLion instead of Keil IDE for compiling/flashing and debugging the EVAL board.&lt;br /&gt;&lt;br /&gt;Currently CLion has a plugin that supports for arm-gcc but nothing for ARMClang yet.&lt;br /&gt;&lt;br /&gt;Since the build backbone of the CLion is CMake which is a way different from Keil build system all my efforts to create a successful build system in Cmake has failed.&lt;br /&gt;&lt;br /&gt;I want to replicate following flags in CMake (Both for Release and Debug) setting if&amp;nbsp; possible with .hex file as an output too&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Compiler Flags&amp;gt;


-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m3 -c
-fno-rtti -flto -funsigned-char -fshort-enums -fshort-wchar
-gdwarf-3 -Ofast -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -I ../../Core/Inc -I C:/Users/TS/STM32Cube/Repository/STM32Cube_FW_F1_V1.8.0/Drivers/STM32F1xx_HAL_Driver/Inc -I C:/Users/TS/STM32Cube/Repository/STM32Cube_FW_F1_V1.8.0/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I C:/Users/TS/STM32Cube/Repository/STM32Cube_FW_F1_V1.8.0/Drivers/CMSIS/Device/ST/STM32F1xx/Include -I C:/Users/TS/STM32Cube/Repository/STM32Cube_FW_F1_V1.8.0/Drivers/CMSIS/Include
-I./RTE/_stm32f103rbt6-LCD-CubeMX
-IC:/Users/TS/AppData/Local/Arm/Packs/ARM/CMSIS/5.5.1/CMSIS/Core/Include
-IC:/Users/TS/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.3.0/Device/Include
-D__UVISION_VERSION=&amp;quot;528&amp;quot; -D_RTE_ -DSTM32F10X_MD -DUSE_HAL_DRIVER -DSTM32F103xB
-o stm32f103rbt6-LCD-CubeMX/*.o -MD&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ASM&amp;gt; armasm



--cpu Cortex-M3 -g
-I.\RTE\_stm32f103rbt6-LCD-CubeMX
-IC:\Users\TS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include
-IC:\Users\TS\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include
--pd &amp;quot;__UVISION_VERSION SETA 528&amp;quot;
--pd &amp;quot;_RTE_ SETA 1&amp;quot;
--pd &amp;quot;STM32F10X_MD SETA 1&amp;quot;
--list *.lst
--xref -o stm32f103rbt6-LCD-CubeMX\*.o
--depend stm32f103rbt6-LCD-CubeMX\*.d&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Linker armlink&amp;gt;


--cpu Cortex-M3 --lto *.o
--strict --scatter &amp;quot;stm32f103rbt6-LCD-CubeMX\stm32f103rbt6-LCD-CubeMX.sct&amp;quot;
--summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols
--info sizes --info totals --info unused --info veneers
--list &amp;quot;stm32f103rbt6-LCD-CubeMX.map&amp;quot;
-o stm32f103rbt6-LCD-CubeMX\stm32f103rbt6-LCD-CubeMX.axf&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any help with creating CMakeLists.txt file is really appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Using ARM toolchain in CMake</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/44208/using-arm-toolchain-in-cmake</link><pubDate>Fri, 27 Sep 2019 08:46:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ba6e852f-00fe-44d0-97cd-891b7f5a295b</guid><dc:creator>pdev</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I use CLion to write my code, and uVision to compile and flash the device. I want to integrate the compiling and flashing process to CLion (CMake).&lt;/p&gt;
&lt;p&gt;I integrated ARMclang successfully in CMake.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I link and create&amp;nbsp; the binary .hex with fromELF.exe? Does anyone have already set up a full toolchain to replace uVision?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>