Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - sre71

16
Bus Pirate Support / Re: BP stops responding in binary IO mode
Hi leonerd,
maybe isn't your case, anyway I suggest you to take a look at this:
 
viewtopic.php?f=4&t=6667#p58785
 
I know the firmware release v6.1 r1676 you are using has some problem with SPI.
In my opinion should be better if you try this:
 
viewtopic.php?f=4&t=6667#p59022
 
It's much better expecially for the SPI side.
It has been written debugging the v6.3 revision (thanks a lot Tayken!).
Actually over the v6.1 there are also the v6.2 and v6.3 revisions.
v6.1 isn't the latest and however only that I wrote has been bugfixed for problems facing the SPI's management, no others for what I know.
 
Regards,
sre71
17
Flashrom / Re: Flashrom stalls while reading flash
Hi Coffee,
you are welcome!
Sad to read about your problem.
Unluckily I'm not accustomed to use the Linux version of the flashrom because normally I use the Windows one.
In the past even me I have used the program running Ubuntu in a virtual machine getting some issues.
If for you there isn't problem I suggest to use a Windows version directly on your computer if there is installed an operating system other than Ubuntu or any kind of Linux.
Please take a look here:
 
http://buildbot.flashrom.org/buildresults/?M=D
 
About your problem try to read this if already you didn't do it:
 
viewtopic.php?f=23&t=7364&p=61808&hilit=ubuntu#p61808
 
Sorry but now it's late and I don't remember Linux's syntax for flashrom so I'll go to explain some hint using the Windows' one.
To you the task of converting commands in order to use them with Linux, apologize me.

First, what happens performing someting like this?:

flashrom.exe -p buspirate_spi:dev=COM

(where COM have to be the real serial port number assigned to the Bus Pirate).

In that way flashrom should show you it works and the name of the found device if it has been able to recognize one.
If all it's fine then try this:
 
flashrom.exe -p buspirate_spi:dev=COM -r myfile

This one should be almost the same as your "# flashrom --programmer buspirate_spi:dev=/dev/ttyUSB0,spispeed=1M -r myfile.bin -c MX25L6406E/MX25L6408E".
I advise you not to force any recognition for the device unless otherwise necessary.
Generally flashrom set Bus Pirate for the maximum speed of 8MHz for SPI and I don't see the utility to change it unless there are problems, so try to run the program without force the bus' speed.
Slow down the speed it's useful in case you get problems, the chip that you are trying to read is welded somewhere or alone disconnected?
Setting aside flashrom for a moment and using the Bus Pirate alone in order to be sure all is working right there, in the end are you been able to read the Macronix MX25L6406E's JEDEC as explained here?

viewtopic.php?f=4&t=7482
 
If no result doing that way then you have to dig the matter because you have a serious issue.

Regards,
sre71
18
Bus Pirate Support / Re: SLE4442 PSC
Hi lrotk,
you are welcome!
The answer at your question is yes, surely it can do the job.

Regards,
sre71
19
Bus Pirate Support / Re: Attempting to interface w/ MX25L6406E
Hi Dudeman
you are welcome!
Here you go some links where are some useful informations if you don't already know them:

viewtopic.php?f=4&t=6874#p59938

I think there is something wrong with how you managed your connections.
Please take a look at this:

http://dangerousprototypes.com/docs/Pra ... _resistors

There is explained how the Bus Pirate manage its pull-ups.
As stated in the document the pull-ups are only on MOSI, CLOCK, MISO and CS.
Another point is that it is not recommended provide power supply voltage throught a pull-up resistor as you did for the whole chip.
The right connections should be these:

Bus Pirate        MX25L6406E
    CS<-------------->CS#
  MISO<-------------->SO/SIO1
  VCC<-------------->WP#
  GND<-------------->Vss(GND)
  MOSI<-------------->SI/SIO1
  CLK<-------------->SCLK
  Vcc<-------------->HOLD#
  Vcc<-------------->Vcc

