This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Hercules Launchpad board and Linux

Other Parts Discussed in Thread: UNIFLASH, HALCOGEN

Hi,
I'm looking for way how i could have a complete set of development environment for my new Hercules board.

Previously I had sucessfully got it for Stellaris/Tiva-C boards using GNU GCC + TivaWare(board/peref lib) + lm4flash tool to flash result to board; also I got gdb via ICDI interface.

So for now i'm looking for base library for Helcules and console tool to flash binaries to it.
  • Andril,

    Are you looking for a GNU toolchain that supports Hercules?

    Atollic studio supports Hercules now, although flash support is pending the next update.

    Or - are you looking for something else?

     

  • AFAIK currently Cortex-r4/4f/5 arch is fully supported by GNU GCC, so there is no problem with compilation itself. And, to complete instrumentation list i'm looking for next two things: 1. Standalone tool to flash Launchpad board. If it does not exists - then a way/protocol/API to create this kind of software. 2. Board/MCU specific headers and libraries (like TivaWare for Tiva-C series). As far as I could understand this role should be done by HaloGen toolset, but it is for Windows only, so have no idea how to use it in Ubuntu.
  • Andrii,

    I'm not aware of a perfect solution that brings it all together but there are pieces.

    1) IDE For Debug & Flash Download

       - I don't know if Atollic supports running on a Linux host PC

       - CCS and CCS Uniflash do run on Linux natively.    CCS Uniflash is the standalone flash tool you were asking about.  CCS can debug EABI binaries created with the GCC toolchain just fine from what I've seen;   I think this is the benefit of using the ARM EABI standard.

    2) IDE for Build with GCC

      - This is where Atollic would be great but I don't know if it runs on Linux hosts.

      - CCS has some features now to support GCC as the compiler but as far as I know this is right now for the Tiva products. You could try to see what is available for Cortex R4.   I'm not really clear where the line is drawn.   I believe the GCC compiler that ships with CCS does have all the ARM ISAs but someone had tried to use the GDB server as well and that didn't work for the Cortex R4.

      Also if you are using an RM4x launchpad things may go easier since this product is little endian.   Many of the GNU tool problems that we have with Hercules stem from the TMS570 world which we made BE32 to be compatible with the old ARM7TDMI based TMS470 products.   This required some byte swizzling logic as the core supports BE8 and it is a unique special case that tends to mess up GDB debuggers that don't have a specific hook for us.

    3) Driver code.  Unfortunately this is HalCoGen and HalCoGen is only available for Windows.  I've tried running it on Ubuntu under Wine and it did run however the GUI did not look right and this effects it's useability.   If you can manage it, for now I would suggest running HalCoGen on a windows machine to generate the code you need and then take the code snapshot over to the linux environment just like you would a fixed library.