Hi everyone,
Im using a custom board, with an AT91rm9200. Im am trying to load some code onto the microcontroller using the xmodem protocol, but things dont seem to be going right. I am using the Debug port to transmit data serially to and from Hyperterminal in windows.
I am using the xmodem ROM services on the 9200. I had borrowed code from the Application example on ATmel`s site (AT91RM9200-BasicROM_Services-ARM1_2-2_0), so it wud seem that the code is okay.
This is what happens: i switch on the board, i see "ccccc" on Hyperterminal sent by the default boot program on the at91rm9200, so i load my program. then, when the program is executed, i see "cccc" again, indicating that the xmodem service was re-initialised correctly.
But after this when i try to send my code, Hyperterminal flashes a "Retry Request Received" and then stops, saying : "Error Limit Exceeded". It seems that the code stops at this point:
xmodemPipe.Read(&xmodemPipe, (char *)ADDRESS, MAXSIZE, AT91F_XmodemProtocol, 0);
I have tried different values of ADDRESS and MAXSIZE, but to no avail..what could be wrong?? i can post the full code here, if it wud help detect the problem..
Thanx, Mayank