Author Topic: OT Emulating flashmaigc with another micro  (Read 4960 times)

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
OT Emulating flashmaigc with another micro
« on: February 23, 2009, 04:24:12 am »
Hi,

I have an LPC2148 connect to large controller (LC) micro... To program the LPC2148,  it is program via serial ISP similar to Flashmagic.  The LC micro has all the hardware that flashmagic uses to put the LPC2148 in to ISP mode.

We have most of the ISP serial commands down... and can inspect the flash of the LPC2148 with a debugger to see the flash is programmed but the GO 0x0000 0000, or a reset does not execute the LPC2148 flash programmed code.

What other commands are needed .... is the 2's compliment programmed in to 0x0000 0014  calculted by flash magic?

The USER manual Says

"Criterion for valid user code: The reserved ARM interrupt vector location (0x0000 0014)
should contain the 2ís complement of the check-sum of the remaining interrupt vectors."

Thanks in advance
Joe

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OT Emulating flashmaigc with another micro
« Reply #1 on: February 23, 2009, 07:30:25 am »
Yes, Flash Magic automatically calculates the checksum and programs it.

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

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: OT Emulating flashmaigc with another micro
« Reply #2 on: March 07, 2009, 04:49:06 am »
Thanks Andy,   It's working now.... the  2's compliment checksum was required.

Regards
Joe