Previously, I didn't realize that lpc21isp calculated the checksum in the interrupt table, so I didn't make Alpaca ISP do that. This caused a few hours of confusion, followed by a quick change to make Alpaca ISP calculate the checksum and insert it into the right part of sector 0. Now programs flashed with Alpaca ISP actually run, so that's good. A few other changes have been made as well. Flash sectors are now written in the order that lpc21isp uses, first counting up from sector 1 then ending with sector 0. The first 64 bytes are not compared when verifying flash. If verification fails, an exception is raised, and if the package was run as a program, it exits before launching the code on the microcontroller.
|
|
||
135 |
|
135 |
|
136 |
|
136 |
|
137 |
|
137 |
|
138 |
|
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
139 |
|
142 |
|
140 |
|
143 |
|
141 |
|
144 |
|
|
|
||
245 |
|
245 |
|
246 |
|
246 |
|
247 |
|
247 |
|
248 |
|
|
|
|
248 |
|
|
249 |
|
249 |
|
250 |
|
250 |
|
251 |
|
251 |
|
|
|
||
366 |
|
366 |
|
367 |
|
367 |
|
368 |
|
368 |
|
369 |
|
|
|
370 |
|
|
|
|
369 |
|
|
371 |
|
370 |
|
372 |
|
|
|
|
371 |
|
|
|
372 |
|
|
|
373 |
|
|
|
374 |
|
|
373 |
|
375 |
|
374 |
|
376 |
|
375 |
|
377 |
|
376 |
|
378 |
|
377 |
|
379 |
|
|
380 |
|
|
|
381 |
|
|
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
378 |
|
386 |
|
379 |
|
387 |
|
380 |
|
388 |
|
|
|
||
408 |
|
416 |
|
409 |
|
417 |
|
410 |
|
418 |
|
|
419 |
|
|
|
420 |
|
|
|
421 |
|
|
|
422 |
|
|
|
423 |
|
|
411 |
|
424 |
|
412 |
|
425 |
|
|
426 |
|
|
413 |
|
427 |
|
414 |
|
428 |
|
415 |
|
429 |
|