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.
Hello, At the moment,I'm trying to build a In-Application Programming(IAP) bootloader for the T89C51RD2 microcontroller.I've managed to make it work, but for the first programming, you have to load the two programs(the application and the IAP loader) separately.I would like to know if it is possible to include 2 independent programs into a single .HEX file. If you have any ideas on the subject, please let me know! Thomas HEGARTY.
Hello there, Thanks for your utility, Franc, it's true it's handier than edinting the files manually.But I'm still wondering if it is possible to incorparate two independent programs into the same project.I tried compiling the two files corresponding to the two programs separately, and then modifying the assembler code so both programs don't write their interrupt vector tables at the same place.After doing this, I was able to jump from the application to the bootloader, I could load a new application and run it, but then,I could not jump back to the bootloader. As this didn't work, I looked up the report from the linker to see the differences between a bootloader loaded on its own, and the bootloader loaded in the same project as the application,and I tried reexecuting the startup segment and other segments, but I wasn't getting anywhere. If you've got any suggestions, they'll be welcome! Best Regards, Thoams Hegarty