Programming EFM8 Busy Bee - Page 1
Forum section: electronics / general

author: c64
author_rank: Frequent Contributor
timestamp: October 20, 2021, 07:22:20 am
content: To anyone who has experience with them. If I only have computer and usb-uart adapter, is it enough to program a EFM8 ?

author: c64
author_rank: Frequent Contributor
timestamp: October 20, 2021, 07:31:19 am
content: I don't have any development board

author: wraper
author_rank: Unknown
timestamp: October 20, 2021, 07:46:38 am
content: If datasheet says that particular chip has an UART bootloader then yes. Just be aware to read an ERRATA. EFM8 datasheets had claimed a bootloader, but there was none in some earlier revisions. And if you have a chip with older date code, it may not have a bootloader. If you are going develop with it, I suggest getting a dev board which also can be used as a programmer or a standalone programmer, they are not that expensive. Otherwise you won't have an ability to debug.

author: mon2
author_rank: Frequent Contributor
timestamp: October 20, 2021, 08:23:42 am
content: See attached.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 20, 2021, 07:08:44 pm
content: Quote from: c64 on October 20, 2021, 07:22:20 amJust check the part you have, has the UART bootloader installed and you will be ok. (some have i2c and some have USB boot loaders)You then pull a pin low at RST exit, to enter the bootloader and use SiLabs SW to download.Quote from: c64 on October 20, 2021, 07:31:19 amYou could look at BB52-EK2701A etc which is in the $10 ballpark, and those DEBUG included boards let you bring up code without needing a target PCB, and they also have good debug views of RAM and XRAM and SFR registers that explain what settings the device has.ie you run to a break point past INIT code, and then view the SFRs

author: Bassman59
author_rank: Super Contributor
timestamp: October 20, 2021, 11:51:22 pm
content: Quote from: c64 on October 20, 2021, 07:22:20 amI have the Silicon Labs USB programming dongle and I use that.

author: c64
author_rank: Frequent Contributor
timestamp: October 21, 2021, 03:59:31 am
content: The cheapest dev board I found is EFM8BB1LCK. Can it be used for debugging?

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 21, 2021, 05:07:59 am
content: Quote from: c64 on October 21, 2021, 03:59:31 amYes, that board includes a debugger, but keep in mind the EFM8BB1 is a rather simpler part than the EFM8BB52, and the BB1 has less Vcc range.EFM8BB52 is 5V and 50MHz, with DAC and CLU

author: Bassman59
author_rank: Super Contributor
timestamp: October 21, 2021, 04:14:49 pm
content: Quote from: c64 on October 21, 2021, 03:59:31 amI don't know. Did you read the documentation that came with the board?

author: mon2
author_rank: Frequent Contributor
timestamp: October 22, 2021, 09:50:31 pm
content: Attached.

author: c64
author_rank: Frequent Contributor
timestamp: October 23, 2021, 03:34:24 am
content: Board documentation says it can be used for debugging. It's not very clear if it can only be used for debugging of the microcontroller on the board, or external one as well?

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 23, 2021, 04:20:31 am
content: Quote from: c64 on October 23, 2021, 03:34:24 amThere is no native external debug connector, but if you are good with a soldering iron, it is possibleSCH shows the normally-bridged solder blobs J10,J12 are the C2D debug access, so you need to un-bridge at least the DBG_C2CK and access the Host MCU side, to connect you your external board.Or, you can remove the fitted EFM8BB1 and dedicate a board for external debug.

author: Bassman59
author_rank: Super Contributor
timestamp: October 24, 2021, 06:12:16 pm
content: Quote from: c64 on October 23, 2021, 03:34:24 amIf you intend to build products based on the micro, really, don't fuck around with trying to bodge wires onto an eval board so you can use it as a debugger. Spend $35 on thenice dongleand be done with it. It's not like you're trying to save $400 on a Segger J-Link by reusing an eval board as a programmer.

author: cstratton
author_rank: Regular Contributor
timestamp: November 01, 2021, 05:04:39 pm
content: Given the common use of this MCU in RC model / drone brushless speed controllers, people have figured out ways to improvise programming interfaces out of common on-hand objects, like an Arduino board.One quickly found example, no idea if it's the best one to be using:https://github.com/conorpp/efm8-arduino-programmer

author: Bassman59
author_rank: Super Contributor
timestamp: November 01, 2021, 07:54:04 pm
content: Quote from: cstratton on November 01, 2021, 05:04:39 pmWhy would you spend time screwing around with an Arduino Mega when the SiLabs dongle costs less and works out of the box with their development tools?

author: cstratton
author_rank: Regular Contributor
timestamp: November 02, 2021, 02:06:55 am
content: Because you already have one on-hand and that's the what the instructions for the pre-compiled ESC firmware you're trying to flash suggests?FYI it works with an Uno, too.I mean, there's a role for dedicated tools, and there's also a role for versatile solutions that use things most of us already own.It so happens I bought a toolstick once upon a time, but for the past decade all I've been able to find is the relatively useless target half of it, the useful USB half hasn't been since in 3 moves But an Arduino? That's in my hand pretty darn quick.