hex2lpc
This commit is contained in:
parent
aea0325ff5
commit
d97471a924
|
@ -8,6 +8,9 @@
|
|||
- Calculates the checksum at 0x001c in the vector table
|
||||
- Part ID detection (if no hex file is specified on the commandline)
|
||||
|
||||
ToDo:
|
||||
Consider https://github.com/ChristianVisintin/termiWin for Win compatibility
|
||||
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -942,10 +945,12 @@ typedef struct _lpc_struct lpc_struct;
|
|||
/*
|
||||
for LPC81x and LPC82x, the stack is located at 0x1000 0270 and grows downwards.
|
||||
LPC81x: sector size=1024 bytes, page size=64 bytes
|
||||
|
||||
*/
|
||||
|
||||
lpc_struct lpc_list[] = {
|
||||
/* name, part_id, flash_adr, flash_size, sec_size, ram_adr, ram_size */
|
||||
/* condition: (a) sec_size >= ram_size (b) ram_adr+ram_size <= highest sram address+1 */
|
||||
|
||||
{"LPC824M201JHI33", 0x00008241, 0x00000000, 0x8000, 0x0400, 0x10000300, 0x0400 },
|
||||
{"LPC822M201JHI33", 0x00008221, 0x00000000, 0x8000, 0x0400, 0x10000300, 0x0400 },
|
||||
|
@ -957,8 +962,17 @@ lpc_struct lpc_list[] = {
|
|||
{"LPC812M101JDH16", 0x00008120, 0x00000000, 0x4000, 0x0400, 0x10000300, 0x0100 },
|
||||
{"LPC812M101JD20", 0x00008121, 0x00000000, 0x4000, 0x0400, 0x10000300, 0x0100 },
|
||||
{"LPC812M101JDH20", 0x00008122, 0x00000000, 0x4000, 0x0400, 0x10000300, 0x0100 },
|
||||
{"LPC812M101JTB16", 0x00008122, 0x00000000, 0x4000, 0x0400, 0x10000300, 0x0100 }
|
||||
{"LPC812M101JTB16", 0x00008122, 0x00000000, 0x4000, 0x0400, 0x10000300, 0x0100 },
|
||||
|
||||
// LP804: The stack of UART ISP commands is located at address 0x1000 03A8. The maximum stack usage is 640 bytes (0x280) and grows downwards.
|
||||
// RAM end is at 0x10001000, so probably ram_size could be 0x0200 or 0x0400
|
||||
|
||||
|
||||
{"LPC804M101JBD64", 0x00008040, 0x00000000, 0x8000, 0x0400, 0x10000400, 0x0100 },
|
||||
{"LPC804M101JDH20", 0x00008041, 0x00000000, 0x8000, 0x0400, 0x10000400, 0x0100 },
|
||||
{"LPC804M101JDH24", 0x00008042, 0x00000000, 0x8000, 0x0400, 0x10000400, 0x0100 },
|
||||
{"LPC804M111JDH24", 0x00008043, 0x00000000, 0x8000, 0x0400, 0x10000400, 0x0100 },
|
||||
{"LPC804M101JHI33", 0x00008044, 0x00000000, 0x8000, 0x0400, 0x10000400, 0x0100 }
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue