Can somebody help me with documentation about IAP? I want to replace program on chip flash without botstrap mode. Microcontroller is connected with external device by data link and will receive programing data by it. I've read in Infineon Insider's Guide that "It is also possible for a program to reprogram itself, i.e. receive a new version of itself and blow it into FLASH. This requires a specially written C function, which can be downloaded from the Infineon website" but havn't found it. How to make IAP?
My statement is incorrect; as you stated you can program out of the flash but during the actual execution of the program/erase algorithm flash read accesses are stalled. Maybe I miss what you are trying to do or why? Since I don't know really what your goal is to know all of the caveats, one idea is that you could make a function pointer table at the start of your math code or at an absolute address (which the structure is known to your other code, basically you need to know what is valid). Then your other code would read the data at the absolute address to fill its structure and then make a call using this information. Does this help you?
Thanks for help a lot! My goal is to separate my application into two HEX files which will be separetly downloaded to target. But first program must to know pointers to functions (to call math functions) which are in second HEX file. So, you said that idea is to store pointers in second HEX file and to read it from first. I thought that it is not so uncommon task.