any bare metal reference for accessing M4 ?

Discussion in 'UDOO NEO' started by radipta, Nov 14, 2017.

  1. radipta

    radipta New Member

    Joined:
    Oct 16, 2017
    Messages:
    8
    Likes Received:
    0
    Hi there, I've been working on bare metal project with udoo neo full and free rtos. Now I am facing some problem with the implementation to access feature from M4 like how to set the timer, how to use the GPIO, and simply how to make hello world without using arduino code and IDE.
    My another project is doing bare metal on stm32f4 and they are provide stdperipheral driver for that purpose. any reference how to do such thing on udoo neo? any help will be great for my research

    radipta
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    If your already using FreeRTOS on the udoo neo then are examples already provided in the BSP release which you can use as a starting point. Also beware this isn't bare metal because its using an RTOS, furthermore the M4 differs widely from the stm32f4 because of shared pin muxing/clocks and no on board flash as the M4 is a secondary core. There is an old thread which partly answers your question.
     
  3. radipta

    radipta New Member

    Joined:
    Oct 16, 2017
    Messages:
    8
    Likes Received:
    0
    sorry for late reply.
    I've read that thread, and unfortunately, someone who develops the bare metal and OSEK done it in Windows environment. My research lab only allows me to use Linux. I've tried to build that project using Kinetis Design Studio and try to upload the .bin file, and m4uploader gave me errors.

    another shot is tried to debug the example of FreeRTOS BSP but the .bin file didn't created. so maybe you know some IDE that works o Linux and able to debug the FreeRTOS example and then run it on M4.
     
  4. PaulR

    PaulR New Member

    Joined:
    Dec 12, 2017
    Messages:
    9
    Likes Received:
    0
    I have been able to compile the bare metal sample at :

    https://github.com/kamejoko80/my_osek/tree/master/NEO_M4_BARE_METAL

    following this on Linux with Eclipse Oxygen: (i think it should be easier to use older versions of Eclipse)

    https://mcuoneclipse.com/2015/09/04...clipse-ide-for-arm-embedded-microcontrollers/
    https://mcuoneclipse.com/2016/10/29...ions-for-arm-cortex-m4-on-i-mx7-with-eclipse/

    The demo just flashes a LED from M4 core at regular intervals.
    I'm using the Yocto compiled udoo image, and although the mqx_upload_on_m4SoloX binary (called by udooneo-m4uploader script) gives an error, it really loads the hello_world binary in M4. I know that, because i change the led flashing interval, and i see it really changes led behaviour.
     

Share This Page