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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
806 次查看
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 项奖励
回复
1 解答
803 次查看
warai
Contributor II

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

在原帖中查看解决方案

1 回复
804 次查看
warai
Contributor II

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