Crossworks thread.js

fizzyaid wrote on Wednesday, November 07, 2018:

hi,

dont suppose anybody has a up to date working threads.js for crossworks so i can monitor the rtos in the debugger?

thanks

rtel wrote on Wednesday, November 07, 2018:

That file is very old, to be honest I had sort of forgotten it was
there. Suggest contacting Rowley directly as they provided it originally.

fizzyaid wrote on Wednesday, November 07, 2018:

ok, i “fixed” it but i’m not sure if its 100% correct, will contact rowley and see what they say.

rtel wrote on Thursday, November 08, 2018:

Be grateful if you could attach your updated file to a post in this thread.

fizzyaid wrote on Friday, November 09, 2018:

The easiest solution comes from this link:

https://github.com/arduino/OpenOCD/blob/master/contrib/rtos-helpers/FreeRTOS-openocd.c

const int uxTopUsedPriority = configMAX_PRIORITIES - 1;

At some point you removed uxTopUsedPriority which the threads.js was looking for when creating its task list. Defining it again in the application code to the defined value makes it work again.