I am avaluating the EFM8LB12 with the UG126: EFM8LB1-SLSTK2030A DevKit. Everything works fine with the standard USB onboard debugger. Now I would like to use the Kit battery powered and use the SiLabs USB Debugger. The board shows up with the sample I programmed with the onboard USB but I am not able to connect via C2 interface on SiLabs USB Debugger connected to J103 (upper right corner) as is described in the User Guide.
Can someone help and tell me what I am doing wrong?
Do you still have problem if you connect the STK USB port to the host or a power adapter, in the mean time set the debug mode as 'IN'.
What's your purpose to try this configuration?
I don't study this in depth, you may read the schematic of STK to see if the C2 signal (on J103) still could route to C2CK and C2D of EFM8LB12, as far as I know there are some analog switch on the board to control how to route the J103 Signal to EFM8LB C2 pin.
Sorry, it's my fault, I agree with Brian.
On my side I have tried to connect the USB port to a USB host, in the meantime insert a battery and put the switch to 'AEM' position.
the debug/programming ( UDA) works both when set the debug mode as 'IN' and 'MCU'.
You can try Brian's suggestion.
I tried out your suggestions. I switched the Debug Mode to OFF. After that I changed to a clean workspace and this restarted SimplicityStudio. I selected the target part to EFM8LB12F64E-B-QFN32 which is listed in the BOM I downloaded from SiLabs support.
Now I created a new Silicon Labs MCU Project with 4.1.6 8051 SDK and an empty C program. Name it the default: emptyProject.
Building runs with no error. Supply switch is set to BAT. The USB Debug adapter in connected to J103. Run -> Debug gives me an error message (see attached .PNG)
So I I switched back to onboard debugger. That one does the job.
So it seems that the board can not be debugged when in battery mode.
Thanks for help, Harald
I am wondering why you need to use the Battery mode to debug the device on the STK. What is the target/purpose you pursue to get with this mode?
Hi. This I would like to try to see my USB Debug Adapter ist doing his job. As far I do not see the statment below is right. This is only a part of my evaluation of EFM8 Laser Bee. No real need and I think I forget it because it is not possible. I will use the EMF8 without evaluation board in a test enviroment.
I could reproduce your issue sometimes (sometimes I could erase the device).
I tried below rework, and it could program the EFM8LB on the STK with UDA+Flash programmer.
1. set debug "OFF".
2. Disconnect the STK from USB host. the mini-USB was not connected to host.
3. switch in AEM position.
4. battery inserted.
5. UDA connected on the 3 pin connector on the top-right side of the STK.
6. remove the R1056.
I don't have time to dig into the root cause.
Thanks for answer. For me also unclear.