Hello, I have a question on how to debug an application that consists of two separate projects - namely a bootloader+firmware upload part and the actual application - that runs on an ADuC845. The bootloader will be located in the memory area 0xE000-0xF7FF, the application in 0x0000-0xDFFF. Unfortunately, the emulator erases the complete code memory when loading a file to debug, so it is not possible to load the application, then the bootloader, and then debug the bootloader with the application in place. Can I use the hex2bin/bin2hex utilities to merge the two hex files and start debugging ? Regards, Christoph
...I thought about this first, but unless there is no other choice, I would prefer not to for several reasons... Ok I agree with you. ...Basically, I only want to debug the bootloader while having the application code in place, since the bootloader does a checksum over the application to verify that it is valid... So, you want to test whether the bootloader is able to validate the checksum of the application. You see whether this will work. First you add a module in the bootloader, which can read the bytes thro UART and write it in to your FLASH(starting from the address for the application). Then, you download the bootloader code into the FLASH and then pass the hex codes of the application thro UART and write it into FLASH. Then you call your checksum calculation module and debug it as you wish. You can make the process simple by loading a small sample application instead of your actual application. - Neo