After bootup application runs from SPI flash instead of DDR.

I am currently using ADSP-BF609 EZ-KIT Lite. 
Problem: ADSP-BF609 EZ-KIT has W25Q32BVSSIG SPI flash memory. It is currently unavailable so we are using W25Q32JVSSIQ SPI flash memory for custom board design. I have configured W25Q32JVSSIQ SPI flash memory. It seems my application is running from SPI flash memory but I wanted my application to run from DDR instead of SPI flash after boot up.
I tried with LED toggle program. While using JTAG, LED toggles as expected but if I dump code using command cldp, LED toggles at very slow rate.
Please guide me on how to run my application in DDR.
I am currently using ADSP-BF609 EZ-KIT Lite. 
Problem: ADSP-BF609 EZ-KIT has W25Q32BVSSIG SPI flash memory. It is currently unavailable so we are using W25Q32JVSSIQ SPI flash memory for custom board design. I have configured W25Q32JVSSIQ SPI flash memory. It seems my application is running from SPI flash memory but I wanted my application to run from DDR instead of SPI flash after boot up.
I tried with LED toggle program. While using JTAG, LED toggles as expected but if I dump code using command cldp, LED toggles at very slow rate.
Please guide me on how to run my application in DDR.
Parents
  • 0
    •  Analog Employees 
    on Feb 14, 2019 10:04 AM
    Hello,

    Regarding,"I tried with LED toggle program. While using JTAG, LED toggles as expected but if I dump code using command cldp, LED toggles at very slow rate."
    >> Please note that, upon  the  deassertion of  /RESET,  the  processor  starts  the  boot  process  by  executing  the  on-chip  boot  ROM,  which  determines  the  boot  mode, sets up the proper DMA channels (read from externa  memory to L1 memory), and  then  puts  the  processor  in  an  idle state awaiting for the completion of a DMA read transaction. After parsing the block of bytes read by the DMA, the boot ROM initiates another DMA transaction to load more bytes until all the bytes have been read. Note  that  the  booting routine is executed from the boot ROM, which is slower than L1 memory.

    Regarding,"Please guide me on how to run my application in DDR."
    >> You have to add the "section("sdram_bank0")" above the instruction (which one you need to run from external memory). Please find the example LED blink code which will execute from external memory. Hope this helps.

    Regards,
    Lalitha.S
Reply
  • 0
    •  Analog Employees 
    on Feb 14, 2019 10:04 AM
    Hello,

    Regarding,"I tried with LED toggle program. While using JTAG, LED toggles as expected but if I dump code using command cldp, LED toggles at very slow rate."
    >> Please note that, upon  the  deassertion of  /RESET,  the  processor  starts  the  boot  process  by  executing  the  on-chip  boot  ROM,  which  determines  the  boot  mode, sets up the proper DMA channels (read from externa  memory to L1 memory), and  then  puts  the  processor  in  an  idle state awaiting for the completion of a DMA read transaction. After parsing the block of bytes read by the DMA, the boot ROM initiates another DMA transaction to load more bytes until all the bytes have been read. Note  that  the  booting routine is executed from the boot ROM, which is slower than L1 memory.

    Regarding,"Please guide me on how to run my application in DDR."
    >> You have to add the "section("sdram_bank0")" above the instruction (which one you need to run from external memory). Please find the example LED blink code which will execute from external memory. Hope this helps.

    Regards,
    Lalitha.S
Children