>On 5/12/21, Tim Hardisty <t...@hardisty.co.uk> wrote: >>>From: Alan Carvalho de Assis <acas...@gmail.com> >>> >>>Did you enable CONFIG_DEBUG_CAN_INFO in your menuconfig? >>> >>> │ -> Build Setup >>> │ >>> │ -> Debug Options >>> │ >>> │ -> Enable Debug Features (DEBUG_FEATURES [=y]) >>> │ >>> │ -> CAN Debug Features (DEBUG_CAN [=y]) >>> >> >> Indeed I did. And, anyway, even if I hadn't my debug message might >> appear but the system would keep running, but it doesn't: it crashes. >> I have inserted the while(1) to narrow it down to where it >> crashes....it is the call to that debug message that does it :( >> > >Try to put a sam_piowrite(PIO_LED_YOURLED, true/false); to between the >caninfo() and the while(1); just for a double check ;-) > >By PIO_LED_YOURLED I mean the LED that is turning ON when your board >initializes. > >Talking about LEDs... other important thing: normally when NuttX crashes the >board LED start to blink to indicate an issue, is it blinking on your board?
This is a custom board, and no LED such as that. I have removed any LED-related stuff from the board.h file...is that the issue? Maybe NuttX absolutely depends on some kind of LED?