Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).
|
hi to all, i'm using DSP56805EVM, i'm using project stationary & assembler of codewarrior ver4.1.At present my codes r running from external memory & now i want to run those codes from internal memory. For that i have done the following 1)i hv removed JG8(sram enable)jumper. 2)i have closed JG7(int/ext boot jumper),then downloaded the code to DSP via parallel cable i.e. through JTAG port. but my code is not running. can anyone plz help me out Thanks in advance with regards Virendra singh |
|
|
|
If you
haven't figured it out already, there are some significant differences in running from external
ram, and internal flash. In theory, the stationary should shield you from those to a
large extent. Hoewever, the only way to fully understand what your code is doing, is to
understand the linker.cmd file for both environments.
If you are
not using the SDK, you will need to make sure you are getting the reset "ISR" vector that is
stored to program memory address 0x0000 in the external ram version, to be stored at
address 0x8000 (for 805 cpu) when the program runs from flash. The linker.cmd file
controls where the various chunks of code get located into either Ram or Flash. In flash
mode, the reset vector is always executed from the boot flash memory, even though the address
is still at program location zero. The first 4 words of boot flash memory are
mirrored into locations 0-3 in program memory space. I normally do this with 2 seperate
executables. The boot loader code, and the application code.
Once you get
the right vector at location zero, your code should then run as it did from external
ram.
One other
point, if the above is correct, is to be aware that when running from external ram, the
download process may be initializing your data. When running from Flash, without the
benefit of downloading each time, your code must initialize your data. This is
normally done by the the SDK architecture code.
Hope this
helps!!
Jerry
|
|
I've got a couple of questions. I've been through the docs but I cant seem to get the ansewer. I'm using a 805evm & code warrior 3.5 (SDK 2.1.1) I'd like to download my code to internal flash. Right now its being downloaded to external ram. I've done a search on the msg board and found out about the flash_over_jtag exe. I dont know how to generate the S record from the project files. Can the IDE be used to generate the SREC file, then use the flash_over_jtag exe to download to internal flash? As you can see I'm wicked confused about tools to use :? Thanks Joe |