Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPC15xx support #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

LPC15xx support #26

wants to merge 1 commit into from

Conversation

Moomeanus
Copy link

Extensively verified and tested with LPC1519 & LPC1549 variants.

Signed-off-by: Stefan Szczygielski [email protected]

Signed-off-by: Stefan Szczygielski <[email protected]>
@dmitryf7
Copy link

dmitryf7 commented Feb 1, 2024

This code does not work with LPC1549.

@Moomeanus
Copy link
Author

Could you be more specific? AFAIK lpc21isp returns failure or something on exit and doesn't jump-start the code but the programming itself works correctly.

@dmitryf7
Copy link

dmitryf7 commented Feb 2, 2024

lpc21prog_ss

  1. Build with MSVS 2022 32bit -> "make -f Makefile.vc"
  2. Observe screenshot. Writing freezes of 1st sector and then program exit.

I'm using USB to UART converter based on FTDI chip.

@Moomeanus
Copy link
Author

I guess you are not running your MCU at a frequency of 12 kHz (12 000 Hz) but probably at 12 MHz (12 000 000 Hz).
The command line should read:

lpc21isp.exe (...) 115200 12000000

This influences the internal programming delays and such (AFAIR it is being passed to programming firmware routines in ROM firmware), might make it work.

@dmitryf7
Copy link

I guess you are not running your MCU at a frequency of 12 kHz (12 000 Hz) but probably at 12 MHz (12 000 000 Hz). The command line should read:

lpc21isp.exe (...) 115200 12000000

This influences the internal programming delays and such (AFAIR it is being passed to programming firmware routines in ROM firmware), might make it work.

The LPC15xx use internal 12MHz RC oscillator for ISP. External XTAL/Generator does not affect the ISP process. (LPC15XX User Manual 34.4 "UART communication protocol")

@Moomeanus
Copy link
Author

Still, you need to pass 12000000 (and not 12000) as operating frequency to lpc21isp.

@dmitryf7
Copy link

According the lpc21isp description (when run the tool with no parameters) oscillator frequency should be set in kHz

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants