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,353件の閲覧回数
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,321件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信