acassis opened a new issue, #8477: URL: https://github.com/apache/nuttx/issues/8477
After the PR https://github.com/apache/nuttx/pull/7160 ESP32 BLE driver is crashing. @gustavonihei figure-out that the issue is caused by the change with the source pointer `_data_start_btdm_rom` And he come up with this small fix: ``` --- a/arch/xtensa/src/esp32/esp32_ble_adapter.c +++ b/arch/xtensa/src/esp32/esp32_ble_adapter.c @@ -451,8 +451,8 @@ extern uint8_t _bss_start_btdm[]; extern uint8_t _bss_end_btdm[]; extern uint8_t _data_start_btdm[]; extern uint8_t _data_end_btdm[]; -extern const uint8_t _data_start_btdm_rom[]; -extern const uint8_t _data_end_btdm_rom[]; +extern uint32_t _data_start_btdm_rom; +extern uint32_t _data_end_btdm_rom; extern uint8_t _bt_bss_start[]; extern uint8_t _bt_bss_end[]; @@ -2027,11 +2027,11 @@ static void btdm_controller_mem_init(void) /* initialise .data section */ - memcpy(_data_start_btdm, _data_start_btdm_rom, + memcpy(_data_start_btdm, (void *)_data_start_btdm_rom, _data_end_btdm - _data_start_btdm); wlinfo(".data initialise [0x%08x] <== [0x%08x]\n", - (uint32_t)_data_start_btdm, (uint32_t)_data_start_btdm_rom); + (uint32_t)_data_start_btdm, _data_start_btdm_rom); /* initial em, .bss section */ ``` @xiaoxiang781216 could you please helps us to understand what is going on after that PR? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
