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 - ian

91
Bus Pirate Support / Re: Bus Pirate v3b SPI
My guess is flashrom tries to read out the (JEDEC?) id and it is unknown or fails. The chip should be powered somehow, yes.

[ r:10 ] this just reads 10 bytes. However I think the chip, if it is typical SPI flash, probably needs a command (read/fast read/write/fast write/read JEDEC ID/etc) before it will do anything. r:10 just writes 10 * 0xff to the bus, the chip probably ignores it.

I'm not familiar with the uboot stuff or how the microcontroller in a camera loads from flash.
92
Bus Pirate Development / Re: Bus Pirate "Ultra" v1a & v1b with ICE40 and Icestorm :)
  • I need to verify from each datasheet proper input and output caps for the three different vregs when we confirm final part numbers (All MCPxxxx?)
  • we don't have input caps on the vregs that are more than 1cm from the main input cap (3.3v, 1.2v)
  • We need to consider our power budget. MCP1801 is good for 150ma only.

Currently we are using MCP1824 adjustable as the Vout. Confirmed in datasheet the test conditions are 4.7uf ceramic. As low as 1uF would work, but let's go with 4.7uF on input and output.

We are using MCP1801 for the 3.3volt and 1.2volt supplies. This is a 150ma LDO with enable. We really don't need the enable, but I like the SOT-23-5 package because it gives almost twice as much contact for thermal dissipation to the PCB. It will take some before we have a realistic power budget, but I believe we should target 200-250ma on both rails for development. The other issue is the display and LEDs, that's gonna eat up a bunch (60-80mA).


MCP1700
is cheap, no enable, 250mA. The three pin sot-23 package is limiting, but there is a SOT-89 between the SOT223 and SOT23 in size. The datasheet suggests 1uF on in and out, but more on input is possible. How about 1uF on output and 4.7uF on input to keep the BOM smaller?

  • VR1 to MCP1700-33 SOT-89? 4.7uF input capacitor, 1uF output cap (C28)
  • VR2 to MCP1700-12 SOT-89? 4.7uF input capacitor, 1uF output cap (C39)
93
Bus Pirate Development / Re: Bus Pirate "Ultra" v1a & v1b with ICE40 and Icestorm :)
X

I stuffed as much of the new board as I could. I don't have 2 of the chips, or any of the 0402 components.

Here's a list of changes and bugs I noticed:
  • I think it was a mistake to use the r array for the adc stuff, it's only 5% tolerance. These should be individual 1% resistors
  • r27 should change to 100k
  • R32 is 10K
  • R31 should be 99.22K, assigned 100K. Should this adjust?
  • R30 should be 77.96K, assigned 78.7K, substituted 75K (didnt have 78.7K). Should adjust?
  • R26 = 0R
  • C24=Do not populate
  • r36=0R
  • r33=0r
  • add 1uF to U14
  • D1=1n4148
  • r34=65K (I had to substitute 62K, should we adjust?)
  • r35=100K
  • Connect OE and DIR of 245 to FPGA
  • I used PFET PMV65XP as Q2
  • Vimarks "Ian solderable" SC70 footprints are amazing :) We can probably use the proper footprint on the next revision and save a lot of space
  • Need to renumber all the components. Consolidate IC/U and any other similar but different prefixes
  • C23/C29 = 4.7uF
  • I need to verify from each datasheet proper input and output caps for the three different vregs when we confirm final part numbers (All MCPxxxx?)
  • we don't have input caps on the vregs that are more than 1cm from the main input cap (3.3v, 1.2v)
  • We need to consider our power budget. MCP1801 is good for 150ma only.

@tayken you're right, we're gonna raid that so hard :) Also the icotools from icestorm developer have some really solid peripherals.
95
Bus Pirate Support / Re: Bus Pirate v3b SPI
Hey ya,

Question(s):

Am I completely off the mark using Bus Pirate to check the SPI chip (see if i can write and read - checking if the chip is still "working"

Definitely the right track. I have not looked at the datasheet, but a lot of flash chips use the 0x03 read command. Can you verify that you can read it from the Bus Pirate terminal? something like [ 0x03 0 0 0 r:16] for the spi flash I'm messing with at the moment is [ (cs low), 0x03 (read command), 0 0 0 (set address to read from), r:16 (read 16 bytes), ] (cs high)

    With my tests I can read and write, what I was trying to do is use flashrom then to flash a bootloader specifically uBoot

I assume you can write anything as long as you can tell it where to locate the data you're writing. I'm not familiar with flashrom at the moment.
96
Bus Pirate Support / Re: Bus Pirate communication in SPI Mode / SPI speed
Speed is tricky, some newer flash have minimum speeds. Generally I like to go slow because there's so much delay between bytes anyways that 2mhz vs 100khz isn't going to change much.

Quote
To do so, I used the Write-then-read function: 0x04 0x00 0x04 0x08 0x80 0x03 0x00 0x00 0x00

I'm not clear what this means. This is the result?

What chip is it? Are there setup and configuration commands, or address commands? Is your script handling that?
97
Bus Blaster JTAG debugger / Re: BusBlaster v4.1a can't connect to JTAG
XC2C64A_VQ100.bsdl, bbv4.svf. these should be the right files. And you should be targeting interface 1, if I recall correctly (because the JTAG tools all use interface 0).

If this is v4, is there some kind of jumper or something that needs to be set for programming mode? That might be the one with the 44 pin CPLD.
103
Bus Pirate Support / Re: Questions about HARDWARE mode with I2C protocol
We took out the hardware I2C option and warning really early on because it created a lot of chaos. There's probably a total of 100 Bus Pirates (it may have been the batch done for Hack a Day, predating Dangerous Prototypes, but I don't remember) out there with the bad silicon revision. HW I2C could be enabled with a compiler switch, at least in the past.
104
Bus Pirate Support / Re: Computerless Bus Pirate
Hi Wanhedaking,

You would need to tap or bring out the RX and TX of the UART and then interface it at 115200 baud with settings 8/N/1.

The extra UART pins I assume were eliminated because we needed them for other functions. However, I'm not sure, but I believe the programming pins (ICSP) pins are PPS pins, so you could technically update the firmware to assign the UART to those pins instead of the FTDI chip.

If you're into something new and more powerful (and with a display), Sjaak and I have been messing with this: http://dangerousprototypes.com/forum/index.php?topic=10316


( ! ) 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.01982454312session_write_close ( )...(null):0
20.02012585928ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.02012586704Database_MySQL->query( ).../DatabaseHandler.php:119
40.06662725464Database_MySQL->error( ).../Db-mysql.class.php:273