This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Configuring Software Pack Libraries in Keil

I'm using the latest version of Keil with Software Packs. As I understood, copies of configurable files are stored in RTE folder. Non-configurable files are stored inside Keil folder structure and projects have only links to them.

For the bootloader example (dfu_dual_bank_ble_s110_pca10028) I want to change the DFU_APP_DATA_RESERVED. I do so by changing the parameter in dfu_types.h stored in the RTE folder. But this does not work, as the bootloader_settings_arm.c file from the software pack does not include the configurable file from the RTE folder, but the read-only, non-configurable, file from the Software Pack...

How to make the files from the Software Pack include the configurable files?

Configurable file:

image description

File used by bootloader:

image description

Parents
  • I had to hack the Pack Descriptor file (NordicSemiconductor.nRF_Libraries.pdsc) that Keil uses to determine which files are user configurable and hence get put into the local RTE directory. It's not pretty but it works for me. If Nordic's intent is to make dfu_types.h user configurable, then they need to make sure that every file that includes it is also user configurable. Otherwise, Keil still picks up the dfu_types.h in the Pack directory. I hesitate to post my modified file because this is something that really should come from Nordic.

Reply
  • I had to hack the Pack Descriptor file (NordicSemiconductor.nRF_Libraries.pdsc) that Keil uses to determine which files are user configurable and hence get put into the local RTE directory. It's not pretty but it works for me. If Nordic's intent is to make dfu_types.h user configurable, then they need to make sure that every file that includes it is also user configurable. Otherwise, Keil still picks up the dfu_types.h in the Pack directory. I hesitate to post my modified file because this is something that really should come from Nordic.

Children
No Data
Related