This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Will ?C?LIB_CODE increase with my application?

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?

Parents
  • 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

Reply
  • 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

Children
No data