div_mod.S as ram_code

Discussions on BLE related products, including standard BLE devices, BLE mesh, and Apple HomeKit products
Post Reply
wecango
Posts: 4
Joined: Mon Apr 29, 2019 6:03 pm

Mon Jun 10, 2019 9:53 pm

I have not been able to link the division and modulus functions that appear in div_mod.S as ram_code. When I try to do this I get errors about interworking.

I would like to do this as I am concerned about battery efficiency when these functions are stored in flash code but are regularly being used.

Does anyone know if this is possible?
TL_bloom5
Posts: 3
Joined: Fri Jan 19, 2018 1:37 pm

Tue Jun 11, 2019 4:32 pm

hey, wecango

you can try replacing ".text" by " .section .ram_code,"ax" " before functions you wanna link in the ram code
wecango
Posts: 4
Joined: Mon Apr 29, 2019 6:03 pm

Tue Jun 11, 2019 10:22 pm

This works! thank you. I was missing the "ax" directive.
Post Reply