Search code examples
eclipsearm

Eclipse ARM development


I am failing the very fist step in getting Eclipse (which is completely new to me) ready for ARM development.

I installed Eclipse in windows 10. I think I am supposed to install xpm, but I have no idea where to type in this command:

xpm install --global @gnu-mcu-eclipse/arm-none-eabi-gcc

Or is this for linux users only?

PS: I installed the cpp edition of Eclipse, that's all I have at the moment.


Solution

  • For future reference (maybe only for myself :))

    UPDATE: After reading a lot about ARM development I finally came on the path of STM32. There is a great book available via leanpub: Mastering STM32. The free available sample describes in great detail how to setup the tool chain for ARM development in Eclipse. I managed to get it working that way, so probably everybody can :).

    The link to the book: https://www.carminenoviello.com/mastering-stm32/ Chapter 2.


    UPDATE:

    https://github.com/gnu-mcu-eclipse/org.eclipse.epp.packages/releases/


    Install node.js, which can be downloaded here: https://nodejs.org/en/

    After install nodejs, install xpm as follows:

    npm install --global xpm
    

    Then, install the toolchain for Eclipse:

    xpm install --global @gnu-mcu-eclipse/arm-none-eabi-gcc
    

    Install the build-tools (windows only):

    xpm install --global @gnu-mcu-eclipse/windows-build-tools
    

    Install CDT

    • Start Eclipse
    • Help
    • Install new software
    • Work with type 'Neon' (autocompletes in 'GNU MCU...')
    • Expand 'Programming language'
    • Install 'C/C++ Development Tools' and next next finish, restart Eclipse

    Install CMSIS

    • Start Eclipse
    • Help
    • Install new software
    • Work with 'All available sites'
    • Search for 'CMSIS'
    • Check 'GNU/ARM C/C++ Packs (experimental)
    • Next, next, finish

    Install GNU MCU Eclipse via marketplace

    • Start Eclipse
    • Help
    • Marketplace
    • Search for 'GNU MCU Eclipse'
    • Install
    • Restart Eclipse

    First test project

    • Start Eclipse
    • File
    • New C++ project
    • A managed build (CDT)
    • Project name 'test'
    • Executable 'STM32F7xx C/C++ Project'
    • Next
    • Use system calls 'Semihosting (POSIX system calls via host)'
    • Next, Next, Next, Finish

    Assign board

    • Right click Test project
    • Properties
    • C/C++ build
    • Settings

      - Devices

    Follow the remaining steps described here