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

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

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

408 Views
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



Labels (1)
0 Kudos
1 Reply

376 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos