Cross-compiling for M4

Discussion in 'UDOO NEO' started by Mateusz, Feb 6, 2016.

  1. Mateusz

    Mateusz New Member

    Joined:
    Nov 22, 2015
    Messages:
    14
    Likes Received:
    4
    Hi,

    Can someone explain to me where to start if I would want to program M4 from my laptop and not the UdooNeo itself ?
    1. Can I use GNU ARM Eclipse plugin ?
      • If so how do I get HAL part for M4 ?
      • How do I get access to peripherals ?
    2. Can I use OpenOCD ?
    3. How do I load code for Cortex-M4 on the core if I dont want to use Arduino ?
      • Is it just writing to specific memory area ?
      • Is that area protected by kernel ?
      • Are there tools uploading bin ?
    Thanks
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  3. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear @Mateusz,
    1. You can use GNU ARM Linux to cross-compile UDOO NEO. This link will be useful to you:
      https://community.freescale.com/docs/DOC-103736 We've never done it anyway, so I can't walk you through this guide.
    2. From A9 through UDOObuntu you can upload the code through this tool: udooneo-m4uploader
    If you want to take a look at the code, here it is: https://github.com/ektor5/udooneo-m4uploader
    You can definitely get UDOO NEO working with OpenOCD: http://allthingsembedded.blogspot.it/2016/01/udoo-neo-and-openocd-working.html
     
  4. Goutam bhat

    Goutam bhat New Member

    Joined:
    Dec 29, 2016
    Messages:
    13
    Likes Received:
    0
    The code can be saved on udoo or should it be in sd card as we do in Uboot ?
     
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi @Goutam bhat,
    UDOO Neo doesn't have any eMMC, SSD, HDD or any form of memory storage.
    You need the Micro SD.
    However, before doing anything else I suggest you to give at look at the basic information about the board.
    For example, the datasheet, which you can find the product page: http://www.udoo.org/udoo-neo/
    I also invite to give a look to the "Getting started Neo" section of the website: http://www.udoo.org/get-started-neo/
     

Share This Page