Hello All,
I have been developing UART boot loader for My PIC24FJ128GB206 for past two days. As a reference for developing this, I used to read Application note "an1157" from microchip.And I modified the linker scripts shared in the
http://www.microchip.com/forums/m656979.aspx for My MCU.For Reference, I attached the two linker scripts.
Well coming to the problem:
I will first load My bootloader and then test code like Led blinking.So, I need to preserve bootloader code from erasing.For this, I need to set Pickit 3 in MPLAB so that it will not erase them while flash LED blink code.
Here is how I am setting Pickit 3 for that: * Went to Properities->Pickit3->Memories to Program->Manually select Memories and Ranges
*Selected "Manually select memories and ranges"
*Checked "Configuration memory" and "Program memory"
*Set "Program memory range" to 0x1400 - 0x157f7 as My boot loader code resides below 0x1400.
*Checked "Preserve Program Memory"
Problem: *Tried to set "Preserve Program Memory range" to 0x00 - 0x13FF to prevent My Boot loader code from Overwriting.But, it is not allowing to set the range and the correspondig field shaded with "red" colour.
*Also, tried to uncheck "Erase all Before Program". But, it was greyed out (disabled).
*Attached images of the errors and linkker scripts.