Whilst I can now recover the board after a crash, I am still getting these "hard fault at PC=0x00000000" errors whenever I try and create an RTOS task.
Running umm_info() before attempting to launch the task gives this:
[24733.109] Dumping the umm_heap...
[24733.109] |0x20000910|B 0|NB 0|PB 0|Z 0|NF 0|PF 0|
[24733.110] |0x20000910|B 0|NB 0|PB 0|Z 2048|NF 0|PF 0|
[24733.110] Total Entries 0 Used Entries 0 Free Entries 0
[24733.110] Total Blocks 2048 Used Blocks 0 Free Blocks 2048
[24733.110] Size of umm_heap is 24576 bytes, used: 0 bytes, free: 24576 bytes
I have fiddled with the values of the stack size in the task creation and the only extra information I have been able to ascertain is that if I request too much memory, or none at all, then there is no crash (but nothing useful happens either), which seems to indicate that the crash is only happening when there *is* available memory.
e.g.
xTaskCreate(TASK_LED_Update, (signed portCHAR *)"LED", 4*1536, NULL, PRIORITY_TASK_LED_UPDATE, NULL); gives the error in MIOS Studio console:
[25057.685] Can't allocate 2049 blocks at 305
Any ideas welcome!