Hi, I am using KE1xF controller's ROM bootloader via CAN, When I am loading my application which is 0x8A90 size, it is getting loaded successfully. In my program, I have request to not to program the FOPT register until all the binary has been programmed. So I am programming the image in to 3 parts.
1) First I am erasing flash region upto sectors 0x8A90 size. Then programming binary upto 0x400 size.
2) Then programming the Binary from 0x420 to 0x8A90 size.
3) Finally, I am programming the Binary from 0x400 to 0x420 (where the FOPTs is present)
This way, the Flash is not getting programmed. Not sure what is happening. If I change the sequence as below then loading is getting successful.
1) First I am erasing flash region upto sectors 0x8A90 size. Then programming binary upto 0x400 size.
2) Then programming the Binary from 0x400 to 0x420 (where the FOPTs is present).
3) Finally, programming the Binary from 0x420 to 0x8A90 size.
Please let me know if you have any inputs.
Also let me know if I can program FlexRAM portion of the memory using this Bootloader? will Bootloader allows us to load something into FlexRAM?