I'm receiveing this error 7 on line error 296. the only APP_ERROR_CHECK on line 296 is hci_slip_rx_buffer_register
. this documentation doesn't not give any description of error 0x07
I'm receiveing this error 7 on line error 296. the only APP_ERROR_CHECK on line 296 is hci_slip_rx_buffer_register
. this documentation doesn't not give any description of error 0x07
Hi
That's very odd. Since you are linking to documentation for SDK 8.x.x I assume this is the SDK you are using. I looked at the example "dfu\bootloader\pca10028\single_bank_serial_s110" and had a look at line 296 in hci_transport.c:
err_code = hci_slip_rx_buffer_register(mp_slip_used_rx_buffer, RX_BUF_SIZE);
APP_ERROR_CHECK(err_code);
What I find very strange is that if you look at the definition of hci_slip_rx_buffer_register()
in hci_slip.c the only value it can return i 0 (NRF_SUCCESS). Are you sure you are debugging correctly and that you get the return value 7? Error 7, by the way, is NRF_ERROR_INVALID_PARAM.
in fact im using SDK10
Still, I looked at the same example mentioned above, but in SDK 10 and hci_slip_rx_buffer_register() can still only return success. What example do you use (if any)? In what file do your error originate?
I'm not using any example, im using my own. on the void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name)
fucntion ,I get line_num 296
error_code 7
. I'm compiling with DEBUG
flag and -O0
Any file name in p_file_name?