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

PACK vs RTE folders, which one has priority?

Hi,

I am having trouble understanding the new PACK structure in a project, in particular, with the example project dfu_dual_bank_ble_s110_pca10028.uvprojx.

My setup is as follows: uVision V5.14.0.0, SDK S110v8, Dev board PCA10028.

I tried to modify the sample project to increase the size of the bootloader, I have changed the start and size of the bootloader in the target configuration page, 0x3C000 and 0x3C00 to 0x3B000 and 0x4C00 respectively. However, when trying to modify the #define BOOTLOADER_REGION_START in the dfu_types.h file, I noticed that there are two of the .h files, one in the RTE folder (read/write allowed) and one in the PACK folder (read only).

My first attempt is only changing the value in the RTE folder, however after uploading the firmware, the device does not respond at all. Then, I made the same changes in the PACK folder, this time the bootloader works perfectly.

Right now, I am very confused why are there two files of the same name in the project, under different directories. The dfu_types.h in the RTE folder appears as a file under the nRF_Libraries pack. The dfu_types.h in the PACK folder appears as a dependency in all .c files that uses it. (See two screenshots attached).dfu_type.h under projectdfu_type.h under .c files

It appears that the one in the PACK folder take "precedence" over the RTE folder? What should be the standard procedure when using PACKs and dealing with .h in this case? Thanks.

Warm regards, Michael

Parents Reply Children
No Data
Related