Reply
Posts: 30
Registered: ‎09-12-2016

Unable To Connect To EFM8 Or Upload Code

Hi everyone,

 

I haven't connected any devices apart from my multimeter to my SLSTK2000A (EFM8UB1 kit) yet, but I have been tinkering with the sample code using the on-board LED.

 

I was using the Linux version of Simplicity Studio in Ubuntu 16.04 (Simplicity Studio 4). It was working fine one evening while I had it plugged in via the kit USB connector, and all of a sudden it wouldn't flash it anymore. I then plugged it into my laptop that runs Windows 10, and it won't work on that either.

 

The SLSTK2000A kit looks normal (the LCD displays the Silicon Labs logo, the blue LED to the left comes on, and the yellow LED to the left blinks like it usually does).

 

It detects it correctly when I use the 'Add Device' option, but it just won't upload the code.

 

I really hope it isn't permanently damaged. Robot Sad Thank you for your time...

 

EFM8 Flash Error.jpg

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Hello,

This may seem like a tedious step, but can you go to the Launcher and select the Devices tab.  From there select Refresh to see if the board is displayed once again.  After the board is detected and you highlight the top level J-Link as shown in the picture.  From there, go back to the IDE and select the Debug icon.  This should load the flash and start the debugger.  

 

2016-11-07 11_05_58-Launcher - SLSTK3401A_crypto_demo_Drivers_retargettextdisplay.c - Simplicity Stu.png

 

If it does not connect, can you then try going to the project settings and selecting the correct part (it was probably correct, but just trying it again).  Select the Board / Part / SDK as shown in the figure below and select the correct part.

2016-11-07 12_15_24-Properties for BRTC_Test.png

 

BR,

-c

 

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Hi, 

 

Thanks for your reply. I tried that, and it was set to the correct board, but the Universal Bee was not listed in the board options. The correct MCU was available in the MCU options list, though.

 

Board List.png

This is the error I get when trying to debug. 

Screenshot from 2016-11-07 16-40-21.png

 

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

I just let it try to install something that like firmware tools for the kit (it suddenly asked me if I wanted to download it), it said it failed, and now the kit can't be detected at all. The yellow LED I mentioned to the left no longer comes on. The LCD is now blank.

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Hello,

Have you tried to uplug and plug the USB connection to the PC after the failed download attempt? If so, does it try to download again and pass? 

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

I did, but it didn't try to download it again. I really hope to get it working again. Robot Sad
Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Try that and let me know if it recovers. 

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Is there any way to get it to try it again? I don't know how.
Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

From the launcher select to Change the adapter firmware.

2016-11-07 17_14_44-Launcher - EFM32GG_watch_demo_src_dma.c - Simplicity Studio ™.png

 

If that doesn't work please submit a support ticket so that we can determine if the board is bad.

 

http://www.silabs.com/support/Pages/default.aspx

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Thank you. Robot Happy It successfully reinstalled the adapter firmware and now the LCD/yellow LED are working again.

 

It still won't upload any code samples, though. 

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

That is good news.  Let's start from the beginning just to make sure.  Can you select the blinky example project and bring it into the IDE?  Try to build, download, and run the code to see if that basic project works?

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Yes, and I am now able to select the board in the project properties as you said to. 

 

I have now created the Blinky sample project, but I get the following error:

 

'Failed to connect to device
TCF error report:

Error text: No adapter found
Error code: 131073'

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

In the Launcher window can you go to your devices tab and select Refresh?  See if the debugger shows up there.  Highlight it and then go to the IDE and try to download?   If you can send a screen capture of the Device window that would be helpful too.

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Ok. It's giving me the same error.

 

Device Tab.png

 

Debug Error.png

Posts: 8,168
Registered: ‎08-13-2003

Re: Unable To Connect To EFM8 Or Upload Code

just some things

 

several problems akin to yours have been related to "somewhat fuzzy" USB hubs

several problems akin to yours have been related to laptops with insufficient USB power

 

try disconnecting as much as you can from the USB and insert the programmer directly in your PC

