![]() I would like to get the FreeRTOS sources building with clang but I will have to look into that more later there were problems with compiler intrinsics and other port-specific things. I will be testing more so I’ll post updates if I come across anything strange. Right now I’m just happy it works so far. I have not tried attribute ((naked)) or looked at the generated assembly to see if it can be slimmed down. Then using the GCC syntax for assembly, for example, in ulPortRaiseBASEPRI: _asm( "mrs %, basepri msr basepri, % dsb isb" : "=r" (ulReturn) : "r" (ulNewBASEPRI) ) #define portFORCE_INLINE _attribute_((always_inline)) So far the only thing tricky I did was to make changes in portmacro.h. ARM’s developer website includes documentation, tutorials, support resources and more. Download the latest version of Arm Compiler for Linux. I have not been able to test everything yet but the basic tasks seem to be running with their expected timing, including interrupt handling with yielding from ISRs. Download the latest version of Arm Compiler for Linux and Arm Forge. That required setting “Enum Containers always int” and adding the compiler flag “–wchar32” in order to make a library that would link with the armclag-built code. I did have trouble building the FreeRTOS source itself, so I built that as a library with the old compiler. I have good news – my whole project is up and running using armclang! Maybe not, as that won’t help with functions that are really macros. One possibility that occurred to me: could I build FreeRTOS as a static library, with the old compiler, and drop it into a project built with ARMCLANG? Is anyone else using this new compiler? Anyone else attempting a port? FreeRTOS is working great for me with the older ARMCC compiler. My target is a SAM4E16E (Cortex-M4) chip. I’m willing to try, but if it is going to be extremely hairy I’ll probably have to give up and use the old compiler. I’m not sure I’m up to the task of porting FreeRTOS myself. However, it supports a different syntax for inline assembly, and Keil’s docs don’t describe it well. I would love to use this compiler for my project as it has support for a much more modern version of C++, a lot better static analysis, more warnings, compiles faster, does the dishes and mops the floor, etc. ![]() Product: MDK-ARM Standard Cortex-M only 5.20 Get started Popular Community Posts Ask a Community Question Create, build, and debug embedded applications for Arm-based microcontrollers. ![]() Keil/ARM dropped an updated MDK that comes with a version of ARMCLANG:Ĭ:\Keil_v5\ARM\ARMCLANG\bin>armclang -version Keil MDK Learning Paths Developer-made, step-by-step tutorials, code examples, beginner and advanced guides to build better software, faster from Arm and open-source partners. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |