flushmagic.py -p /dev/ttyUSB1 -r blink.bin |
typedef void (*IAP)(uint32_t*, uint32_t*); #define IAP_ENTRY ((IAP)0x1fff1ff1) void intHdl_UART0(void) { if (0 != (LPC8xx_UART->stat & UART_STAT_RXRDY)) { char c = (char)(LPC8xx_UART->rxDat) switch (c) { case 'r': // reset LPC8xx_SCS->AIRCR = 0x05fa0004; for(;;) { } // Loop forever as fail safe option break; case 'i': // reset into ISP { uint32_t cmd = 57; IAP_ENTRY( &cmd, NULL); } break; } } } |
$ make && flushmagic.py -p /dev/ttyUSB1 -r blink.bin && picocom -b 115200 /dev/ttyUSB1 |
Original Attachment has been moved to: flushmagic.py_.txt.zip
Hi. I'm new with LPC8xx programming. I'd like to know how long it takes to program 16 or 32kb of flash, by Linux, using
1. ISP via USART
2. SWD with SEGGER jLink or similar
3. which cheap tool do you suggest for mass production (3000pcs/month, not too much)
I'm just drawing a PCB for LPC804M101JDH20 and I don't know if it's better to use ISP or SWD to program flash, in production.
Thanks for any suggestion! (I'm just starting)