I used the ble in sdk17.1 ble_app_uart_c example and made some modifications to it, nrf52840 ran well -- until I added a calculation function to the main function
Whenever I run to the computing section, I get app: Fatal error. I referenced other posts to modify the output, and now I get app: SOFTDEVICE: INVALID MEMORY ACCESS INFO 0x0
Regarding this calculation function: it was generated by Matlab and is a black box to me, but I am certain that it does not contain any operations on registers, and it runs well on max32660 (a chip with smaller available RAM and ROM)