Re: lpc1115 programmieren
Verfasst: 19. Jun 2018, 14:50
Ich habe letztes Jahr eine Raspi/Openocd Bitbang Variante ans laufen bekommen, hab aber kein Tutorial. Habe auch seit letzem Jahr nichts dran gemacht, werde aber noch dieses Jahr das Thema wieder aufsuchen. Hier ein paar Notizen von meinem internen Wiki (leider nur in Englisch und Linux bezogen):
Programming the LPC1115 is not an easy thing if you're a beginner, mainly because it's not that easy to find tutorials.
Ladyada came to the rescue with this here. Unfortunately this example uses an Atmel chip.
I found another good writeup that got me going here.
Here's a working raspi bit banger openocd config file that put together from these 2 articles
Other prebuilt things i program are .hex files. The same command does those, too.
Then to program i run
When i fix the permissions i hopefully won't need sudo anymore. It is assumed that openocd.cfg and blinky.bin are in the current working directory.
Ich hoffe das hilft.
Programming the LPC1115 is not an easy thing if you're a beginner, mainly because it's not that easy to find tutorials.
Ladyada came to the rescue with this here. Unfortunately this example uses an Atmel chip.
I found another good writeup that got me going here.
Here's a working raspi bit banger openocd config file that put together from these 2 articles
LPCXpresso builds .afx files to convert i do the followingsource [find interface/raspberrypi2-native.cfg]
transport select swd
# LPC1115 LPCXpresso Target
# Use LPC1115 target
set WORKAREASIZE 0x4000
source [find target/lpc11xx.cfg]
adapter_nsrst_delay 100
adapter_nsrst_assert_width 100
init
targets
reset halt
flash probe 0
flash write_image erase blinky.bin 0x00000000
reset
shutdown
Code: Alles auswählen
arm-none-eabi-objcopy -O binary nxp_lpcxpresso_11c24_periph_blinky.axf blinky.bin
Code: Alles auswählen
arm-none-eabi-objcopy -I ihex -O binary ft1_2-1.11.hex ft1_2-1.11.bin
Code: Alles auswählen
sudo openocd -f openocd.cfg
Ich hoffe das hilft.