cancel
Showing results for 
Search instead for 
Did you mean: 

SPC56EL70 RAM program creation and launch

Levkovalev
Associate

Hello, recently, in attempt to create custom software for SPC56EL70 programming, I have encountered a problem to successfully launch RAM located program inside of the MCU. Discovery board is used for the test.
Programming operations are commit via JTAG, and communication layer is already built and shows no faults. Full read of flash memory of the processor was successfully done. Since I haven't worked with any of SPC MCUs before, my JTAG set of instructions are based on MPC5xxx line, so you can assume that main issues might be in key differences between these methods.
Firstly, in SPC5 Studio IDE, program for test is created, for example "led blink". For program .ld file is corrected for all segments to be located in RAM(No entry adjustments, ORIGIN is adjusted to ram).
MCU is started, MMU, SRAM, are initialized. Bin file is then loaded to RAM(it is then checked for presence), and after that CPUSCR instruction is passed with PC having 0x40000000 - 0x04(NOP as IR) address where program is loaded(program is VLE). However, no output is visible. No LED or pin toggling are present, sometimes program is stuck in a loop or just goes back to JTAG. Same program but configured in .ld file for flash does work, so either .ld file is not correctly set up, MMU or SRAM is not initialized in a plausible way or CPUSCR instruction is not launching the program.
Main questions are:
Is there a correct way to configure spc5 studio project for RAM program creation(any changes besides sections)?
Is there an example of how to correctly setup the MCU peripherals via JTAG(for RAM execution)?

P.S.
LS Mode is used


0 REPLIES 0