We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I write a bootloader to update the flash,but when the bootloader update the ?c?LIB_CODE,the MCU(C8051F005) always jump to another incorrect place. So I put the ?c?LIB_CODE into boot-area when linking. (BTW,my bootloader and app are compiled together.)
But I am afraid the ?c?LIB_CODE will increase when I use some new function in the newer applcation.then the app will be wrong if I do not update the ?c?LIB_CODE.
Any one has good ideas?
Application Note 180 Multi-Application Programming for 8051 Devices
This Application Note shows the how to create multi-application projects. The techniques shown are useful when you need a boot loader and an user application but may apply also in other situations. The example projects that come with this application note are created with the PK51 Professional Developers Kit Version 8 and the extended LX51 Linker/Locater.
http://www.keil.com/appnotes/docs/apnt_180.asp
Bootloader Example Code This ZIP file contains some example code the shows you for how to create a program with BOOT code in EPROM from 0000h to 7FFFh and an external program in FLASH from 8000h to 0FFFFh. The bootloader and FLASH programming code is not included in this example project.
The project file BOOT.UV2 includes a debugger setup that loads both applications for symbolic testing. http://www.keil.com/download/docs/52.asp