Menu

#4 TQG144

v1.0_(example)
open
nobody
None
5
2015-07-24
2015-07-23
No

please advise: how to progress further?

./xc3sprog -c ft232h logipi_blink.bit
loads and LEDs blink as expected

./xc3sprog -c ft232h flash-loader.bit
...
Using Libftdi,
DNA is 0x792f566e1ebe62fe
blinking stops

./xc3sprog -c ft232h -I logipi_blink.bit
...
Using Libftdi,
JEDEC: 20 80 0x15 0x10
M25P: Unexpected RDID upper Device ID 0x80
ISF Bitfile probably not loaded

flash-loader.bit built on ISE using
bscan_s6_spi_isf_ext.v and
TQG144 constraints.ucf from UG385 pg.30
NET "MISO" LOC = P65;
NET "MOSI" LOC = P64;
NET "DRCK1" LOC = P70;
NET "CSB" LOC = P38;

FTDI UM232h-B USB:
http://www.farnell.com/datasheets/1812682.pdf

LogiPi schematics:
https://github.com/fpga-logi/Logi-boards/tree/master/fpga-boards/logi-pi/PRJ-DOC/sch

Discussion

  • jonathan chetwynd

    int ProgAlgSPIFlash::spi_flashinfo_m25p(unsigned char *buf)

    but what value is pages and sector size?

     
    • Uwe Bonnes

      Uwe Bonnes - 2015-07-23

      "jonathan" == jonathan chetwynd peepo@users.sf.net writes:

      jonathan> int ProgAlgSPIFlash::spi_flashinfo_m25p(unsigned char *buf)
      jonathan> but what value is pages and sector size?
      

      Di you check the datasheet?

      Sorry, low on time...

      Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de

      Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
      --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

       
  • jonathan chetwynd

    I tried this:

    case 0x80:
      fprintf(stderr, "Found Micron M25PE Device, Device ID 0x%02x%02x\n",
              fbuf[1], fbuf[2]);
      switch (fbuf[2])
        {
        case 0x15:
          pages = 65536;
          sector_size = 65536;
          break;
        default:
          fprintf(stderr,"Unexpected M25PE size ID 0x%02x\n", buf[2]);
          return -1;
        }
      break;
    

    Using Libftdi,
    JEDEC: 20 80 0x15 0x10
    Found Micron M25PE Device, Device ID 0x8015
    256 bytes/page, 65536 pages = 16777216 bytes total
    Verify: Success!

    but no blinking on power up.

    https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25pe_m45pe/m25pe16.pdf

     
    • Uwe Bonnes

      Uwe Bonnes - 2015-07-23

      "jonathan" == jonathan chetwynd peepo@users.sf.net writes:

      jonathan> I tried this: case 0x80: fprintf(stderr, "Found Micron M25PE
      jonathan> Device, Device ID 0x%02x%02x\n", fbuf[1], fbuf[2]); switch
      jonathan> (fbuf[2]) { case 0x15: pages = 65536; sector_size = 65536;
      jonathan> break; default: fprintf(stderr,"Unexpected M25PE size ID
      jonathan> 0x%02x\n", buf[2]); return -1; } break;
      
      jonathan> Using Libftdi, JEDEC: 20 80 0x15 0x10 Found Micron M25PE
      jonathan> Device, Device ID 0x8015 256 bytes/page, 65536 pages =
      jonathan> 16777216 bytes total Verify: Success!
      

      This looks like the part got programmed. Try to run a verify run!

      jonathan> but no blinking on power up.
      

      This looks like your FPGA boot mode is not right. Did it work in another
      way?
      Did yoy try e.g. with the Xilinx tools?

      Bye

      --
      Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de

      Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
      --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

       
  • jonathan chetwynd

    could you please elaborate on what might be done regarding:
    "FPGA boot mode is not right" tx.

    I did not save logipi_blink.bit to flash using Xilinx, but the author Mike has done so.

    regarding verify:

    sudo ./xc3sprog -v -c ft232h flash-loader.bit
    ...
    Cable ft232h type ftdi VID 0x0403 PID 0x6014 dbus data 00 enable 0b cbus data 00 data 00
    Using Libftdi, Using JTAG frequency 1200000
    JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9
    Created from NCD file: top.ncd;UserID=0xFFFFFFFF
    Target device: 6slx9tqg144
    Created: 2015/07/23 09:33:41
    Bitstream length: 2724832 bits
    DNA is 0x792f566e1ebe62fe
    done. Programming time 2317.1 ms
    USB transactions: Write 177 read 8 retries 12

    sudo ./xc3sprog -v -c ft232h -I logipi_blink.bit
    ...
    Cable ft232h type ftdi VID 0x0403 PID 0x6014 dbus data 00 enable 0b cbus data 00 data 00
    Using Libftdi, Using JTAG frequency 1200000
    JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9
    JEDEC: 20 80 0x15 0x10
    Found Micron M25PE Device, Device ID 0x8015
    256 bytes/page, 65536 pages = 16777216 bytes total
    Created from NCD file: logipi_blink.ncd;UserID=0xFFFFFFFF
    Target device: 6slx9tqg144
    Created: 2015/04/09 10:39:52
    Bitstream length: 2724832 bits
    Erasing sector 6/ 6... Writing data page 1330/ 1331 at flash page 1330...
    Maximum erase time 639.8 ms, Max PP time 63983 us
    Verifying page 1331/ 1331 at flash page 1331
    Verify: Success!
    USB transactions: Write 12523 read 6929 retries 7187

     
  • jonathan chetwynd

    bridge JP6 to change FPGA boot mode.
    tx!
    ~:"
    have added pull request

    please close this support request

     

    Last edit: jonathan chetwynd 2015-07-24

Log in to post a comment.