I keep getting this error code and while debugging I'm able to resume execution. This error seems to be thrown during my DMA transfers over SPI. Is there somewhere I can look for the error code? The SD base error codes end at 0x400.
I keep getting this error code and while debugging I'm able to resume execution. This error seems to be thrown during my DMA transfers over SPI. Is there somewhere I can look for the error code? The SD base error codes end at 0x400.
I'm pretty sure that is not a valid error code. What SDK version are you using? Where do you get the error? What function returns it? Have you turned off optimizations? If you are using a SoftDevice you shouldn't resume execution after you have hit a breakpoint.
I'm using SDK 12.2. Agree it's not valid error code but it occurs regularly. Turning off GAP advertisements seems to prevent it but the stack trace doesn't give me any insight as to where in the soft device this is occurring. I'm compiling with GCC -O0.
If it helps I'm using all three SPI, SAADC, RTC, and RNG in addition to S132 3.0.
Ok. Have you defined DEBUG? What is the line number, file name and error code in app_error_handler()?
I have DEBUG and DEBUG_NRF defined in CFLAGS.
Here's what I get in app_error_fault_handler(..):
id: 1 pc: 69968 info: 0 line_num: 1024 p_file_name: 0x8e5 "K\030G\006J\020`\001h\201ó\b\210@h err_code: 0x579
Stack trace: Thread #1 57005 (Suspended : Breakpoint) app_error_fault_handler() at main.c:234 0x395c8 softdevice_fault_handler() at softdevice_handler.c:90 0x2eb4a () at 0xfffffff1 0x11152 0x1114a
I don't understand why you get that error code. Could you try to print with app_error_print()?