Hello,
I also tried to execute code from OCRAM using elftosb.exe and MfgTool
I made "gpio_led_output" proejct from "Import SDK example" of MCUXpresso.
And I left SRAM_OC and deleted everything at memory configuration
And I checked "link application to RAM" option.
After build and connecting debugger, I saw that it didn't work well.
Next I made boot_image.sb as below
elftosb.exe -f imx -V -c imx-ocram-unsigned.bd -o test_gpio_led_output.bin test_gpio_led_output.axf
Section: 0x0
iMX bootable image generated successfully
elftosb.exe -f kinetis -V -c program_flexspinor_image_hyperflash.bd -o boot_image.sb test_gpio_led_output_nopadding.bin
Boot Section 0x00000000:
FILL | adr=0x00002000 | len=0x00000004 | ptn=0xc0233007
ENA | adr=0x00002000 | cnt=0x00000004 | flg=0x0900
ERAS | adr=0x60000000 | cnt=0x00100000 | flg=0x0000
FILL | adr=0x00003000 | len=0x00000004 | ptn=0xf000000f
ENA | adr=0x00003000 | cnt=0x00000004 | flg=0x0900
LOAD | adr=0x60001000 | len=0x00008040 | crc=0x93ea1b6f | flg=0x0000
After setting SW7 to 0, 1, 0, 1, I downloaded boot_image.sb to EVK board using MfgTool and I succeeded it.
However, After reset, it didn't work well.
I don't know what the problem is.
please let me know what's wrong
Additionaly, I think that I can execute code from RAM with Plugin Boot.
I don't know how I can it. So Can you give me reference project and code for plugin boot?