My question revolves using Bootloader routines in my Flash code. This is legacy code so I have no opportunity to change the Bootloader code. I have a need to use several Bootloader routines as well as some data in the Bootloader. I am currently accessing the data by:
Options for Target 1: L51Locate Code: ?CO?CRCTABLE(007FH) in the (007FH came from the Bootloader map)
const unsigned int code crc_table[256] = { .... }
void CmdWrite(unsigned char c) { DISPLAY_CD = TRUE; while((DisplayAddress & 0x03) != 0x03) { PCON |= 0x10; T3 = 0x00; } DisplayAddress = c; DISPLAY_CD = FALSE; }
unsigned char xdata DisplayAddress _at_ 0x0000; sfr P4 = 0xC0; /* Port 4 - Display control */ sbit DISPLAY_CD = P4 ^ 0; /*P4.0: Display command/data - data active low */
?CO?CRCTABLE(007FH) to ?CO?CRCTABLE(007FH),?CO?DSPDRV(120EH) (120EH came from the Bootloader map)
**** Warning L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?CO?DSPDRV **** ERROR L1110: CANNOT FIND SEGMENT SEGMENT: ?CO?DSPDRV
One more thing - I am using the BL51 Linker