Adrian:
I included the internal flash component from processor expert, and found that it refers to the following include files:
FTFE_PDD.H
FMC_PDD.H
These are found in the Static_Code -> PDD folder of the project. I presume these include files would have been there even before I included the internal flash component from processor expert, but I have not tested that theory.
A few edits changing your original files , to fit it into my processor expert project and (PTFL_ to PTFE) and discarding printfs now gives me a clean compile. I am not sure my list of include files are the minimum needed to get a clean compile.
I have not tested the code yet, but I am sure you gave me good code:smileyhappy:
Best Regards.
Tom M.