Enabling Provisioning

I'm attempting to enable provisioning using attestation tokens in my project.  As soon as I add the config;

CONFIG_NRF_PROVISIONING=y
The build starts failing with;

C:\Users\RANDAL~1.PHI\AppData\Local\Temp\ccKWl0nJ.s: Assembler messages:
C:\Users\RANDAL~1.PHI\AppData\Local\Temp\ccKWl0nJ.s:1406: Error: missing expression

I'm building for a custom board, that has the nrf9151 on it.  Using SDK 3.1.1

now when I build the nrf_cloud_multi_service sample, targeting the nrf9151dk it builds fine, which I think means that I have some sort of CONFIG conflict.  

7271.prj.conf

  • Perhaps you can tell me what I'm doing wrong;

    nonsecure_storage:
    address: 0xE4000
    end_address: 0xfe000
    orig_span: &id001
    - nvs_storage
    - user_storage
    region: flash_primary
    size: 0x1A000
    span: *id001


    nvs_storage:
    address: 0xE4000
    end_address: 0xF1000
    inside:
    - nonsecure_storage
    placement:
    align:
    start: 0x1000
    before:
    - end
    region: flash_primary
    size: 0xD000

    user_storage:
    address: 0xF1000
    end_address: 0xfe000
    inside:
    - nonsecure_storage
    placement:
    align:
    start: 0x1000
    before:
    - end
    region: flash_primary
    size: 0xD000

    I changed my pm_static to this, but when I try to use user_storage in my program it appears to be placing the memory at 0x100000 and only 4K of memory at that.  

  • Hi,

    Thanks for sharing the updated layout. The partition split itself looks fine.

    If your data is ending up at 0x100000 with only 4 KB, that usually means the application is still writing to a default storage area, rather than the user_storage partition you defined. In other words, the partition exists, but the code isn’t actually using it yet.

    Have you tried doing a pristine rebuild and checked build/partitions.yml to confirm if the user_storage is present at 0xF1000 with size 0xD000?

    Best Regards,
    Syed Maysum

  • My bad, I was trying to create a nvs file system with more sectors than was available.  Instead of using 
    FIXED_PARTITION_SIZE() to calculate, I was using a hardcoded value in my code Frowning2.

    So I appear to be all good now.
Related