Products > Test Equipment

Sniffing the Rigol's internal I2C bus

<< < (742/899) > >>

0ff:
Howard, thank you for your writeup, this is really helpful!

I only have 2 additions: You can vastly shorten your config to a single file like this: (and note the increased kHz, the olimex and scope can handle this without any error).

--- Code: ---source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]
source [find target/imx28.cfg]
adapter_khz 20000

--- End code ---

Then you run it as you said, but for dumping the memory there's no need at all to use gdb. Instead, you can dump it from the openOCD Telnet session like this:

--- Code: ---$ telnet 127.0.0.1 4444
> halt
> dump_image your_filename_here.bin 0x40000000 0x3FFFFFF

--- End code ---

It should take about ~7min to complete at the higher adapter speed.

swanawood:
WOW!

Thank you so much for the info!

Howardlong:

--- Quote from: 0ff on December 11, 2014, 09:50:49 am ---Howard, thank you for your writeup, this is really helpful!

I only have 2 additions: You can vastly shorten your config to a single file like this: (and note the increased kHz, the olimex and scope can handle this without any error).

--- Code: ---source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]
source [find target/imx28.cfg]
adapter_khz 20000

--- End code ---

Then you run it as you said, but for dumping the memory there's no need at all to use gdb. Instead, you can dump it from the openOCD Telnet session like this:

--- Code: ---$ telnet 127.0.0.1 4444
> halt
> dump_image your_filename_here.bin 0x40000000 0x3FFFFFF

--- End code ---

It should take about ~7min to complete at the higher adapter speed.

--- End quote ---

That rings a bell, forget what I said about gdb, sorry for the bum steer, the old memory ain't what it used to be! I can't remember what I had to do to stop the CPU I'm afraid, but you do need to do it or the dump won't work.

0ff:
Well, you can halt it by just saying "halt" :)

Howardlong:
Oh, you mean like you wrote then. Doh! Sorry, hadn't noticed your halt command. I'll just settle back to my demented old self!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod