Create a bootFlag including a shared memory in a secound defined ram space with lpc1754

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

Create a bootFlag including a shared memory in a secound defined ram space with lpc1754

1,348 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gohstx on Tue May 10 02:04:35 MST 2016
Hello all,

i have a problem.

First about my Application: I have written a bootloader, it works with programmin and bootjump all right. But I want to use a bootflag.

I have define the RAM1 for  the Bootloader and the Application in 0x1000000 with size 0x4000 then i have define RAM2 for the bootFlag with 0x1000500, size 0x1F (see in appendix RAM Config.png).

Then my code starts like this:

#inlcude...

static bool __attribute((at(0x1005000))) bootFlags;

int main(void)
{

...

bootFlags=1;


...

}


At the programm counter point ,,bootFlags=1; ,, i get an hard fault.

If i would change the code like this:

static bool __attribute((at(0x1003000))) bootFlags;

int main(void)
{

...

bootFlags=1;


...

}

The Adress is in the ROM1 and it works.

But i want this bootFlag in a seperately ROM2.

Please help me.


Best Regards

DDMW



标签 (1)
0 项奖励
回复
1 回复

1,316 次查看
lpcware
NXP Employee
NXP Employee
bump
0 项奖励
回复