I have defined a data array in the external SRAM segement: const section("seg_ext") unsigned short flash_image[] = { 0x1234, 0x5678, . . . }; When loading the program image using the simulator, it works fine. But with the emulator, loading into the DSPs, the load fails to load the SRAM data image. I tried modifying the kernel to setrup SYSCON and WAIT registers to correctly access the board's external memory - but to no avail. These registers seem to return to their "reset" values before loading the program image. Does anyone have a clue how to do this? I would assume I would have the same problem locating executable code in external RAM. |
|
Defining a data array in external SDRAM
Started by ●January 22, 2003
Reply by ●January 22, 20032003-01-22
Paul, From working on the same program, I know you are using: 1. The ADSP-21060 (actually the Quad-SHARC AD14060) 2. VisualDSP++ 2.0 3. Summit-ICE Also, code cannot be executed out of 32-bit external SRAM (it needs 48-bits, which internal SRAM provides). I also had this problem of loading large (16K word) constant arrays into external memory. As soon as I tried to load a .dxe file with a large array destined for external memory, the VisualDSP would scream at me with emulator errors. Locating small globals in external memory seems to be fine )hwover, I don't recall if they were initialized). Don Waldron > -----Original Message----- > From: Vanbellinghen, Paul [SMTP:] > Sent: Wednesday, January 22, 2003 10:26 AM > To: ' > Subject: [adsp] Defining a data array in external SDRAM > > I have defined a data array in the external SRAM segement: > > const section("seg_ext") unsigned short flash_image[] = > { > 0x1234, > 0x5678, > . > . > . > }; > > When loading the program image using the simulator, it works fine. But > with > the emulator, loading into the DSPs, the load fails to load the SRAM data > image. I tried modifying the kernel to setrup SYSCON and WAIT registers to > correctly access the board's external memory - but to no avail. These > registers seem to return to their "reset" values before loading the > program > image. Does anyone have a clue how to do this? I would assume I would have > the same problem locating executable code in external RAM. > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author > of this message will receive your answer. You need to do a "reply all" if > you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > > To Post: Send an email to > > To Leave: Send an email to > > Archives: http://groups.yahoo.com/group/adsp > > Other Groups: http://www.dsprelated.com/groups.php3 > ">http://docs.yahoo.com/info/terms/ > |