Thanks for the reply!
The example in the link you provided, flashes and executes the image in RAM.
The same image does not work, when flashed in QSPI. I am flashing image to QSPI the same we flash uboot to QSPI, using manufacturing tool.
The ivt of the example is posted below,
In this ivt, boot_data points to an OCRAM address and rest all are labels. Also, the linker file is meant for OCRAM addresses.
So, I think this program should work even when placed in QSPI (non XIP). But it does not work!
I tried replacing boot_data_ptr and self_ptr by the absolute addresses in QSPI, that also does not work!!
Please help!
ivt_header : .long 0x402000D1
app_code_jump_vector : .long Reset_Handler
.long 0
dcd_ptr : .long 0
boot_data_ptr : .long boot_data
self_ptr : .long ivt_header
.long 0
.long 0
boot_data : .long 0x00920000 /* for DQ */
image_len : .long 0x18000 /* 96 KB app size */
plugin : .long 0