nRF54H20 increase FLASH and RAM partition size

Currently in v2.9.0-nRF54H20-1 the default code and ram partition size is 320k and 256k respectively. Which is much smaller than the device has a whole.
Is there a reason currently that these defaults are set so low?

When trying to increase cpuapp_slot0_partition to 1536 in devicetree I end up with this error when flashing:

[Probe] Device error: Failed to get access to memory range 0x0e100000..0x0e1f613f: Error in ADAC operation: The ADAC command SDFW_ADAC_MEM_CFG failed with status ADAC_FAILURE (0x0001) (Generic)

How do you go about increasing these correctly?

  • Hi,

    Currently in v2.9.0-nRF54H20-1 the default code and ram partition size is 320k and 256k respectively. Which is much smaller than the device has a whole.
    Is there a reason currently that these defaults are set so low?

    Can you elaborate why you think default values are set low?
    For RAM sizes, are you referring to nrf54h20dk_nrf54h20-memory_map.dtsi? Which are relevant RAM partition sections of 256K and 320K?

    [Probe] Device error: Failed to get access to memory range 0x0e100000..0x0e1f613f: Error in ADAC operation: The ADAC command SDFW_ADAC_MEM_CFG failed with status ADAC_FAILURE (0x0001) (Generic)

    Can you provide some details about your application? Can you specify all changes you made when trying to increase cpuapp_slot0_partition to 1536? Can you provide complete error log?

    Best regards,
    Dejan

  • Hi,
    they seem low as the maximum NVM is 2MB and the maximum RAM is 768KB for the app core, at least going by the documentation.
    The app compiles successfully changing the definitions. So there seems to either be guards at compile time missing or I need to adjust something else to allow a partition change I'm assuming.

    Generally I would just like to have more RAM and Flash for the application available than the default. Do you have documentation on how to do that?
    I would like to allocate all resources to the application core however much is possible. I could not find any documentation on the default partition setup and what valid address ranges would look like.
    Attached the modified memory map.

    Unfortunately I can't share more details on the application.

    As for the log, there are no more relevant log outputs for the flashing stage. It fails when programming the image.

    -- runners.nrfutil: Programming image
    Error: One or more batch tasks failed:
     * xxxxxxxxxx: [Probe] Device error: Failed to get access to memory range 0x0e1ef000..0x0e1ef110: Error in ADAC operation: The ADAC command SDFW_ADAC_MEM_CFG failed with status ADAC_FAILURE (0x0001) (Generic)

    nrf54h20dk_nrf54h20-memory_map.dtsi

Related