Menu

#36 _init_startup option to call user code

closed
nobody
5
2020-02-24
2009-12-11
David Hoerl
No

This is specific to AVR32. The crt0.s file has a call to _init_startup, which FreeRTOS supplies. But, I'd like to run some of my own code at the same time - before C++ contstructors get called.

A nice way to do this would be to have a #define indicating whether FreeRTOS should call a user init_startup() before, or after, FreeRTOS executes its code in _init_startup.

One reason for this is wanting to have debugging output via RS-232 setup when the C++ constructors get called, to report problems (or confirm execution).

Now I can do this by adding my own code in port.c, but its the wrong place for me to put it.

Discussion

  • Richard Barry

    Richard Barry - 2020-02-24
    • status: open --> closed
    • Group: --> Next Release (example)
     
  • Richard Barry

    Richard Barry - 2020-02-24

    The AVR32 port in the FreeRTOS download is for ES chips - Atmel (now Microchip) maintain their own version.

     

Log in to post a comment.