erik
Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Thanks.

 

I did that too. I have been using the kit USB connector to the left of the board, but not the other connector at the bottom of the board. Do I need to plug in both for this?

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Hello,

I see your SDK is at 4.0.1.  Can you try updating your Studio install for the SDKs and 8 bit devices just to make sure everything is the latest?  The latest SDK is 4.4.1.  Once updated, you may be prompted to update the board firmware again.  Go ahead and do that if needed.

 

BR,

-c

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Hello,

In addition to updating your install, can you look in the Studio installation directory for siagent log files? The files will be in ./developer/adapter_packs/efm8/ and named siagentefm8_log_<procid>.txt.  Please attach that and we will take a look at it.

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Ok, here are the SDK versions installed.

 

SDK Updates.png

There were several of the siagent files you mentioned, so I attached one from November 7.

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

I didn't see version 4.4.1 available for the EFM8 SDK, only for the Gecko one.

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Hello,

Sorry...that is correct.

 

Can you try and review the log output when starting the debug session?  To do this run:

 

tail –f /var/log/kern.log

 

from a command line.  That command will show the last 20-ish lines in the kern.log file.  As new log lines are written to the file, you will see them in the command window.

 

Attach the log file so we can review that as well?

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Hi, ok. 

 

nicholas@nicholas-CQ5715F:~$ tail –f /var/log/kern.log
tail: cannot open '–f' for reading: No such file or directory
==> /var/log/kern.log <==
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.564809] usb 3-2: new full-speed USB device number 2 using ohci-pci
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.739891] usb 3-2: New USB device found, idVendor=1366, idProduct=0105
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.739903] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.739911] usb 3-2: Product: J-Link OB
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.739917] usb 3-2: Manufacturer: Silicon Labs
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.739922] usb 3-2: SerialNumber: 000440041466
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.802574] cdc_acm 3-2:1.0: ttyACM0: USB ACM device
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.803117] usbcore: registered new interface driver cdc_acm
Nov 10 22:15:30 nicholas-CQ5715F kernel: [ 3463.803119] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Nov 10 22:16:57 nicholas-CQ5715F kernel: [ 3550.741076] usb 3-2: USB disconnect, device number 2
Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Sorry, I forgot to attach the log file. 

Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Thanks.  I have forwarded this log to the Studio team for them to look at.  I will post when I get a response.

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Thank you, I appreciate it. I just got my EFM8 a couple of months ago and would be really sad if I had to lose it so soon.

Posts: 8,168
Registered: ‎08-13-2003

Re: Unable To Connect To EFM8 Or Upload Code

did you ever connect to it?

erik
Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

No, it still isn't working. 

Posts: 8,168
Registered: ‎08-13-2003

Re: Unable To Connect To EFM8 Or Upload Code

No, it still isn't working. 

not what I meant.

did it work and stop working or did it never work

erik
Posts: 219
Registered: ‎05-05-2015

Re: Unable To Connect To EFM8 Or Upload Code

Hello,

We cannot tell what exactly is going on from the logs submitted, but it appears there is a disconnect message showing up for some reason.  We are trying to duplicate what you are seeing and will report back our findings.

 

BR,

-c

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

It used to work, but now it no longer does.

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

Ok, thank you.

Posts: 8,168
Registered: ‎08-13-2003

Re: Unable To Connect To EFM8 Or Upload Code

I do not know the erase utility for the EFM's but whichever erase utility there is should allow a full erase regardless of "able to connect"

 

if your previous workings have (accidentally) written to the protect region that is what you need.

erik
Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

I tried a full erase, but it failed.

Posts: 30
Registered: ‎09-12-2016

Re: Unable To Connect To EFM8 Or Upload Code

If it helps, the second (EFM8) USB connector wasn't plugged in. Just the kit connector. The power switch was set to AEM.

Posts: 3,144
Registered: ‎02-07-2002

Re: Unable To Connect To EFM8 Or Upload Code

Dummy reply to debug a forum issue that was noticed on this particular thread.