Revision history [back]

click to hide/show revision 1
initial version

The Arduino DUE uses FreeRTOS which handles task switching (context switching). The two tasks have the same priority meaning they share a time slice. This means that FreeRTOS will automatically context switch every "tick" which is set to 1ms. You should be seeing the two tasks flip flop between one another once the MBoxListenAndProcessTask task is created. By your question I assume the main task is stuck in the while loop waiting for the driver to start? There is some difference in GT-202 shield pin-outs between hardware revisions. One thing you could try is changing pin 28 to pin 22 by editing line 82 in bsp/due/aj_target_platform.h to read:

#define AJ_WSL_SPI_CHIP_POWER_PIN PIO_PC22_IDX /* pin D3 on the Arduino Due */

Recompile with that and see if that fixes the problem your seeing.