The DFP (Device Family Pack) of Cortex-M processor contains a set of .FLM files. These files are renamed .ELF files from uVision projects to provide a driver to access the onchip flash to be used by the Keil compatible uLink/CMSIS-DAP/Segger programmers.
Now I want to access the onchip flash from within my application for on the Cortex-M processor. How can I include, import or link the .FLM file so it can be used as a precompliled library with the standard API used by the uLink/CMSIS-DAP/Segger programmers.
So this is for programming the onchip flash via my own application running on the MCU.
If you have the source code that created the .flm file,www.keil.com/.../flashAlgorithm.html
...you can adapt those files to create a CMSIS driver for your flash.
If we use this example as a reference:%LOCALAPPDATA%\Arm\Packs\ARM\CMSIS-Driver\2.8.0\Flash\M29W640FB
M29W640FB.h contains the information that was in FlashDev.c. The steps are similar to converting it are similar to what we did in RL-ARM:www.keil.com/.../rlarm_fs_cvrt_flashdev_c.htm
M29W640FB.c contains the information that was in FlashPrg.c The steps are similar to converting it are similar to what we did in RL-ARM:www.keil.com/.../rlarm_fs_cvrt_flashprg_c.htm
Once you create a custom flash driver, you can create a simple Custom pack, so that you can track changes and the pack installer will be aware of your driver, and display it in the manage RTE window:www.keil.com/.../cp_SWComponents.html