M4 docs for MQX

Discussion in 'UDOO NEO' started by windowsaredumb, Jan 5, 2016.

  1. windowsaredumb

    windowsaredumb New Member

    Joined:
    Jan 5, 2016
    Messages:
    3
    Likes Received:
    0
    So, two questions from someone who really wants to buy the neo. I have a lot of experience with the Freescale Vybrid and SoloX, and would love to get it running using MQX natively (don't need Arduino support). Programming MQX is easy enough, but you don't have any docs on how to boot it, install it, or get sources you support. I think mostly though, how does one build MQX for your environment? And do you use mqxboot to start the M4?

    Also, I see some discussion regarding MCC. Is there some documentation for how that's implemented on the Linux side? If not, will there be? I assume it's just the standard MCC calls on the MQX side.

    Thanks in advance.
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Booting MQX isn't too difficult, there are patches here to overlay over MQX4.1, ideally a separate BSP layer should be created for the NEO however instead these patches are used instead. Launching MQX for M4 is done from uboot via the bootaux command, this is documented in the MQX 4.1 SoloX Release Notes.

    I would say that MQX is less mature/complete for the imx6sx compared to Vybrid. Also note the NEO has no on board flash memory so M4 code has to be loaded into DDR for it be executed.
     
    Last edited: Jan 5, 2016
  3. windowsaredumb

    windowsaredumb New Member

    Joined:
    Jan 5, 2016
    Messages:
    3
    Likes Received:
    0
    Oh boy, is this all documented somewhere?

    Also, can mqxboot be used to start it later? This is a nice to have for the Vybrid.

    Thanks for the information.
     
  4. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Regarding mqxboot you would have to create your own version to do the same thing, ie load the code and enable the M4. However on the NEO things get more difficult because the code has to be loaded into the M4 address space which may not be visible from Linux.

    Also note things can get difficult when using peripheral on the M4 because the clock trees are shared between A9/M4. So starting the M4 with MXQ after the linux kernel has booted can be disrupting to the A9.
     
    Last edited: Jan 5, 2016
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear windowsaredumb,
    our M4 uses a patched version of the MQX sources to interface with the Arduino libraries. We are still waiting from Freescale more hints on how to share this patched MQX source. As soon as we'll have we'll share!
     
  6. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
    Hi Andrea,
    I just received two NEO boards.
    Please, may I know if the MQX source is already available?
    Thanks
    Julio
     
  7. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Unfortunately we cannot release it.
    Freescale doesn't authorize us to release a modified version.
    The original MQX source anyway is available on the Freescale website.
     
  8. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
  9. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    If you press Ctrl + F and type "Download" you'll find it faster :)
     
  10. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
  11. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    As an alternative to MQX, I suggest you also consider FreeRTOS see this thread for more info.
     
  12. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
  13. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
    Hi Jas, Thanks so much for the suggestion. I will take a look.
     
  14. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
  15. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
  16. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Andrea Rovai likes this.
  17. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
    Hi jas,
    When go to that link, the system show the message:
    ----

    Error Message

    Either the item was not found, or you are not authorized to download this item.

    For Customer Support assistance, please enter a description of the problem and press the "send" button.

    ----
    I already send FSL a message. Waiting for reply.

    From my account only can see:

    [​IMG]
    Thanks anyway!
     
  18. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear Julio,
    just register. Then you'll be able to download it. Please tell me if I'm wrong.
     
  19. Julio Cruz

    Julio Cruz New Member

    Joined:
    Feb 18, 2016
    Messages:
    12
    Likes Received:
    2
    Hi Andrea!
    I already register, but cannot see the link.
    Thanks

    PS: I start working in the FreeRTOS :)
    PS2: may I know the function of the firmware m4_clean.fw? I suppose the m4_startup.fw include the original MQX with Arduino support, right?
     

Share This Page