Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripts to support NXP LPC chips
#5
The above code is just making sure that if the data passed to my script in the buffer is not an even multiple of a Flash programming block size, that the rest of the RAM being to send to the Flash is filled with empty bytes rather than whatever happened to be in RAM (usually the remains of the last data block sent).

In other words, if I'm asked to program 32 bytes to flash, I cannot do that.  I can only write 64 bytes at a minimum.  So I send 32 bytes of data and 32 bytes of 0.
Reply


Messages In This Thread
Scripts to support NXP LPC chips - by jdubois - 12-04-2023, 05:18 PM
RE: Scripts to support NXP LPC chips - by embitz - 12-04-2023, 06:26 PM
RE: Scripts to support NXP LPC chips - by jdubois - 12-04-2023, 06:54 PM
RE: Scripts to support NXP LPC chips - by embitz - 13-04-2023, 09:09 AM
RE: Scripts to support NXP LPC chips - by jdubois - 16-04-2023, 08:28 PM
RE: Scripts to support NXP LPC chips - by embitz - 17-04-2023, 08:17 AM
RE: Scripts to support NXP LPC chips - by embitz - 17-04-2023, 08:23 AM
RE: Scripts to support NXP LPC chips - by jdubois - 17-04-2023, 03:15 PM
RE: Scripts to support NXP LPC chips - by embitz - 17-04-2023, 09:39 PM
RE: Scripts to support NXP LPC chips - by jdubois - 18-04-2023, 12:43 AM
RE: Scripts to support NXP LPC chips - by jdubois - 20-04-2023, 04:20 PM
RE: Scripts to support NXP LPC chips - by embitz - 20-04-2023, 07:01 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)