Hi @rodrigocsm ,
RT1024 support the ROM API, you can use the ROM API, that code can run in the flash directly.
Please check this SDK code:
SDK_2_13_0_MIMXRT1024-EVK\boards\evkmimxrt1024\driver_examples\fsl_romapi

Wish it helps you!
Best Regards,
Kerry