The original boot code doesn't return the error just pass/fail..which is
pretty useless IMHO.
I modified it and it is returning a 0x20, ACCERR..
The K22 1M part has a protection granularity of 32k, so only 1 bit set.
0XFFFFFFFE. This also means that App code MUST start at 0x8000. All
items pertaining to this have been modified.
something else curious. Boot code has FLASH_PROGRAM_LONGWORD command as
0x06. Family manual for K22 parts says there is no 0x06 command..
We have working flash code in an MK70 part. It defines this as
0x07..which is listed and this code works in MK70, but it is slightly
different in that it is placed in ram using an __atrribute_ directive,
whereas the bootcode copies the commands into ram using an INIT routine.
I don't see how the released boot code could ever work with these
errors..someone care to Splain it to me cause I clearly don't get it..
Thanks
Ken