Did I trash my 5270?
Posted: Fri Apr 13, 2012 9:29 pm
I wrote code with a memory smash in it; now I can't get it to run anything. I've power cycled the board, and now I'm trying to get the Hello world (built with autopdate) to run, just so I can easily load something else in. I get instant crashes.
Hello world:
extern "C" {
void UserMain(void * pd);
}
const char * AppName="WeatherStation";
void UserMain(void * pd) {
InitializeStack();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
#ifdef _DEBUG
InitializeNetworkGDB_and_Wait();
#endif
iprintf("Application started\n");
while (1) {
OSTimeDly(20);
}
}
It compiles (control-S) just fine. I use MTTY to Shift-A into the board's command prompt, issue a DL, and then use MTTY's Transfer>sendFile to send the app (in this case WeatherStation.s19). It seems to download ok, but when I type go I get:
nb>dl
Begin Down load now.... (Any char but S to stop )
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
**********************************************Starting address = 02000000
S Record End detected
nb>
nb>go
Trap occured
Vector=Access Error FMT =03 SR =0200 FS =0C
Faulted PC = 020005CC
D0:00000000 000000D1 000000D2 000000D3 000000D4 000000D5 000000D6 000000D7
A0:00000000 20010000 0201B660 000000A3 000000A4 000000A5 021FFFFC 021FFFE8
Waiting 3sec to start 'A' to abort
What am I missing? The FLA command with the APP file doesn't go any better:
nb>fla
Begin Down load now.... (Any char but S to stop )
********************************************************************************
********************************************************************************
********************************************************************************
****************************Starting address = 02000000
S Record End detected
S Recs start at the wrong address
Flash not programmed
Please help!
Hello world:
extern "C" {
void UserMain(void * pd);
}
const char * AppName="WeatherStation";
void UserMain(void * pd) {
InitializeStack();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
#ifdef _DEBUG
InitializeNetworkGDB_and_Wait();
#endif
iprintf("Application started\n");
while (1) {
OSTimeDly(20);
}
}
It compiles (control-S) just fine. I use MTTY to Shift-A into the board's command prompt, issue a DL, and then use MTTY's Transfer>sendFile to send the app (in this case WeatherStation.s19). It seems to download ok, but when I type go I get:
nb>dl
Begin Down load now.... (Any char but S to stop )
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
**********************************************Starting address = 02000000
S Record End detected
nb>
nb>go
Trap occured
Vector=Access Error FMT =03 SR =0200 FS =0C
Faulted PC = 020005CC
D0:00000000 000000D1 000000D2 000000D3 000000D4 000000D5 000000D6 000000D7
A0:00000000 20010000 0201B660 000000A3 000000A4 000000A5 021FFFFC 021FFFE8
Waiting 3sec to start 'A' to abort
What am I missing? The FLA command with the APP file doesn't go any better:
nb>fla
Begin Down load now.... (Any char but S to stop )
********************************************************************************
********************************************************************************
********************************************************************************
****************************Starting address = 02000000
S Record End detected
S Recs start at the wrong address
Flash not programmed
Please help!