erltot wrote on Saturday, April 30, 2016:
I have also posted this in the avrfreaks forum.
http://www.avrfreaks.net/comment/1871906#comment-1871906
I got an application working fine on my robot with ATmega1284p.
I have another robot build on the arduino mega, with the atmega2560 chip.
I have set up to program the arduino mega with avrdude in atmel studio.
The plan was to just change some small context switching things in the port.c file and run the same software on this robot, to make it easy to make changes on both robots with little hassle.
It was not that simple.
I have tried several different port.c-files, but it seems FreeRTOS just stops working when I call vtaskdelay, it does not allow context switch… It may or may not doing something else, I don’t know since I can’t use the debugger and check.
The only version of FreeRTOS I seem to get to work, is the version from this repo: https://github.com/greiman/FreeRTOS-Arduino - when I use arduino IDE. I could off course implement my c code from the atmega1284 to the arduino IDE and run it from the .ino file, but I would rather be using atmel studio for both…
I have found some other libraries for freertos and atmega2560 but these seems very bloated and I have trouble picking out what I need to make my application work…
I would really appreciate some tips on how to proceed…
Sincerely