Mach XO2 256HC Programming Failing - EEVblog

EEVblog Electronics Community Forum A Free & Open Forum For Electronics Enthusiasts & Professionals Welcome, Guest. Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length This topic This board Entire forum Google Bing
  • EEVblog Electronics Community Forum »
  • Electronics »
  • Microcontrollers »
  • Mach XO2 256HC programming failing
« previous next »
  • Print
  • Search
Pages: [1] Go Down

Author Topic: Mach XO2 256HC programming failing (Read 7325 times)

0 Members and 1 Guest are viewing this topic.

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Mach XO2 256HC programming failing
« on: February 23, 2019, 06:14:51 pm » Made a test breakout board for LCMXO2-256HC-4SG32 (QFN 32)Cannot program it, the programmer is failing with the following:Loading logical preference informationFinish loading logical preference fileLoading logical design informationFinish loading logical design informationStarting: "pgr_program run"INFO - Check configuration setup: Start.INFO - JTAG Chain Verification. No Errors.INFO - Check configuration setup: Successful.INFO - Device1 LCMXO2-256HC: FLASH Erase,Program,VerifyERROR - function CHECK_SECURITY_PROTECT_KEYERROR - Process Operation Failed.INFO - Elapsed time: 00 min : 00 secERROR - Operation: unsuccessful.ERROR: pgr_program failed.ERROR - Programming failed.I've added a 4.7K pulldown to TCK, also connected TDO, TDI and TMS.Is it just bad soldering or bad chip?I'm new to soldering QFN packages. Used drag soldering with a gel flux (Flux Plus NC)First soldered the exposed pad with solder paste and hot air, then applied flux and drag soldered the pads.Kind of difficult to check electical connections to the pads with this type of package :(There seems to be no shorts from my continuity testing.Any other diagnostics in Diamond to tell if the device is properly connected except trying to run the programming? * Still006.jpg (512.26 kB, 1600x1200 - viewed 457 times.) « Last Edit: February 23, 2019, 07:52:32 pm by Axk » Logged

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #1 on: February 23, 2019, 07:53:23 pm » I tried running the programming without the TCK pin connected and it gave a different error:Device#1 LCMXO2-256HC: Failed to verify the ID (Expected: 0x012B8043 Read: 0xFFFFFFFF).ERROR - Check configuration setup: Unsuccessful.ERROR: pgr_program failed.ERROR - Programming failed.Does it mean the JTAG connection is fine? Logged

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #2 on: February 23, 2019, 09:40:34 pm » Tried soldering 3 chips now.The first one was giving me this CHECK_SECURITY_PROTECT_KEY error.The second one was giving Device#1 LCMXO2-256HC: Failed to verify the ID (Expected: 0x012B8043 Read: 0xFFFFFFFF).so I suppose I baked the second one.The third one is giving me the CHECK_SECURITY_PROTECT_KEY.So probably this is not my soldering that is causing this. Logged

Offline tsman

  • Frequent Contributor
  • **
  • Posts: 599
  • Country: gb
Re: Mach XO2 256HC programming failing
« Reply #3 on: February 23, 2019, 10:04:28 pm » Where did you get these parts? Are they new? It sounds like it is complaining about the security bits which prohibit reading or programming. There is a OTP bit that permanently blocks reading or programming. Logged The following users thanked this post: Axk

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #4 on: February 23, 2019, 10:07:40 pm » From Alibaba from China.A lot of hastle and additional expense to order from Digikey and such where I live.Not 100% they are new, but look new. Logged

Online TimCambridge

  • Regular Contributor
  • *
  • Posts: 98
  • Country: gb
Re: Mach XO2 256HC programming failing
« Reply #5 on: February 24, 2019, 01:28:56 am » Verify ID is OK, so the JTAG chain is working.Working from memory.... now you need to read the "FEABITS" - that should tell you whether the part has been locked - what Lattice call "myASSP." Try a programmer command that's something like "verify the feature bits". Logged The following users thanked this post: Axk

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #6 on: February 24, 2019, 05:34:36 pm » Trying to find the programmer software that supports reading these bits.The diamond progammer doesn't appear to have this option.A KB article http://www.latticesemi.com/en/Support/AnswerDatabase/4/1/0/4104 refers to using the ispVM programmer, but I cannot find a version that supports MachXO2 devices. Logged

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #7 on: February 24, 2019, 09:32:59 pm » An older version of diamond programmer software kind of works, it doesn't give any errors and the part reacts to the programming.But it doesn't see the clock input for some reason.The same basic design works fine in an RTL simulation. « Last Edit: February 25, 2019, 09:30:10 am by Axk » Logged

Offline Sarcarean

  • Contributor
  • Posts: 36
  • Country: us
Re: Mach XO2 256HC programming failing
« Reply #8 on: February 27, 2019, 10:06:34 am » If you have access to an ATMEGA32U2, you can use the SVF_Player.fcs script/software to program the MachXO2 using JTAG mode. The SVF player was updated last month to support all of the Lattice devices. Logged

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #9 on: March 15, 2019, 06:47:16 pm » Ordered the same part from arrow.The same programming error...This must be me then, but what am I doing wrong then if the JTAG chain works...?My lattice programmer from ebay maybe? (works fine with LCMXO2-1200HC-TG144C) « Last Edit: March 15, 2019, 06:49:03 pm by Axk » Logged

Online TimCambridge

  • Regular Contributor
  • *
  • Posts: 98
  • Country: gb
Re: Mach XO2 256HC programming failing
« Reply #10 on: March 16, 2019, 03:04:24 am » Check that you don't have something active connected to the DONE, INIT, Sn, JTAGENB, etc. pins. The bug could be something that becomes active when the part is programmed - OK at the start when all the FPGA outputs are inactive and floating weakly high, bad when the outputs go active. Logged

Offline ale500

  • Frequent Contributor
  • **
  • Posts: 415
Re: Mach XO2 256HC programming failing
« Reply #11 on: March 16, 2019, 06:27:59 am » Could you please post the schematic and some board layout pictures, maybe there is something wrong with the schematic itself. These chips have several VCC PINS did you connect them all ? Logged

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #12 on: March 16, 2019, 11:23:06 am » I did skimp on some of the recommended pull-up and pull-down resistors that I had used in the LCMXO2-1200HC-4TG144C board.But I've added these exteranally and still getting the same result.I've just re-checked the VCC and ground pins and they appear to be fine.Attached is the portion of the schematic that is related to the programmer. * JTAG_Programmer_Section.PNG (23.33 kB, 697x389 - viewed 644 times.) « Last Edit: March 16, 2019, 12:38:42 pm by Axk » Logged

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14462
  • Country: gb
    • Mike's Electric Stuff
Re: Mach XO2 256HC programming failing
« Reply #13 on: March 17, 2019, 10:45:32 am » Which programmer are you using? With the Lattice USB programmer I always had to add about 22-33pf from TCK to ground for it to work, on multiple different FPGA familiess Logged Youtube channel:Taking wierd stuff apart. Very apart.Mike's Electric Stuff: High voltage, vintage electronics etc.Day Job: Mostly LEDs The following users thanked this post: Axk

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #14 on: March 17, 2019, 02:06:49 pm » Quote
Which programmer are you using?
A USB programmer from ebay, labeled and detected by the Diamond programmer as HW-USBN-2AI've tried adding a 33pf from TCK to ground (on an external breadboard) and it is still failing with the same "ERROR - function CHECK_SECURITY_PROTECT_KEY"This same programmer works fine with LCMXO2-1200HC-TG144C.Maybe I should try a different programmer... « Last Edit: March 17, 2019, 02:10:15 pm by Axk » Logged

Online TimCambridge

  • Regular Contributor
  • *
  • Posts: 98
  • Country: gb
Re: Mach XO2 256HC programming failing
« Reply #15 on: March 17, 2019, 06:15:27 pm » Quote from: Axk on March 16, 2019, 11:23:06 am
I did skimp on some of the recommended pull-up and pull-down resistors that I had used in the LCMXO2-1200HC-4TG144C board.But I've added these exteranally and still getting the same result.I've just re-checked the VCC and ground pins and they appear to be fine.Attached is the portion of the schematic that is related to the programmer.
The programmer that you have is usually realiable.You need to give us more of the schematic, a snip isn't enough. Logged The following users thanked this post: Axk

Offline AxkTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: by
Re: Mach XO2 256HC programming failing
« Reply #16 on: March 17, 2019, 08:49:24 pm » D'oh!It works now.2 aspects:1. The programming doesn't work with the latest version of the diamond programmer (3.10.3.144), it gives this weird "function CHECK_SECURITY_PROTECT_KEY" error (I guess this is because the cable needs a firmware update, the only info I've found on Security Protect Key is that it's a feature of the Lattice XO3 family)2. An older version of the Diamond programmer (3.8.0.115.3) does work, it was my bad soldering :( I soldered the JTAG "pins" correctly, but the "pins" I was trying to blink the test LEDs with were not soldered properly (or maybe the power "pin" for the bank)Takeaway - when hand-soldering QFN packages make sure to apply as much solder as possible and still doesn't short the "pins" (also make the pads longer so that you have room for the soldering iron to apply solder).I didn't use the capacitor between TCK and ground (but will provision for it in my future boards just in case).The JTAG pins connected in my case are: TDI, TDO, TCK (with a 4.7K pulldown) and TMS « Last Edit: March 17, 2019, 08:58:04 pm by Axk » Logged

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14462
  • Country: gb
    • Mike's Electric Stuff
Re: Mach XO2 256HC programming failing
« Reply #17 on: March 17, 2019, 11:00:14 pm » Quote from: Axk on March 17, 2019, 08:49:24 pm
I didn't use the capacitor between TCK and ground (but will provision for it in my future boards just in case).
This is specific to the LAttice USB programmer, which may have been fixed as it's a pretty old unit, so I wouldn't bother, as it may cause issues with other programmers - put it on the programmer instead if it's an issue Logged Youtube channel:Taking wierd stuff apart. Very apart.Mike's Electric Stuff: High voltage, vintage electronics etc.Day Job: Mostly LEDs

Online TimCambridge

  • Regular Contributor
  • *
  • Posts: 98
  • Country: gb
Re: Mach XO2 256HC programming failing
« Reply #18 on: March 18, 2019, 11:08:02 am » Quote from: Axk on March 17, 2019, 08:49:24 pm
D'oh!1. The programming doesn't work with the latest version of the diamond programmer (3.10.3.144), it gives this weird "function CHECK_SECURITY_PROTECT_KEY" error (I guess this is because the cable needs a firmware update, the only info I've found on Security Protect Key is that it's a feature of the Lattice XO3 family)
Though it may have been fixed via updates, I haven't had luck with Diamond 3.10. I'm still on 3.9, plus 2.0 for some stuff that got removed in the 3.x releases. Logged
  • Print
  • Search
Pages: [1] Go Up « previous next »

Share me

Digg Facebook SlashDot Delicious Technorati Twitter Google Yahoo Smf
  • EEVblog Electronics Community Forum »
  • Electronics »
  • Microcontrollers »
  • Mach XO2 256HC programming failing
There was an error while thanking Thanking...
EEVblog Main Site EEVblog on Youtube EEVblog on Twitter EEVblog on Facebook EEVblog on Odysee
  • SMF 2.0.19 | SMF © 2021, Simple MachinesSimple Audio Video EmbedderSMFAds for Free Forums | Powered by SMFPacks Advanced Attachments Uploader Mod
  • XHTML
  • RSS
  • Mobile
  • Mobile
  • WAP2

Từ khóa » Xo2-256