EFM32

来自Jack's Lab
2019年10月28日 (一) 21:48Comcat (讨论 | 贡献)的版本

跳转到: 导航, 搜索

目录

1 Overview

EFM32HG:

  • ARM Cortex-M+ @ 25 MHz
  • Crystalless USB w/ built-in 3.3V regulator for minimal part count
  • 64/32 kB flash, 8/4 kB RAM
  • Capacitive touch sensors
  • Super low-power



2 QuickStart



3 OpenOCD

Windows:


 ../../../nodetao/toolchain/openocd/bin/openocd.exe -f interface/stlink.cfg -f aet1-flash.conf




4 ARDUINO_EFM32

Build message:


<br><br>

== Basic ==

* 刷入一个 Bootloader --- [https://github.com/im-tomu/toboot toboot]
* 使用 [https://github.com/arduino/dfu-utils-cross dfu-utils] 从 USB 口刷入固件程序...
* arduino core: https://github.com/todbot/ArduinoCore-EFM32

<br>

=== Flashing the toboot ===

Brand-new EFM32HG will not have Toboot installed. Instead, they might have the SiLabs AN0042 bootloader.

The recommend way to load the bootloader onto a Chip is using a Raspberry Pi with OpenOCD. Instructions for doing this can be found in the [https://github.com/im-tomu/toboot/tree/master/openocd openocd] directory. You need OpenOCD version 0.10.0 or later to have EFM32HG support.

Tomu can be powered using the 3.3V pin, so you can create a sort of "programming wand" by bringing 3.3V, GND, SCK, and SIO out to a 0.1" header, running openocd in a loop, and touching the programming pins on the side of a Tomu board. The process only takes a few seconds, so contact doesn't have to be great.

<br>

=== Install dfu-util ===

The dfu-util suite of programs is used to talk to Toboot

'''Ubuntu and Debian'''

  sudo apt-get install dfu-util

Create /etc/udev/rules.d/10-tomu.rules and populate it with the following:

  ATTRS{idProduct}=="70b1", ATTRS{idVendor}=="1209", MODE="777"
  (Note: you can give it a more restrictive mode if you also give it a group that you’re in)


'''Windows'''

Download dfu-util-static.exe from the dfu-util repository and rename it to dfu-util.exe. Place it somewhere in your $PATH for convenience. To build examples, you’ll also want to get dfu-suffix.exe and put it in your $PATH.


'''Mac'''

Install Homebrew and run:

  brew install dfu-util

<br>
<br><br>
<br><br>
个人工具
名字空间

变换
操作
导航
工具箱