Hi,
You can reference the code in this post. Note that if the function running in RAM calls softdevice functions or other functions located in flash inside, you will not save much current by running code from RAM, as these functions will still be executed from flash.
Best regards,
Jørgen
As per your suggestion I have made changes for one of the function ACCORDING TO this post. BUT i face same essue that not resolved in post. compiler gives same error
s/main.c:38:(.data+0x2): relocation truncated to fit: R_ARM_THM_CALL against symbol `ble_init' defined in .text.ble_init section in _build/nrf52840_xxaa_Ble_Interface.c.o
As per your suggestion I have made changes for one of the function ACCORDING TO this post. BUT i face same essue that not resolved in post. compiler gives same error
s/main.c:38:(.data+0x2): relocation truncated to fit: R_ARM_THM_CALL against symbol `ble_init' defined in .text.ble_init section in _build/nrf52840_xxaa_Ble_Interface.c.o