Hello,
I have an application and I am using a nrf52833, as soon as i flash my application I am getting a hardfault prior to the main call.
As in below snap:
I do not know what to make of this, kindly suggest.
Thanks,
Hello,
I have an application and I am using a nrf52833, as soon as i flash my application I am getting a hardfault prior to the main call.
As in below snap:
I do not know what to make of this, kindly suggest.
Thanks,
Have you made any changes to the pm_static.yaml file?
Hello Susheel Nuguru,
I was able to debug this further,
Have you made any changes to the pm_static.yaml fil
The below is the static file which works for me:
app: address: 0xc200 end_address: 0x7e000 region: flash_primary size: 0x71e00 external_flash: address: 0x0 end_address: 0x100000 region: external_flash size: 0x100000 mcuboot: address: 0x0 end_address: 0xc000 placement: before: - mcuboot_primary region: flash_primary size: 0xc000 mcuboot_pad: address: 0xc000 end_address: 0xc200 placement: before: - mcuboot_primary_app region: flash_primary size: 0x200 mcuboot_primary: address: 0xc000 end_address: 0x7e000 orig_span: &id001 - app - mcuboot_pad region: flash_primary size: 0x72000 span: *id001 mcuboot_primary_app: address: 0xc200 end_address: 0x7e000 orig_span: &id002 - app region: flash_primary size: 0x71e00 span: *id002 mcuboot_secondary: address: 0x0 device: IS25 end_address: 0x72000 region: external_flash size: 0x72000 settings_storage: address: 0x7e000 end_address: 0x80000 placement: before: - end region: flash_primary size: 0x2000 sram_primary: address: 0x20000000 end_address: 0x20020000 region: sram_primary size: 0x20000
I needed to increase memory allocation for mcuboot, as my mcuboot image increased, so I modified the above static file into below, which is causing hardfault:
app: address: 0x10200 end_address: 0x70000 region: flash_primary size: 0x5fe00 external_flash: address: 0x0 end_address: 0x100000 region: external_flash size: 0x100000 mcuboot: address: 0x0 end_address: 0x10000 placement: before: - mcuboot_primary region: flash_primary size: 0x10000 mcuboot_pad: address: 0x10000 end_address: 0x10200 placement: before: - mcuboot_primary_app region: flash_primary size: 0x200 mcuboot_primary: address: 0x10000 end_address: 0x70000 orig_span: &id001 - app - mcuboot_pad region: flash_primary size: 0x60000 span: *id001 mcuboot_primary_app: address: 0x10200 end_address: 0x70000 orig_span: &id002 - app region: flash_primary size: 0x5fe00 span: *id002 mcuboot_secondary: address: 0x0 device: IS25 end_address: 0x60000 region: external_flash size: 0x60000 settings_storage: address: 0x70000 end_address: 0x80000 placement: before: - end region: flash_primary size: 0x10000 sram_primary: address: 0x20000000 end_address: 0x20020000 region: sram_primary size: 0x20000
Can you suggest now why the modified pm_static.yml file is causing hardfault..?
Thanks,
Ubaid
Ubaid_M said:I needed to increase memory allocation for mcuboot, as my mcuboot image increased, so I modified the above static file into below, which is causing hardfault:
I will request my colleague to help me with this question as to why increasing the mcuboot image size causes the hardfault. Please bare with us for some time while he gets time to respond.
Ubaid_M said:I needed to increase memory allocation for mcuboot, as my mcuboot image increased, so I modified the above static file into below, which is causing hardfault:
I will request my colleague to help me with this question as to why increasing the mcuboot image size causes the hardfault. Please bare with us for some time while he gets time to respond.