Course you need to choose +3,3V like power supply voltage due the fact the chip isn't +5V tolerant.
Better should be provide the Vcc to WP# and HOLD# through limitation resistors (something like 10kohm should be OK) but also connecting them together isn't bad also because of the safety specifications of the Bus Pirate's power supply stage.
About how set the Bus Pirate in my opinion 30kHz is really few, very slow.
I believe even 1MHz is good.
For the parameter "Select output type:" you must to choose "2. Normal (H=3.3V, L=GND)", then you have to issue a "W" command in order to switch on the power supply.
Please don't activate the pull-up resistors (command "P") though.
Here is the sequence:

m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)

(1)>5
Set speed:
 1. 30KHz
 2. 125KHz
 3. 250KHz
 4. 1MHz

(1)>4
Clock polarity:
 1. Idle low *default
 2. Idle high

(1)>
Output clock edge:
 1. Idle to active
 2. Active to idle *default

(2)>
Input sample phase:
 1. Middle *default
 2. End

(1)>
CS:
 1. CS
 2. /CS *default

(2)>
Select output type:
 1. Open drain (H=Hi-Z, L=GND)
 2. Normal (H=3.3V, L=GND)

(1)>2
Clutch disengaged!!!
To finish setup, start up the power supplies with command 'W'

Ready
SPI>W
POWER SUPPLIES ON
Clutch engaged!!!
SPI>[0x9f r r r]
/CS ENABLED
WRITE: 0x9F
READ: 0xC2
READ: 0x20
READ: 0x17
/CS DISABLED

Mission accomplished.

Regards,
sre71
20
Open Bench Logic Sniffer / Re: Trouble upgrading flash rom
Hi mnenomic77,
 
I'm bit in a hurry now and I'm not a Linux user.
Anyway, do you know this?:
 
viewtopic.php?f=23&t=7344
 
I guess you need to be ROOT user while using the upgrade tools.
Here are some instruction just in case you don't know them:
 
http://dangerousprototypes.com/docs/Log ... s_on_Linux
 
http://dangerousprototypes.com/docs/Var ... ic_Sniffer
 
http://dangerousprototypes.com/docs/Ope ... er#Updates
 
I believe the JEDEC is wrong due the lack in something during the upgrade, perhaps the jumper between PGC and PGD pins.
I'm not sure though, sorry.
Hoping that can help.
 
Regards,
sre71
22
Open Bench Logic Sniffer / Re: problems with upgrade
Hi hyOzd,
 
Device type Open Logic Sniffer v1.01
Firmware 3.07
Protocol 2
 
that doesn't mean downgrade, they are the latest available releases.
Please take note that v1.04 hardware compared to previous v1.01 only consist on a minor update with a few changes for better production and easier sourcing.
I guess it isn't recognized from firmware only.
http://dangerousprototypes.com/docs/Ope ... list#v1.04
http://dangerousprototypes.com/docs/Ope ... list#v1.01
 
Regards,
sre71
23
Flashrom / Re: Flashrom never working.....
Hi Leon,
 
for a moment set aside flashrom and give it a try with Bus Pirate alone just in order to be sure all is working right there.
So clip your chip to the Bus Pirate, put it in SPI mode and send these commands:
 
[0x9F r:3]
(if all is fine either for SPI communication or links, on the terminal you should be able to read JEDEC of the component which is BFH 25H 8DH for SST25VF040B)
 
[0x90 0x00 0x00 0x00 r:2]
(if all is fine either for SPI communication or links, on the terminal you should be able to read the Manufacturer and Device ID of the component which are BFH 8DH for SST25VF040B)
 
[0x90 0x00 0x00 0x01 r:2]
(if all is fine either for SPI communication or links, on the terminal you should be able to read the Device and Manufacturer ID of the component which are 8DH BFH for SST25VF040B)
 
Ok this is the first step.
If you are able to see them your Bus Pirate and chip are talking fine otherwise there is a problem and then it's normal that flashrom is unable to recognize the chip.
 
