NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
thinkfat has joined #openocd
thinkfat_ has quit [Ping timeout: 264 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
nvmd has quit [Quit: WeeChat 3.6]
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 264 seconds]
Hawk777 has joined #openocd
pi0 has left #openocd [#openocd]
crabbedhaloablut has quit [Ping timeout: 258 seconds]
crabbedhaloablut has joined #openocd
Inoperable has quit [Quit: All your buffer are belong to us!]
Inoperable has joined #openocd
bobsy has joined #openocd
<bobsy> hi
<bobsy> i have a qualcomm board here with a ipq6010 chipset
<bobsy> i erased the flash
<bobsy> is this board supported with openbcd?
<bobsy> i have a jtag cable here ready to go
<bobsy> i've never used jtag or openbcd before. any help would be greatly appreciated
<bobsy> i'm looking for a target config now
<bobsy> sorry, openocd, my mistake haha
_franck_ has quit [Ping timeout: 252 seconds]
<bobsy> i tihnk it's actually ipq860x compatible.
<bobsy> 806*
<PaulFertser> bobsy: does it have nand flash?
<PaulFertser> bobsy: you know the target architecture so you can try looking at configs with similar cores.
<bobsy> PaulFertser, nor i think?
<PaulFertser> bobsy: I wonder if its controller is compatible with ath79 then :)
<bobsy> ahh
<PaulFertser> But unlikely, that was for MIPS targets.
<bobsy> real life calls, have to go move a truck. be back in a bit
<bobsy> thanks
<PaulFertser> Usually the best and easiest way to write to SPI flash is to use a SOIC clamp + flashrom.
<PaulFertser> Without JTAG
Haohmaru has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
<bobsy> PaulFertser, ok. what other hardware do i need other than the clamp?
<bobsy> will this do?
<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
<PaulFertser> LPC122x: https://review.openocd.org
<LPC122x> Thanks
<LPC122x> In the meantime I think I've figured out that the only real problem is the auto probing doesn't work
<LPC122x> If I change the flash definition to this, it seems to work:
<LPC122x> flash bank $_FLASHNAME lpc2000 0x0 98304 0 0 $_TARGETNAME \
<LPC122x>  lpc1100 $_CCLK calc_checksum $_IAP_ENTRY
<PaulFertser> LPC122x: does it actually flash?
<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]
wingsorc has joined #openocd