This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

5502 not running out of SDRAM after boot

Hello, we are using the 5501 processor and are trying to get it to run standalone.  we are using the programmer Hex55  but are having trouble configuring the SDRAM.

Here is the problem I am having:

We are booting the C5501 from SPI Flash on the McBSP.  I can write a program that resides entirely in internal DARAM, program the flash, and the bootloader will boot and execute the program just fine.

If I have a program that resides in mostly external SDRAM on CE0, the bootloader does not seem to be able to load the code and execute it.  I have added the EMIF setup to the hex55 command file and it appears the boot image is built correctly to set those registers. The startup extry point _c_int00 is in the SDRAM.

So, if I reset the processor with the emulator and then execute the boot code, I can see that the parts of the program that are in DARAM are there, and the parts that are in SDRAM are there.  I have even cleared memory to ensure the bootloader is actually loading the code.  Also, when the processor is reset with the emulator, the SDRAM gets corrupted as the EMIF is reset.  So I know for sure the bootloader is loading the code.  However, somehow it is going off into the weeds when it tries to execute.

Any Ideas what could be wrong?  The command file I am using for hex55 is as follows:

-boot
-v5510:2
-b
-serial8
-reg_config 0x0800,0x00a0
-reg_config 0x0804,0xFF33
-reg_config 0x0805,0x1051
-reg_config 0x080c,0xF000
-reg_config 0x080d,0x4748
-reg_config 0x080e,0x0001
-reg_config 0x080f,0x0000
-i Version_0d_5501.out
-o C:\Version_0d_5501.bin

 

Thanks for the support., John