Provided example demonstrate possibility of creation Position Independent Code using standard S32DS ARM 2.2 tools. Example code blink RGB LED using svc interrupt handler. Output picExample.bin should be loaded via restore gdb command only into existing K144 RAM area(0x1fff8000 – 20007000 for EVB board), then pc set to startup value.(see picExample_Debug_RAM_PNE_fpic Debug configuration).
Note: restore gdb command needs absolute path to *.bin file.
Example is based on standard K144 application.
-fPIC option should be set(Project->Properties->C/C++ Build ->Settings->Standard S32DS Compiler->Miscalenous->Position Independent Code).