NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
emeb has quit [Quit: Leaving.]
tsal has quit [Ping timeout: 250 seconds]
tsal has joined #openocd
thinkfat has joined #openocd
thinkfat_ has quit [Ping timeout: 250 seconds]
boru` has joined #openocd
boru has quit [Killed (NickServ (GHOST command used by boru`))]
boru` is now known as boru
ttmrichter has joined #openocd
Hawk777 has joined #openocd
<jybz> Hello o/
<PaulFertser> jybz: hey
<PaulFertser> jybz: if you're lifting the pin to to disconnect flash Vcc from the board Vcc then of course you should power just the flash and connect flash's Vcc to Vtref.
Haohmaru has joined #openocd
nerozero has joined #openocd
Hawk777 has quit [Quit: Leaving.]
lh has joined #openocd
ildar[m] has joined #openocd
zjason` has joined #openocd
zjason has quit [Ping timeout: 258 seconds]
Guest51 has joined #openocd
<Guest51> Hi -- im trying to create a `jtag newtap` configuration for an ADSP-21062lcs. It doesnt have an IDcode so its not as straight forward as i was expecting it to be.
<Guest51> As i understand it, in the absence of '-expected-id', i need to use '-ircapture' and '-irmask'
<Guest51> Is that correct? If so -- from what i've read, i need the following configuration (ish)
<Guest51> To be totally honest im not 100% confident with my value for '-ircapture' (and irmask by extension)
<Guest51> 'jtag newtap adsp-21062lcs-160 tap -irlen 5 -ircapture 0x10 -irmask 0x1F'
<Guest51> The parameter values i used above have come from this line in the processors users manual.
<Guest51> "The instruction register is 5 bits long with no parity bit. A value of 10000 binary is loaded (LSB nearest TDI) into the instruction register whenever the TAP reset state is entered."
<Guest51> Could someone please confirm i've given the right(or wrong!) parameters based off the information provided? If its wrong -- how?
<Guest51> If im missing key information to help solve this issue please let me know.
<Guest51> Log without config: https://pastebin.com/MapEGv5M
<Guest51> Log with only ep1k30 on the chain: https://pastebin.com/qU5riqGR
<Guest51> log with ep1k30 and ADSP on the chain: https://pastebin.com/fWjRAk39
Guest51 is now known as Matt
Matt is now known as Matt144
<PaulFertser> Matt144: please add both jtag newtap commands suggest by autoprobing in the same order and retry.
ericonr has joined #openocd
<Matt144> Thanks -- like this? https://pastebin.com/RB1aj9FF
<Matt144> If thats the solution im suprised -- i thought i did have it in the right order :)
<PaulFertser> Matt144: looks ok so far, you might add 0x220601ba instead of 0 expected-id in the first tap specified.
<Matt144> Thanks so much -- i've been overcomplicating the solution... I thought it was meant to be the in the same order as the chain on the board
<PaulFertser> Matt144: the documentation talks about the order of the chain, yes, that can be confusing indeed
<PaulFertser> Probably using 0x220601ba for idcode is just illegal and you should probably ignore the warning and proceed.
<Matt144> yeah looks like it: https://pastebin.com/QqywdzSs
<Matt144> thanks again! much appreciated
tarekb has joined #openocd
<PaulFertser> Matt144: that was easy :)
<PaulFertser> Welcome
<PaulFertser> Matt144: what do you plan to do with this setup?
<Matt144> im still learning openOCD, so bear with me....
<Matt144> Long story short, thermal camera with 2 chips on it (altera and the ADSP). I don't know what signals to send to the camera to control the focus. I've determined that the Focus motor is driven by a signal sent by the Altera, and theres an RS422 line leading to it. I'm hoping to dump the contents of the attached flash chip so i can figure out what to send via serial
<Matt144> i could of course just work around this by controlling the focus motor directly but i've got 10 more of these cameras that i want to get working without cracking open (they're filled with nitrogen or something)
<PaulFertser> Matt144: what the attached flash chip is?
<Matt144> Intel TE28F008... not 100% sure if its supported TBH. i remember reading something about intel flash and support somewhere... cant find it right now tho
<Matt144> but TBH im still curious to understand how all this works even if its a waste of time
<PaulFertser> Matt144: so this flash is memory-mapped parallel flash but not CFI.
<PaulFertser> Right?
<PaulFertser> Matt144: but OpenOCD doesn't have any support for SHARC I'm afraid.
<PaulFertser> Matt144: what's your plan again, is it about dumping the firmware and disassembling it to find functions that handle that RS422 communication to find the details about the protocol?
<Matt144> Regarding your flash question -- not sure, dont know enough about the field to answer that.
<Matt144> I dont actually need to get into the SHARC by the looks of the PCB (which is good)
<PaulFertser> Matt144: and the other side of the line is the Altera FPGA, right? Why do not you just sniff the communication then to see what is being sent there?
<Matt144> and regarding the plan -- yes exactly that
<Matt144> The thermal camera gets attached to hardware which i dont have so i cant figure out what to send it by looking
<PaulFertser> Matt144: I see. Another way to attack this would be to desolder the flash and connect it to an MCU you're familiar with to dump it directly. Or use some ready-made device that knows how to handle it.
<Matt144> Yeah i did consider that -- however i was hoping some kind of J-tag solution would work without me needing to be (potentially) destructive
<Matt144> as im progressing further here -- is it even possible to create a target for the Altera TAP here?
<karlp> if they're connected on a classic jtag chain, sure.
<Matt144> ok -- silly question then.... How am i meant to know the target type for said FPGA?
* karlp dodges...
<PaulFertser> Matt144: FPGA is not a CPU target
<PaulFertser> Matt144: you can talk to it with irscan/drscan or play back SVFs but that's about it.
<Matt144> i see -- so for my purposes im barking up the wrong tree
<Matt144> I assumed that since the flash was written to via jtag (via the FPGAs) (presumably) i could also read from it in a similar way
<PaulFertser> Matt144: why do you think it's FPGA that's writing to flash?
<PaulFertser> Matt144: or why do you think that flash stores the firmware that the DSP executes?
<Matt144> By following the traces -- the flash only leads to both FPGAs, vcc and ground. Theres no programming headers for the flash. (Unless the flash was programmed before soldered on to the board...)
<Matt144> The Altera chip has no onboard persistent storage
<Matt144> if i remember reading correctly
<Matt144> so on power-on it has to fetch its data from the flash chip
<Matt144> i think the only time the FPGA ever wrote to the flash was during the manufacturing process
<Matt144> actually just to clarify, the flash write enable is wired pinned out just next to the J-tag headers
<Matt144> let me know if im talking rubbish tho
<Matt144> i am a little in over my head with this stuff
joconor has joined #openocd
<Matt144> ok i see in the docs now openOCD only supports programming FPGA/PLDs
Hawk777 has joined #openocd
Haohmaru has quit []
tarekb has quit [Read error: Connection reset by peer]
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
emeb has joined #openocd
nerozero has quit [Ping timeout: 272 seconds]
akaWolf has quit [Ping timeout: 252 seconds]
richbridger has joined #openocd
akaWolf has joined #openocd
<PaulFertser> Matt144: reading out the flash of the FPGA won't give you much. You're after the protocol and the protocol is implemented in that DSP, and it stores firmware internally I guess.
emeb has quit [Quit: Leaving.]
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #openocd