NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
thinkfat has joined #openocd
thinkfat_ has quit [Ping timeout: 268 seconds]
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 264 seconds]
Haohmaru has joined #openocd
nerozero has joined #openocd
Hawk777 has quit [Quit: Leaving.]
tiltmesenpai has quit [Read error: Connection reset by peer]
tiltmesenpai has joined #openocd
c4017 has quit [Quit: Client closed]
kraiskil has joined #openocd
wingsorc has quit [Ping timeout: 246 seconds]
kraiskil has quit [Ping timeout: 268 seconds]
kraiskil has joined #openocd
kraiskil has quit [Ping timeout: 265 seconds]
kraiskil has joined #openocd
matsievskiysv has joined #openocd
<matsievskiysv> Hello!
<matsievskiysv> I have a JEDEC compatible NOR flash connected to my chip
<matsievskiysv> I can access it using `mdw` commands in RO mode
<matsievskiysv> But in order to write commands to it, I have to use a flash controller register
<matsievskiysv> Can I use cfi flash driver for it or do I need to write my own driver?
<PaulFertser> matsievskiysv: cfi driver implements protocol for CFI parallel flash.
<matsievskiysv> ok, thanks!
<PaulFertser> matsievskiysv: so if your NOR flash is parallel, it's likely supported.
kraiskil has quit [Ping timeout: 252 seconds]
<matsievskiysv> no, it'
<matsievskiysv> no, it's spi
<PaulFertser> matsievskiysv: in cases like that usually the easiest way is to upload some bootloader to RAM that has the flashing commands embedded.
<matsievskiysv> I just don't understand how chip is accessed in cfi driver
<PaulFertser> matsievskiysv: CFI driver assumes the chip is on the bus directly, so it's accessed by memory reads/writes.
<PaulFertser> matsievskiysv: what's your target CPU?
<matsievskiysv> microchip jaguar2c
matsievskiysv has quit [Quit: Client closed]
matsievskiysv has joined #openocd
<PaulFertser> matsievskiysv: the easiest would be to init SDRAM by mww/mwb commands, then upload u-boot there, then use u-boot to flash.
<PaulFertser> matsievskiysv: alternatively, you can use a soic clip and use flashrom to write directly to SPI flash while keeping the target SoC in reset by pulling SRST to GND.
<matsievskiysv> yes, I currently use flashrom for programming
<matsievskiysv> I was just investigating the possibilities of flashing via jtag
matsievskiysv has left #openocd [#openocd]
matsievskiysv has joined #openocd
<PaulFertser> matsievskiysv: yes, should be possible by uploading u-boot to ram, yes. https://github.com/vtss/openocd-config-vtss/ might be useful.
<PaulFertser> Alternatively, you can write an OpenOCD flash driver for this target.
matsievskiysv has quit [Ping timeout: 246 seconds]
wingsorc has joined #openocd
kraiskil has joined #openocd
matsievskiysv has joined #openocd
<matsievskiysv> Yes, I've seen it. It's kind of useless, just adds cpu register names.
<matsievskiysv> Btw, it might be a good idea to split cfi driver into protocol and implementation parts
<matsievskiysv> Like rawnand driver in uboot
<PaulFertser> Probably
kraiskil has quit [Ping timeout: 252 seconds]
kraiskil has joined #openocd
kraiskil has quit [Ping timeout: 260 seconds]
matsievskiysv has quit [Quit: Quit]
Haohmaru has quit []
nerozero has quit [Ping timeout: 264 seconds]
shoragan has quit [*.net *.split]
barath has quit [*.net *.split]
shoragan[m] has quit [*.net *.split]
bobsy has quit [*.net *.split]
sbach has quit [*.net *.split]
jancoow has quit [*.net *.split]
LinuxHackerman has quit [*.net *.split]
losfair[m] has quit [*.net *.split]
Bertl has quit [*.net *.split]
ttmrichter has quit [*.net *.split]
bq has quit [*.net *.split]
borneoa_ has quit [*.net *.split]
ormaaj has quit [*.net *.split]
diddly has quit [*.net *.split]
zkrx has quit [*.net *.split]
zmatt has quit [*.net *.split]
indy has quit [*.net *.split]
Fleck has quit [*.net *.split]
wingsorc has quit [*.net *.split]
flatmush has quit [*.net *.split]
hosk has quit [*.net *.split]
van has quit [*.net *.split]
dormito has quit [*.net *.split]
JakeSays has quit [*.net *.split]
joconor has quit [*.net *.split]
nashpa has quit [*.net *.split]
uartist has quit [*.net *.split]
Getty has quit [*.net *.split]
Jybz[m] has quit [*.net *.split]
mawk has quit [*.net *.split]
dnm has quit [*.net *.split]
jybz has quit [*.net *.split]
gruetzkopf has quit [*.net *.split]
ericonr has quit [*.net *.split]
_franck_ has quit [*.net *.split]
extor has quit [*.net *.split]
HelloShitty has quit [*.net *.split]
josuah has quit [*.net *.split]
youthpastor has quit [*.net *.split]
russ has quit [*.net *.split]
medicalwei has quit [*.net *.split]
xantoz has quit [*.net *.split]
olerem has quit [*.net *.split]
bencoh has quit [*.net *.split]
bacam has quit [*.net *.split]
cp- has quit [*.net *.split]
SteveMarple has quit [*.net *.split]
milkylainen has quit [*.net *.split]
cyrozap has quit [*.net *.split]
tiltmesenpai has quit [*.net *.split]
bryanb has quit [*.net *.split]
rkta has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
noperator[m] has quit [*.net *.split]
lh has quit [*.net *.split]
key2 has quit [*.net *.split]
drath42 has quit [*.net *.split]
djgl has quit [*.net *.split]
marex has quit [*.net *.split]
crabbedhaloablut has quit [*.net *.split]
thinkfat_ has quit [*.net *.split]
PaulFertser has quit [*.net *.split]
sys64738 has quit [*.net *.split]
nathanhi has quit [*.net *.split]
f00b4r has quit [*.net *.split]
antto has quit [*.net *.split]
Xogium has quit [*.net *.split]
ChanServ has quit [*.net *.split]
dreamcat4 has joined #openocd
SteveMarple has joined #openocd
Fleck has joined #openocd
wingsorc has joined #openocd
tiltmesenpai has joined #openocd
thinkfat_ has joined #openocd
_franck_ has joined #openocd
sbach has joined #openocd
bryanb has joined #openocd
bq has joined #openocd
diddly has joined #openocd
flatmush has joined #openocd
hosk has joined #openocd
crabbedhaloablut has joined #openocd
PaulFertser has joined #openocd
dormito has joined #openocd
van has joined #openocd
JakeSays has joined #openocd
noperator[m] has joined #openocd
shoragan has joined #openocd
olerem has joined #openocd
zkrx has joined #openocd
borneoa_ has joined #openocd
zmatt has joined #openocd
jancoow has joined #openocd
losfair[m] has joined #openocd
barath has joined #openocd
ormaaj has joined #openocd
LinuxHackerman has joined #openocd
shoragan[m] has joined #openocd
Jybz[m] has joined #openocd
sys64738 has joined #openocd
bobsy has joined #openocd
Bertl has joined #openocd
extor has joined #openocd
joconor has joined #openocd
bencoh has joined #openocd
cp- has joined #openocd
bacam has joined #openocd
ttmrichter has joined #openocd
josuah has joined #openocd
uartist has joined #openocd
rkta has joined #openocd
xantoz has joined #openocd
Getty has joined #openocd
medicalwei has joined #openocd
russ has joined #openocd
youthpastor has joined #openocd
ericonr has joined #openocd
jybz has joined #openocd
gruetzkopf has joined #openocd
dnm has joined #openocd
mawk has joined #openocd
key2 has joined #openocd
Xogium has joined #openocd
antto has joined #openocd
f00b4r has joined #openocd
ChanServ has joined #openocd
HelloShitty has joined #openocd
nashpa has joined #openocd
indy has joined #openocd
lh has joined #openocd
marex has joined #openocd
nathanhi has joined #openocd
cyrozap has joined #openocd
drath42 has joined #openocd
milkylainen has joined #openocd
djgl has joined #openocd
Pokey has quit [Max SendQ exceeded]
[Pokey] has joined #openocd
wolfshappen has quit [Max SendQ exceeded]
wolfshappen has joined #openocd
jacob_ is now known as jacob
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
kraiskil has joined #openocd
kraiskil has quit [Ping timeout: 260 seconds]
kkk4444 has joined #openocd
kkk4444 has quit [Quit: Client closed]
kraiskil has joined #openocd
wingsorc has quit [Quit: Leaving]
kraiskil has quit [Ping timeout: 246 seconds]
wingsorc has joined #openocd
c4017 has joined #openocd
c4017 has quit [Quit: Ping timeout (120 seconds)]
c4017 has joined #openocd