I am using a FRDM-K22F for a school project. The instructor is adamant that we do not use processor expert. I am not very familiar with KSDK and am having issues importing APIs for flash memory programming.
I created to processor expert project to test the APIs but have no idea how to get them into my baremetal project that isn't PE. I have browsed around for more information but nothing has really seemed to help.
Just get the uTasker open source project from https://github.com/uTasker/uTasker-Kinetis
which allows building projects for your board with any IDE.
Its Flash API is described in chapter 6 of http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF
and you can run the project in Visual Studio and emulate the Flash operations for learning purposes.
If you need to change to any other part later you just define the alternative board/part used and the complete project adapts itself automatically so you won't need to go through porting to different processors or exchanging the flash drivers etc.
Leave the old fashion techniques to the others in your class and show them how to do it efficiently instead ;-)
Virtual memory mapping of flex data and serial devices video:
Hi Alex Colpitts
I would not recommend to take processor expert code and put it into a baremetal project, it would be difficult to find all the APIs and drivers that are managed by Processor Expert. It would get more complicated if you are using processor expert with KSDK1.3.
My recommendation is to check MCUXpresso SDK 2.x drivers, those drivers have fewer layers and can be easily used as a reference for a Baremetal project.
Hope this could help