I want to down load my code to the flash of MPC5744P by usting S32DS,
Actually I want to make the MCU run the code auto when it is powered on, rather than download the code again.So I think
the code needs to be downloaded to the flash of the MCU.
How to do that?
Thanks in advance.
change your build target from _RAM to debug (or debug_FLASH)
Build your project and select debug configurations
Choose GDB PE Micro debug configuration
After upload you can disconnect PE micro (or build in Open SDA debugger) and reset/re-power your board. Your program will start from Flash memory.
But I met another problem.
In my controller board, I tried to download the code to flash and re-power my board, but after I re-power, the MCU does not work.
When I download the same code to the flash of my demo board in the same way, the demo board will work after I re-power.
What is the problem? Is it a problem with something called boot mode?Or something else?
This bothers me a lot.
See this for more info about howto program the board using S32DS: HOWTO: download separate elf/srec/hex file to microcontroller using S32 Design Studio
* Please check if both your boards are using the same crystal/oscillator. If they differs same firmware may not run on both devices if external clock is used for PLL.
* Check the FAB pin on your custom (controller) board. It should be set to 0 in order to boot from internal memory.
If it does not help you can try to attach the debugger and pause running on the controller board to figure out where the execution "get lost".
hope it helps.