nerozero has quit [Remote host closed the connection]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Haohmaru has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Rudde has quit [Ping timeout: 272 seconds]
Rudde has joined #openocd
Bugies has joined #openocd
marex has joined #openocd
nerozero has joined #openocd
Bugies has quit [Ping timeout: 240 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
kraiskil has joined #openocd
Bertl_zZ is now known as Bertl
wingsorc has quit [Ping timeout: 252 seconds]
kraiskil has quit [Ping timeout: 240 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Steffanx has quit [Quit: Whop whop]
Steffanx has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Bugies has joined #openocd
Guest55 has joined #openocd
<Guest55>
Can anyone help me with an openocd question?
<Haohmaru>
ask the question
<Haohmaru>
otherwise the answer is "it depends"
<Guest55>
I'm trying to read flash off an AT91 ARM Thumb-based Microcontroller using JTAG. Is there a way to do this?
<Haohmaru>
do you mean the program flash on the MCU?
<Guest55>
Yes, I'm trying to pull the non-volatile memory off the flash chip
<Haohmaru>
no idea particularly about the jtag, but openocd normally needs to be able to put a new program on an MCU, and possibly also to verify it (read it back), so it should
<Guest55>
or maybe just in general, how does one go about accessing external flash off a circuit board. Do I have to go through the CPU or can I access flash directly, or does it matter
<Haohmaru>
as long as it supports doing that over JTAG with your debugger and on your MCU
<Haohmaru>
no idea about external flash
<Guest55>
Well thanks for answering my questions!
<Haohmaru>
wait for the others to answer, i'm only a user
<Haohmaru>
only dealing with SWD, not jtag
<Guest55>
I appreciate it, I'm pretty new to JTAG and openocd. I've started an ambitious project to try and 'hack' programs and pull data off embedded processors, whether that be internal or external non-volatile memory.
<Guest55>
Have you tried reading flash through SWD?
<PaulFertser>
Guest55: so what about reading the flash? Is it NOR or NAND?
<Guest55>
I'm trying to read from a M29W160DT flash chip, not sure NOR or NAND
<PaulFertser>
Guest55: no datasheet?
<Guest55>
I have the datasheet, I have searched both NOR and NAND and haven't found it
<PaulFertser>
Guest55: is it probably a CFI-compatible parallel flash?
<karlp>
parallel nor.
<karlp>
datasheet talks about cfi commands, so yeah...
<PaulFertser>
Guest55: in this case it's likely to be memory-mapped by default, so you can use dump_image command.
<Guest55>
can I do that from a telnet connection?
<PaulFertser>
Guest55: if that AT91 requires some additional initialisation to map it, you can use "mww" commands to the corresponding peripheral control registers.
<PaulFertser>
Guest55: sure
<Guest55>
Thanks guys! You are amazing
<Haohmaru>
<keanu-no_you_are.gif>
<ikskuh>
heya o/
<PaulFertser>
Guest55: and if you feel like writing to it you can try using "cfi" flash driver in OpenOCD.
<Guest55>
Sorry i'm pretty new, how would I do that?
<PaulFertser>
Guest55: there's the official user manual. And you can search through board/*.cfg files for "cfi" to see some examples.
<PaulFertser>
There're some at91-based boards there.
<Guest55>
Thanks! very helpful
Guest5574 has joined #openocd
Guest5574 has quit [Client Quit]
Guest5519 has joined #openocd
Guest5519 has quit [Quit: Client closed]
Hawk777 has joined #openocd
Guest55 has quit [Ping timeout: 252 seconds]
nvmd has joined #openocd
MichaelMonaghan has joined #openocd
Guest55 has joined #openocd
erhankur has quit [Remote host closed the connection]
Bugies has quit [Ping timeout: 244 seconds]
erhankur has joined #openocd
nvmd has quit [Quit: WeeChat 3.5]
Bugies has joined #openocd
crabbedhaloablut has joined #openocd
Haohmaru has quit []
Bertl is now known as Bertl_oO
Guest55 has quit [Ping timeout: 252 seconds]
Guest55 has joined #openocd
Guest55 is now known as P_Nut
<MichaelMonaghan>
Does there exist a way to use multiple adapter drivers at once?
<PaulFertser>
MichaelMonaghan: no, just run multiple OpenOCD instances.
<MichaelMonaghan>
PaulFertser: Thanks
<antto>
openocd -j1024
<PaulFertser>
MichaelMonaghan: I wonder what are you trying to do with multiple adapters at the same time?
<MichaelMonaghan>
PaulFertser: I have TAP accessible to OpenOCD that controls an entirely separate JTAG chain. I was hoping to be able to write an adapter driver that would just send the right commands to the TAP and expose the chain to OpenOCD like any other adapter would.
<MichaelMonaghan>
With one adapter per instance, I'm thinking that I might need to chain OpenOCD instances.
<Hawk777>
If all else fails, I suppose you could make an adapter driver that works by connecting to another OpenOCD instance’s TCL-RPC port and sending commands to it. Seems messy but I guess it would work?
<PaulFertser>
MichaelMonaghan: oh I see, interesting but certainly not anticipated by the architecture usecase.
P_Nut has quit [Quit: Client closed]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
nvmd has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
wingsorc has joined #openocd
MichaelMonaghan has quit [Quit: Client closed]
nerozero has quit [Ping timeout: 240 seconds]
Bugies has quit [Ping timeout: 272 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
wingsorc__ has joined #openocd
wingsorc has quit [Read error: Connection reset by peer]