AnsweredAssumed Answered

MPC5645S Bootloader problem

Question asked by Josep Gorgues on Jul 13, 2016
Latest reply on Jul 14, 2016 by Peter Vlna

Hi,

I am using the MPC5645S. I am trying to build a Boot-loader. I can store a Firmware in the flash and I am able to jump to the application.

The main run correctly. However, I have a problem when a function is executed in the main. The debugger says that I try to access on an illegal memory.


Should I set the functions to a section to had a proper access?

To set a function to a section we should use the following instruction?

 

#pragma push

#pragma section ".app_flash"

__declspec(section ".app_flash")

     FUNCTION

#pragma pop

 

Thanks,

Josep

Outcomes