Hi There.
I need to split the only Block0 (512kB) present in s32k310 in two parts: bootloader and application part.
Running bootloader, I need to erase/program application sectors and I need to load Erase and program functions to ".ramcode " (then .itcm later because SRAM is so small... ) because of a unique block0 available.
I have a lot of problem by placing RTDs functions in "ramcode, "
Using an" attibute_section" near each function is ok but it makes the code unmaintainable when newer RTDs are available.
A much affordable approach is to replace MEM_43_INFLS_START_SEC_CODE/MEM_43_INFLS_END_SEC_CODE with MEM_43_INFLS_START_SEC_RAMCODE/MEM_43_INFLS_END_SEC_RAMCODE in C40_ip.c
and
RTE_START_SEC_CODE/ RTE_STOP_SEC_CODE with RTE_START_SEC_RAMCODE/ RTE_STOP_SEC_RAMCODE in SchM_Mem_43_INFLS.c (called by C40_Ip)
but, tacking a look to map file, not all the funcions included (in those sections SRART/STOP) are placed in ".ramcode" section. and are still placed in .mcal_text.
In particular no one of the the functions I need is placed in ramcode.
Is it available a method useful to place s32k310 RTDs in ram ? Maybe I miss something.... Otherwise it is not possible to erase sectors of the same block in s32l310 (a bus fault hard exception always occours ) in an mantainable manner.
Best regards
Fabio