we are trying to use PCIe to boot our own board (not using EVM). The PCIe on dsp is configured as EP and host has configured the PCIe registers on C6657 and downloaded the code to L2 of core 0. Host also wrote the entry address _c_int00 into BOOT_MAGIC 0x8FFFFC, but the global variable I set in main is not changed. In fact the entry in BOOT_MAGIC is not changed, still has the entry address host wrote.
I then connected jtag, PC is still in the rom bootloader. I checked the DEVSTAT@0x2620020 and it is 0x0001 1808, so my understanding is PCIESSEN is 1 (pcie enabled), PCIESSMODE=00 (EP), LENDIAN=0 (big endian). BOOTMODE=0110 00 0000 100, so PCIe boot is chosen. It looks right to me.
Now, the interesting part: using jtag, I changed PC to start of ROM boot loader (0x20B00000), and let the dsp run after I load the symbole file in dsp and set breakpoint in both _c_int00 and main. Neither breakpoint were hit, I did not see the global variable changed. But interestingly, the BOOT_MAGIC at 0x8FFFFC is cleared to 0 and PC is still in rom bootloader region (around 0x0x20B010B0).
I must have missed something somewhere. Any one could give me a tip?
thanks
Weichun