Hi, everyone: I am experiencing a strange problem with my DSP56803EVM and CodeWarrior 5. My application talks to a PC through the EVMs serial port and the user LED toggles if the 1ms interrupt works fine. The communication was OK when the CodeWarrior target setting was ext RAM Mode3. But when I changed the setting as flash pxROM w/ ext xRAM and tried to boot my application after power down with the parallel port cable not connected to board, I lost the communication, though the LED was toggling indicating the application was running. So I assumed it was not boot problem. However I also noticed that if the parallel port cable was connected to EVM board before power on, the communication was OK, so still maybe I missed something? I traced the code and found in a static subroution, a local variable parm[] was initialized when it was declard: static UCHAR * z_data_test_dbug( UCHAR * buf_p, USHORT id1, USHORT id2 ) { UCHAR * msg_p = buf_p; USHORT parm[] = { 8, 1 }; USHORT temp; WORD ident; USHORT i, j; .. } I changed the initialization part as below: static UCHAR * z_data_test_dbug( UCHAR * buf_p, USHORT id1, USHORT id2 ) { UCHAR * msg_p = buf_p; USHORT parm[2]; USHORT temp; WORD ident; USHORT i, j; parm[0] = 8; parm[1] = 1; } Then communication was OK either in ext RAM Mode3 or flash pxROM w/ ext xRAM. But I still dont understand why, Could somebody give me any advice? Holly |
|
Local variable declaration
Started by ●December 10, 2002
Reply by ●December 12, 20022002-12-12
On my DSP56F827EVM I have to add a jummper to disable the JTAG port to get reliable operation when running out of flash. It sounds like you might be having this problem. Jacob --- In , "hyzhou_14850 <hyzhou_14850@y...>" <hyzhou_14850@y...> wrote: > Hi, everyone: > > I am experiencing a strange problem with my DSP56803EVM and > CodeWarrior 5. > > My application talks to a PC through the EVMs serial port and the > user LED toggles if the 1ms interrupt works fine. The communication > was OK when the CodeWarrior target setting was ext RAM Mode3. > But when I changed the setting as flash pxROM w/ ext xRAM and > tried to boot my application after power down with the parallel port > cable not connected to board, I lost the communication, though the > LED was toggling indicating the application was running. So I assumed > it was not boot problem. However I also noticed that if the parallel > port cable was connected to EVM board before power on, the > communication was OK, so still maybe I missed something? > > I traced the code and found in a static subroution, a local variable > parm[] was initialized when it was declard: > static UCHAR * z_data_test_dbug( UCHAR * buf_p, USHORT id1, USHORT > id2 ) > { > UCHAR * msg_p = buf_p; > USHORT parm[] = { 8, 1 }; > USHORT temp; > WORD ident; > USHORT i, j; > > .. > } > I changed the initialization part as below: > static UCHAR * z_data_test_dbug( UCHAR * buf_p, USHORT id1, USHORT > id2 ) > { > UCHAR * msg_p = buf_p; > USHORT parm[2]; > USHORT temp; > WORD ident; > USHORT i, j; > > parm[0] = 8; > parm[1] = 1; > > } > > Then communication was OK either in ext RAM Mode3 or flash > pxROM w/ ext xRAM. But I still dont understand why, Could > somebody give me any advice? > > Holly > Hyzhou_14850@y... |