it is about linking, the code should go to section that goes to ram, in gcc C it is like '__attribute__((section(".mysection")))' where .mysection in linker script is set to go to RAM.What is the mechanism to set an assembler function to run in RAM?
so either find how to mark code with section attribute or change symbol name to something specific like __ram_xxxxxx and then in linker section for ram match all __ram_* symbols to go to it
EDIT: for Pico it is here https://github.com/raspberrypi/pico-sdk ... ions.h#L41
EDIT2: for assembly see this https://github.com/raspberrypi/pico-sdk ... iscv.S#L14
Statistics: Posted by fanoush — Fri Sep 13, 2024 7:30 am