LPCXpresso about download limit of 128K

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

LPCXpresso about download limit of 128K

582 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lsqspb on Tue Sep 03 19:10:39 MST 2013

Hi all:
LPCXpresso has download limit of 128K, now I want to make my code begin at the address of 0x40000, the address is greater than 128K, I want to know how to solve the problem? Thanks.

Regards,
Zhai
0 Kudos
9 Replies

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lsqspb on Wed Sep 04 17:16:15 MST 2013
Hi all:
   The LPCXpresso may have 128K debug limit, we may not debug the program whose address is greater than 128K.
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by djlegge on Wed Sep 04 02:42:04 MST 2013

Quote: Wouter
Hi Zhai,

The 128KB limit is a code-size limit, so as long as your binary is not >128KB, it should be fine regardless of the location where to program it to.

Regards,
Wouter



Not quite !
http://www.lpcware.com/content/forum/sygsysbad-system-call-write
There are issues debugging past 0x20000 in the free version of LPCXpresso...
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Wed Sep 04 01:14:19 MST 2013
Hi Zhai,
which hardware do you use?
Sorry, i am not familiar with LPCXpresso environment.
Does it perhaps generate a map file, where you can see what is put where?
So you see it starts at 0x40000 or below?
Best regards,
Martin
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Wed Sep 04 01:12:38 MST 2013
So if you non-bootloader code is at 0x40000 (ie 256KB), then presumably the tools are detecting that your code is hence outside of a 128KB range from the start of your flash at address 0x0. Why don't you just move your non-bootloader code so that is starts a lot closer to 0x0 ? Presumably your bootloader is a lot smaller than 256KB !

HTH!
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lsqspb on Wed Sep 04 01:06:18 MST 2013

Quote: capiman
Hello Zhai,
which LPCXpresso are you using?
There is usually the vector table at address 0,
so perhaps when the vector table is at address 0
and even nothing between to 0x40000, then your program starts,
i think it could be larger than 128 KBytes?
Best regards,
Martin


HI Martin:
   At address 0 has boot loader program, it will make the program run correctly, But I can't debug, The LPCXpresso says that "Could not start execution from stop: Ep(-1). PC is out of allowed range ". The LPCXpresso version is LPCXpresso v5.2.4_2122.
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lsqspb on Wed Sep 04 00:58:21 MST 2013
Hi Martin:
   At address 0 have boot loader program, it will make my program run at correct place, The boot loader code likes below:

   SCB->VTOR = (0x40000 & 0x1FFFFF80);
p = (unsigned *)(0x40004);
user_code_entry = (void *) *p;
        user_code_entry();
My  LPCXpresso version is LPCXpresso v5.2.4_2122.

Regards,
Zhai
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Wed Sep 04 00:40:59 MST 2013
Hello Zhai,
which LPCXpresso are you using?
There is usually the vector table at address 0,
so perhaps when the vector table is at address 0
and even nothing between to 0x40000, then your program starts,
i think it could be larger than 128 KBytes?
Best regards,
Martin
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lsqspb on Wed Sep 04 00:32:45 MST 2013
Hi Wouter,
   If my program begins at the address of 0x40000, I can download the program, but I can't debug, the LPCXpresso says that "Could not start execution from stop: Ep(-1). PC is out of allowed range for this license". How to solve the prolem? Thanks.

Regards,
Zhai
0 Kudos

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Tue Sep 03 23:15:45 MST 2013
Hi Zhai,

The 128KB limit is a code-size limit, so as long as your binary is not >128KB, it should be fine regardless of the location where to program it to.

Regards,
Wouter
0 Kudos