Regards,
sre71
24
Bus Pirate Support / Re: BP 3.6 boot issue
Hi Riley.
Instead to use ds30 Loader GUI try to use pirate-loader.exe, maybe you can fix your problem.
If you haven't yet tried give it a try, it doesn't cost anything and it's easy to do.
Simply download the firmware you want, edit the batch file and run it.
You only need to set properly the COM port.
In the case you want to use a firmware release that hasn't its own batch file, simply put the firmware you want in the folder and in the batch file make changes at the name of the exadecimal firmware so it match with what it's need.
Easy, give it a chance.
Good luck!
 
Regards,
 
sre71
25
Flashrom / Re: problem erasing flash chip in flasrom
Hi haris2k11,
Graham242 and tayken are right, maybe it's better if you take contact with the flashrom's guys.
Anyway I'm pretty sure that the Bus Pirate can do the job by itself without the help of anything else.
Seems you have to perform a Bulk Erase command, so clip the probes on the N25Q064 in the right way and put the Bus Pirate in SPI.
Also pay attention to the HOLD/DQ3 pin which you need to tie to Vcc in order to deselect it.
If I'm not wrong something the command sequence must be this

[0x06][0x01 0x00][0xC7]%:125000[0x05 r]

otherwise take a look at the datasheet of the component.
RDSR (Read Status Register) 05h in the end of the sequence is for be sure all went well, look at its content by decoding it according with the datasheet.
The whole sequence require 125 seconds to be completed, so be patient.
I haven't that chip so I can't test the command sequence.
Good luck!
 
Regards,
 
sre71
26
Bus Pirate Support / Re: buspirate v3.6 newbie help please
Hi haris2k11,
tayken has already replied to you.
Please follow his hints but also considers this.
For what I know tayken has fixed the main firmware a lot so if doesn't compiled by own self the latest best revision is here:
 
viewtopic.php?f=4&t=6667#p59022  (Many thanks tayken!)
 
Since you are familiar with Windows environment perhaps it's better for you do the upgrade from there.
So simply download the 6.1 main release (https://code.google.com/p/dangerous-pro ... e.v6.1.zip) and unpack it putting the tayken's fixed firmware in the same folder.
Now you need to write a new batch file or edit that which is already in the folder simply changing the name for the firmware's file and eventually adjust the COM's address, then start the new batch with PGC and PGD tied by jumper (http://dangerousprototypes.com/docs/Pir ... Windows%29).
That's all.
 
In my own experience by using flashrom with Windows isn't more headache than using Linux, no more than little differences in the command line,nothing else IMHO.
Still IHMO the real killer application on using Linux over Windows is the ability to easily compile by itself the latest version of flashrom or use the version ready for use that it's possible to download from the main site of flashrom.
This really makes the difference between the two.
People who can do the job (complile flashrom) under Linux surely can do the same with Windows even if it is a bit more complicate there.
The complication arises by the fact with Windows you need to configure an environment that was thought to Unix which is more similar to Linux than the operative system from Microsoft.
Being able to correctly install mingw environment and set it in the same way than in Linux equalize the matter though.
So starting from a working Linux environment it is definitely possible duplicate it in Windows.
The real problem is how and where get the working Linux environment in order to set Windows in the same way, IHMO.
 
Kindest regards,
sre71
29
Open Bench Logic Sniffer / SPI Analyzer fails to show ! (ASCII caracter 33, 21HEX).
Hi there.
 
Am I the only who have missing caracters while capturing of ! (ASCII caracter 33, 21HEX)?
While performing SPI analysis I have spotted the weird behaviour.
On the main screen all is good and correctly there are the captured !, while into SPI analyser's panel ! are missing.
My client version is Jawis-OLS-client ols-0308 but I see also other more recent clients have the same behaviour.
 
Regards,
sre71

[attachment=1]
[attachment=0]
30
Bus Pirate Support / Re: Same I/O Port for SPI
Hi tayken,
 
thank you very much for the useful informations.
As always you are kind and very competent.
 
Season's greetings and regards,
sre71

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01602456128session_write_close ( )...(null):0
20.01632587752ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01632588528Database_MySQL->query( ).../DatabaseHandler.php:119
40.06132727288Database_MySQL->error( ).../Db-mysql.class.php:273