Giter Club home page Giter Club logo

Comments (11)

RichardBarry avatar RichardBarry commented on July 18, 2024

Hi David - thanks for your suggestion. I have previously had success compiling and and using the FreeRTOS GCC port with LLVM, but that was on an M0 rather than an M4F. Did you try that?

from amazon-freertos.

RichardBarry avatar RichardBarry commented on July 18, 2024

Were you able to try GCC?

from amazon-freertos.

TomasBarakNXP avatar TomasBarakNXP commented on July 18, 2024

Hi Richard,

we were able to try the GCC port which seems to be compatible with the armclang v6 compiler. However it was necessary to do following modification in several files to align with the compiler version 6:
-#ifdef __CC_ARM
+#if defined(__CC_ARM) || defined(__ARMCC_VERSION)
Following files were needed to update:
demos/nxp/lpc54018iotmodule/common/config_files/FreeRTOSConfig.h
lib/include/freertos_tasks_c_additions.h
lib/third_party/pkcs11/pkcs11.h
lib/third_party/tracealyzer_recorder/streamports/Jlink_RTT/SEGGER_RTT.c
lib/third_party/tracealyzer_recorder/streamports/Jlink_RTT/include/SEGGER_RTT_Conf.h
tests/nxp/lpc54018iotmodule/common/config_files/FreeRTOSConfig.h
Other vendors' source code files are necessary to update too.

Best regards

Tomas Barak

from amazon-freertos.

dcgaws avatar dcgaws commented on July 18, 2024

Is it possible to handle this by adding the __CC_ARM define to your build in this case, rather than taking a code change?

from amazon-freertos.

DavidJurajdaNXP avatar DavidJurajdaNXP commented on July 18, 2024

The macros discussed are predefined according to used compiler variant.
__CC_ARM - ARM Compiler 5
__ARMCC_VERSION - ARM Compiler 6 (Clang/LLVM)

Simple additional definition of __CC_ARM in ARM Compiler 6 project could cause issues in other software components. Application determine compiler variant from this macros and it should not be manipulated.

from amazon-freertos.

boofish avatar boofish commented on July 18, 2024

Hi David - thanks for your suggestion. I have previously had success compiling and and using the FreeRTOS GCC port with LLVM, but that was on an M0 rather than an M4F. Did you try that?

Hi, Richard, how did you using the FreeRTOS GCC port with LLVM?I have trouble with that. What configuration should I make, would you give some hints?

from amazon-freertos.

RichardBarry avatar RichardBarry commented on July 18, 2024

how did you using the FreeRTOS GCC port with LLVM

Not sure I understand the question. I just build the source files from the GCC port layer in the LLVM project.

I have trouble with that

What did you try?
What trouble did you have?

from amazon-freertos.

boofish avatar boofish commented on July 18, 2024

What did you try?

I try to build amazon freertos source code with llvm, generate into llvm IR code.
In order to analysis its run time behavior through instrumentation.

What trouble did you have?

I don't know how to handle it with llvm compiler to generate llvm IR code.

I try to using command "cmake -DVENDOER=ti -DBOARD=cc3220_launchpad -DCOMPILER=arm-armclang -S . build",but it response with error "compiler not found".

So I need to download armclang compiler and configure it into PATH, but I don't found the compiler provider by directory 'ccstudio/ccs/tools/compiler/',I check the directory, only found
24a5b54283e83e67bf49737192e2564

So, how can I do to compile the project into llvm ir code?

from amazon-freertos.

RichardBarry avatar RichardBarry commented on July 18, 2024

So I need to download armclang compiler and configure it into PATH, but I don't found the compiler provider by directory 'ccstudio/ccs/tools/compiler/'

Did you download the compiler? If so, which directory did you install it in?

from amazon-freertos.

boofish avatar boofish commented on July 18, 2024

Did you download the compiler? If so, which directory did you install it in?

I did not download the compiler and don't know where to download it, that's it.

from amazon-freertos.

boofish avatar boofish commented on July 18, 2024

we were able to try the GCC port which seems to be compatible with the armclang v6 compiler. However it was necessary to do following modification in several files to align with the compiler version 6.

Hi Tomas, Where did you download armclang v6 compiler, thanks.

from amazon-freertos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.