HardFault Exception during startup when board has enabled CSE and keys were not erased

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HardFault Exception during startup when board has enabled CSE and keys were not erased

Jump to solution
932 Views
warai
Contributor II

Hi,

I enabled the CSE by partitioning the flash with CSE keys size to 512 bytes.

I can now see that the CSE PRAM is accessible.

But after partitioning, when I load an application and run it, I encounter a Hardfault Exception at the startup.c specifically on these lines:

#if !defined(__ARMCC_VERSION)
/* Copy initialized data from ROM to RAM */
while (data_rom_end != data_rom)
{
*data_ram = *data_rom;
data_ram++;
data_rom++;
}

 

Why is this so?

 

0 Kudos
Reply
1 Solution
929 Views
warai
Contributor II

This is all good. I was using a different micro, so my linker file was all messed up.

View solution in original post

1 Reply
930 Views
warai
Contributor II

This is all good. I was using a different micro, so my linker file was all messed up.