This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220MODA: UNIFLASH and DISCONNECTOR ERROR after 99% Programming

Part Number: CC3220MODA
Other Parts Discussed in Thread: UNIFLASH, CC3220SF,

Hi 

We are now using UNIFLASH in production to flash our product via a CC3220SF LAUNCHXL. This has worked fine during development  when using the Digital Certificate Playground. But since adding our DigiCert Certificate to the project to sign the code, programming fails if any other programs are open. If have to close everything, this includes chrome, skype and my email client (emClient). I reverted to the certificate playground and the disconnect error does not occur.

If I leave other programs open, I can program 100 times and there's about a 1% success rate. About 99% of the disconnect errors occur when programming has reached 99% and there is a pause. Sometimes I get a disconnect error at around 20%. 

Closing all the programs in Windows (i'm using Windows 10, i7 processor, 16GB RAM), the program completes successfully.

I'm using UNIFLASH version 6.1.0.2828.

Is it possible to slow down the baudrate, according to the manual the baud rate is 921600 baud. 

I am connecting as per below, and to repeat, I have no problems programming when using the certificate playground.

  • Hi Nick,

    Just a comment...

    I think production programming via Uniflash is not a best approach. Better is to prepaire .ucf file by uniflash and use Embedded programming.

    No. You can't slow baudrate because it is hardcoded in ROM bootloader.

    Jan

  • Hi Nick,

    I don't see the screenshot you attached. Keep in mind there is multiple ways to program our device in production and the best method depends on your production environment. 

    If you haven't seen already, apart from the embedded programming guide Jan linked we also have a production guide here. I'm not sure why you have such a low success rate with Uniflash. My guess is there is a HW problem. 

    Jesu

  • There are no issues when using Certificate Playground. I'm using the CC3220MODASF, there is very little I can do to the hardware, and again, I have no issues when running the certificate playground.

  • Yes, it looks like Uniflash is a dead duck.

    Oh , I didn't realise there was an alternative package to UNIFLASH, which used the same UART inputs. Thanks Jan.

  • Is the debug log from UNIFLASH which will explain the DISCONNECT ERROR.

  • Nick do you have anymore questions for us? Otherwise I will close thread.

    Jesu

  • You didn't really give any input on why I have an issue with UNIFLASH.  You don't seen concerned in the slightest. I will raise the issue with my direct support engineer at TI.

  • Hi Nick. I misunderstood the problem and I thought it was resolved. Let me do some digging and get back to you.

    Jesu

  • Also, I image you attached did not post correctly. Could you attach it again?

    Jesu

  • Hi Jesu

    The images don't help much. But attached some, just shows what I'm working with.

    The first image is the CC3220MODA fitted to my production board. the micro-match connector at the bottom of the connect is the connection for the UART to the CC3220SF LAUCHXL.

  • Nick, 

    I've never seen a "disconnect error" on Uniflash. Please provide a screenshot of Uniflash when the problem occurs. You should also make sure you have good connections from the programmer board to your custom board.

    Also, could you provide your certificate in a private message so that I can see the characteristics?

    Jesu

  • Very little information , as you can see. This happens after 99% upload.

    In this case , I'm using the standard CC3220SF LAUCHXL, programing the onboard CC3220SF (I am not connecting my external board). It still crashes.

    I will set my certificate in a private message.

    Cheers

    Nick

  • Hi Nick,

    Before you changed your certificate was the HW setup the same? This disconnect error on Uniflash is very generic. Have you tried testing this by programming a Launchpad instead of your HW?

    Uniflash is pretty good about reporting certificate errors.

    Jesu

  • Yes, my Hardware has remained unchanged.

    I have tried on Launchpad Hardware and this has the same error.

    Did you look at my certificates.

    Regards

    Nick

  • Hi Nick,

    I haven't seen such issue ever. I think this related to some other software (or some weird Group Policy at your computer).

    • do you use some 3rd party security antivirus / firewall at your computer?
    • what exact type of DigiCert code signing certificate do you use (what root and intermediate certificagte)? Because I use DigiCert code signing certificate without any issue.
    • do you have issue in case using Uniflash CLI?

    btw ... you are using Uniflash GUI at production programming? Because this not make me sense.

    Jan

  • Hi Jan

    Remember you helped me getting the certificate set up with my project.   

    I have the code signing certiciate from DigiCert.  ($499 USD).

    We don't have any group policy's set here.  The machine is a standard Win10 Pro.

    The machine is a DELL Optiplex 9020, i7 - 4470, 16GB RAM, Running SSDs

    We use ESET End Point Security for antivirus and firewall. I have full administrator rights.

    I have not used Uniflash CLI yet. 

    We are a low volume manufacturer, at the moment samples units for trails are being tested by me. I do expect to move to the CLI at some point. 

  • Hi,

    Yes, this certificate should be OK. Can you try with deactivated antivirus?

    Also you have options which you can try:

    • Uniflash CLI
    • Embedded prgoramming

    Jan

  • Hi Jan

    Already tried disabling ESET and it make no difference.

    Yes, I will try out the CLI.  

    Embedded programming is not an option at the moment, the pins for the FLASH are not accessible.  I get the CC3220MODA could be programmed on a bed of nails before soldering, but that would be painful for our subcontractor.

    If there no debug information from UNIFLASH GUI, to say what might be failing. When I gets to 99%, I guess that module is encrypting the files loaded with the certificate? 

    Regards

    Nick

  • Hi Nick,

    No. Embedded programming is possible via UART. Embedded programming is pretty simple to use. I am not sure why you not tried it yet. Becasue I am almost 100% sure that this will work properly.

    After 99% stage is uploaded image unpacked and filesystem is created. At your case it fall into some general exception when internal API /api/1/flash/getProgStatus is used. I am not sure what is going on.

    Jan

  • Hi Jan and Jesu.

    I have contacted directly with my support engineer in the UK, and we went through the issues. 

    CLI programming is working fine, no errors were detected at any time.

    We also used command prompt and this also works fine.

    The TI engineer is going to investigate the issue with UNIFLASH GUI. He thinks the auto-scanning agent when uniflash opens to detect the hardware is grabbing the serial port in the background during programming.

    Thanks for your help

    Regards

    Nick