<bobsy>
well i ordered a kit like that off aliexpress for $2.
Hawk777 has quit [Quit: Leaving.]
_franck_ has joined #openocd
nerozero has joined #openocd
<PaulFertser>
bobsy: yes, ch341 should do. Also usually it's possible to use some ft232h-based board (arm olimex jtag adapter and such).
<PaulFertser>
bobsy: sometimes you'd need to find the reset pin on the board to keep CPU off while using the clamp.
<PaulFertser>
See "ISP" page on the flashrom wiki.
<PaulFertser>
bobsy: oh, and btw, each board has its own unique calibration data, usually in this very flash. So if you erased it, and try to use the data from some other board you might violate regulations.
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
damex has quit [Read error: Connection reset by peer]
damex has joined #openocd
lh has quit [Write error: Broken pipe]
lh has joined #openocd
_franck_ has quit [Ping timeout: 265 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
_franck_ has joined #openocd
LPC122x has joined #openocd
<LPC122x>
Hi, I'm trying to figure out how to make OpenOCD compatible with LPC1226 and LPC1227 MCUs. As far as I got the problem seems to be with the flash driver. If I don't define a flash bank, I can debug, but I would like to program as well. I'm pretty sure the solution lies in src/flash/nor/lpc2000.c but there I am kind of stuck.
<PaulFertser>
LPC122x: hi
<PaulFertser>
LPC122x: have you tried searching Gerrit for related patches already? You can use "message:LPC122" for starters.
<PaulFertser>
LPC122x: if there's no support yet then it should be easy to add provided it's similar enough to other LPC devices.
<LPC122x>
Afraid I don't know what Gerrit is
<PaulFertser>
LPC122x: see e.g. commit b3ed97a4925ff441c3c2679d01e6cdb6edc123d8
<LPC122x>
So basically I hardcoded the flash size and the variant. But I'm just guessing here, would that be an acceptable workaround
<LPC122x>
Yes it seems to flash (only tried it once just now) but extremely slowly
<PaulFertser>
I'd check with the MCU datasheet that sector size matches.
<LPC122x>
150+ seconds for 32KB
<PaulFertser>
What adapter speed are you using?
<LPC122x>
I don't change anything, I also just found the default seems very low
<LPC122x>
but unsure if I can just increase
<PaulFertser>
You can try increasing, no harm in that.
<LPC122x>
Thanks
<PaulFertser>
You can also check if similar MCUs have reset-init handler which ramps up the frequency after configuring PLL.
<PaulFertser>
Usually you want to try flashing after running "reset init". "program" does that automatically.
<LPC122x>
Thanks for the tips, will look into this
<PaulFertser>
:)
<LPC122x>
Are sector sizes key, or do page sizes count as well? LPC122x has 4k sector with 512 byte pages, but LPC11U3X has 4k sector with 256 byte pages
<PaulFertser>
LPC122x: lpc2000.c mentions sectors but not pages.
<LPC122x>
(y)
LPC122x has quit [Quit: Client closed]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Read error: No route to host]
Haohmaru has quit []
Inoperable has quit [Excess Flood]
Inoperable has joined #openocd
erhankur has joined #openocd
erhankur has quit [Ping timeout: 268 seconds]
Inoperable has quit [Excess Flood]
Inoperable has joined #openocd
nerozero has quit [Ping timeout: 244 seconds]
emeb has joined #openocd
_franck_ has quit [Ping timeout: 244 seconds]
_franck_ has joined #openocd
erhankur has joined #openocd
c4017 has joined #openocd
joconor has quit [Ping timeout: 248 seconds]
joconor has joined #openocd
wolfshappen has quit [Quit: later]
Flecks has quit [Remote host closed the connection]
Fleck has joined #openocd
wingsorc has joined #openocd
_franck_8 has joined #openocd
_franck_ has quit [Ping timeout: 260 seconds]
_franck_8 is now known as _franck_
wolfshappen has joined #openocd
emeb has quit [Quit: Leaving.]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
wingsorc has quit [Remote host closed the connection]