Hello,
please find attached two projects that show a bootloader and a test application within Processor Expert using the library described in AN3561. The PE_bootloader project PE_bootloader_AN3561.mcp re-uses example from AN3561. The PE_bootloader_AN3561_blink.mcp project is a test application for bootloader.
The PE_bootloader_AN3561 project conatins bootloader and simple application code that just switches the LED on in case that bootloader mode is not entered. After uploading a new program (the PE_bootloader_AN3561_blink project) and resetting the MCU, the LED on PTE2 starts blinking at 10Hz frequency. For more details please see the readme.txt file enclosed in projects.
You can simple extend bootloader and application projects with additional beans according to your requiremets.
Note:
There is possible to have the bootloader and the application integrated in one project. Separate programming of bootloader and application are not required in this case. Disadvantage of this solution
is that generation of prm file by PE must be disabled and distributed binary code always contains bootloader.
best regards
Vojtech Filip
Processor Expert Support Team