Author Topic: LPC1857 Flash bank select  (Read 4896 times)

salimnawaz

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
LPC1857 Flash bank select
« on: September 04, 2013, 12:40:36 am »
Hi
I am about start working programming lpc1857 but a doubt has come up.... when i look at flash magic tool for programming internal memory using ISP i find that i have to select either flash bank 0 or flash bank 1. does it means that my code cannot be larger than 512kB, since each bank is of size 512 kB..????
if suppose my code size is greater than 512kB how do i program internal flash???/


Thanks and Regards
Salim

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC1857 Flash bank select
« Reply #1 on: September 04, 2013, 01:48:40 am »
At this time you will have to manually split your hex file into two and program each flash bank separately.

Are the records in the hex file sorted into order (i.e. lowest address first)?

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

salimnawaz

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
Re: LPC1857 Flash bank select
« Reply #2 on: September 04, 2013, 02:14:55 am »
Thanks for the quick reply Andy,

yes the records are sorted into "lower address first" order...
suppose i am able to split the hex file in 2 and load in each flash bank and activate the flash bank where my programs starts(First half file) then would the processor know that it needs to start executing from another bank or do we have to manually activate the second bank??????

Thanks and Regards
Salim

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC1857 Flash bank select
« Reply #3 on: September 04, 2013, 08:21:06 am »
I'm not sure. The user manual for the device from NXP should be able to tell you if you need to switch flash banks.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com