The programming software continues sending the hex file until it is all sent. After
each line of “.hex” file is received by the bootloader, one of three characters is
transmitted by the bootloader:
- ‘~’ Line received with no errors.
- ‘%’Line received with no error, but an error occurred while flashing.
- ‘-‘ Checksum error detected while receiving the line.
5. After the programming is complete, the AVRBL sends either a ‘#’, meaning the
programming is all right, or an ‘@’ indicating that an error has occurred and the
program did not load successfully. In most cases an error during programming
means that the main application program is corrupted and will need to be resent.
6. The AVRBL then starts the newly programmed application software. As stated
in step 2, the AVRBL tests to see if there is code located in the main application
area of flash. If there is, the AVRBL jumps to it, otherwise, execution stays within
the AVRBL indefinitely, waiting for the entry sequence.
Character Definition
//define three character string to enter boot loader
#define char1 '@' /* reset codes.. start load codes.. */
#define char2 '&'
#define char3 '$'
// define bootloader active char
#define BOOTLOADER_ACTIVE_CHAR '^'
//define bootloader ready for file character
#define READY_CHAR '?'
// define line complete with no error character
#define LINE_COMPLETE_CHAR '~'
// define checksum error character
#define CS_ERROR_CHAR '-'
// define flash page error character
#define PAGE_ERROR_CHAR '%'
// define file complete, no errors character
#define FILE_COMPLETE_CHAR '@'
43
7
Содержание Roll Laminator PL-LR
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 18: ......
Страница 40: ......
Страница 44: ......
Страница 45: ...Certifications 45 8 8...
Страница 46: ...46 8...
Страница 47: ...47 8...