SparkFun ATMEGA32U4 Breakout 编译流程

源码地址:
https://github.com/sparkfun/32U4_Breakout_Board
下载之后,得到文件:32U4_Breakout_Board-master.zip
解压之后,得到文件夹:
这里写图片描述

首先看一下:
README.md

ATMEGA32U4 Breakout Board
=========================

[![ATMEGA32U4 Breakout](https://dlnmh9ip6v2uc.cloudfront.net/images/products/1/1/1/1/7/11117-01a_i_ma.jpg) 
*ATMEGA32U4 Breakout Board (DEV-11117)*](https://www.sparkfun.com/products/11117)

This breakout board is designed for folks who would like to program outside of the Arduino IDE. THe board
comes preloaded with the LUFA CDC bootloader, allowing code to be built in WinAVR and program the board over USB
using AVRDUDE. 

Repository Contents
-------------------
* **/Bootloaders** - CDC bootloader and instructions for installation
* **/Examples** - Example code for the board
* **/Hardware** - All Eagle design files (.brd, .sch)
* **/LUFA** - Instructions for setting up the LUFA bootloader


License Information
-------------------
The hardware is released under [Creative Commons Share-alike 3.0](http://creativecommons.org/licenses/by-sa/3.0/).  
All other code is open source so please feel free to do anything you want with it; you buy me a beer if you use this and we meet someday ([Beerware license](http://en.wikipedia.org/wiki/Beerware)).

Notes for Installation
----------------------
This directory contains the bootloader and example source files for
Sparkfun's 32u4 Breakout board. Both were built on WinXP sp3 with
WinAVR-20100110 and AVRDUDE 5.10.

The bootloader is a modified LUFA-130303 CDC bootloader.

The bootloader directory contains the source and hex file for the bootloader
that ships with this board.  When you first plug in the board to a Windows
machine, it will ask you for a driver.  Point it to the following directory:
\SFE_32U4_Breakout_Board\Bootloaders\CDC
It will find the driver file (LUFA CDC Bootloader.inf) there.

Once your machine recognizes the Virtual COM port, you're ready to take a
look at the examples and try uploading them to your board. See the readme in
the examples directory for more information.

Before you can build any projects, you'll need to download and install
WinAVR if you're using Windows. It can be found [here](http://sourceforge.net/projects/winavr/files/). 

Linux Users
-----------
You will need to install the following packages:
* **avr-gcc** - A port of the GNU C compiler to the AVR Architecture
* **avr-binutils** - Converts the object code into AVR-readable hex files
* **avr-libc** - AVR Library for stuff like accessing and manipulating registers
* **avrdude** - The software that actually drives the physical programming

其中的重点是:

32U4_Breakout_Board-master\LUFA\目录下面只有一个readme.txt文件
文件内容为:


                   _   _ _ ___ _
                  | | | | | __/ \
                  | |_| U | _| o | - The Lightweight USB
                  |___|___|_||_n_|    Framework for AVRs
                =========================================
                          Written by Dean Camera
                  dean [at] fourwalledcubicle [dot] com

                         http://www.lufa-lib.org
                =========================================

               LUFA is donation supported. To support LUFA,
             please donate at http://www.lufa-lib.org/donate

                For Commercial Licensing information, see
                     http://www.lufa-lib.org/license

Notes from SparkFun:

In order to compile the modified LUFA bootloader, or the Virtual Serial
example for your Sparkfun 32u4 Breakout Board, follow these instructions:

1. Download the LUFA Project, version 130303,  version 120219 for VirtualSerial

Visit http://www.lufa-lib.org, then download LUFA-130303.zip

Alternatively, use the following official link to the file:
lufa-lib.googlecode.com/files/LUFA-130303.zip

2. Extract the zip file somewhere on your computer.

3. Copy the contents of the 'LUFA' folder from the zip to this folder.

The folder should be in the main directory:
\LUFA-130303\LUFA

Copy everything in that folder to this one where this readme resides:
\SFE_32U4_Breakout_Board\LUFA

4. ???

5. Profit!

You can now compile the Sparkfun modified LUFA bootloader and the Virtual
Serial demo found in the following locations respectively:
\SFE_32U4_Breakout_Board\Bootloaders\CDC
\SFE_32U4_Breakout_Board\Examples\Sparkfun-VirtualSerial

Enjoy!!





Also, a note about other examples included with the LUFA download:

LUFA includes all sorts of other examples too but they need their makefiles 
to be customized to work for the 32u4 processor and their driver files 
(.inf files and Descriptors.c) to be customized for Sparkfun's 32u4 Breakout
Board. More specifically, you will have to change the VID and PID in those 
files for them to work with this specific board, so just a heads up.

按照两个文件的指示:
需要从:
http://www.fourwalledcubicle.com/LUFA.php
下载两个版本的LUFA:
lufa-LUFA-130303.zip 和lufa-LUFA-120219.zip
分别解压这两个压缩包,每个压缩包中有一个LUFA文件夹
内容如下所示:
这里写图片描述

编译:Bootloaders\CDC

32U4_Breakout_Board-master\Bootloaders\CDC的时候,

删除
32U4_Breakout_Board-master\LUFA
目录下所有内容,

将lufa-LUFA-130303\LUFA 中的所有文件拷贝到:
32U4_Breakout_Board-master\LUFA目录下

然后DOS CMD模式进入 32U4_Breakout_Board-master\Bootloaders\CDC 目录下,执行
make make clean

编译:Examples\Sparkfun-VirtualSerial

32U4_Breakout_Board-master\Examples\Sparkfun-VirtualSerial

删除
32U4_Breakout_Board-master\LUFA
目录下所有内容

将lufa-LUFA-120219\LUFA 中的所有文件拷贝到:
32U4_Breakout_Board-master\LUFA目录下

然后DOS CMD模式进入32U4_Breakout_Board-master\Examples\Sparkfun-VirtualSerial目录下,执行
make make clean

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
什么比羽毛小但比饰品大? 这是一个ItsyBitsy! 体积小,功能强大,与Arduino兼容 - 当您需要非常紧凑的东西但仍然带有一堆引脚时,这个微控制器板非常完美。 ItsyBitsy 32u4只有1.4英寸长,0.7英寸宽,但有6个电源引脚,6个模拟和数字引脚以及17个数字引脚。 它包含与Arduino UNO相同的功能。 一旦你在一个更大的Arduino上完成了一个原型,并希望让项目更小,那就太棒了。 ItsyBitsy 32u4使用的是Atmega32u4芯片,它与Arduino Leonardo中的核心芯片以及我们在羽毛32u4中使用的芯片相同。 5V 16 MHz它以与Arduino UNO或Leonardo相同的速度和电压运行。 3V 8 MHz版本的速度和电压与羽毛32u4相同。所以你会很高兴地听到,不仅像你已经设置的那样使用Arduino IDE可以对Itsy Bitsy进行编程,而且大量的Arduino项目都可以开箱即用! 我们建议将此作为Pro Trinkets的升级,因为它具有原生USB,因此它可以与所有计算机,USB串行调试和更可靠的引导加载程序一起使用。你甚至可以在这块板上使用Pro Trinket LiPo背包来增加可充电电池。 这里有一些方便的规格: 采用QFN封装的ATmega32u4 onboad芯片 USB Bootloader带有漂亮的LED指示灯,兼容AVR109(与Flora,Feather 32u4,Leonardo等相同) 用于电源,USB上传和调试的Micro-USB插孔,您可以将其放入盒子或带上,并在需要重新编程时使用任何Micro USB线。 可以充当USB HID键盘,鼠标,MIDI或普通USB'CDC'串行设备(默认) 通过USB或外部输出(如电池)为VBAT引脚供电 - 它将自动切换 板载红色引脚#13 LED 23个GPIO总计 - 6个模拟输入,1个SPI端口,1个I2C端口,1个硬件串行端口和10个GPIO,其中4个具有PWM 可以驱动NeoPixels,连接传感器,伺服器等。 重置按钮,用于进入引导加载程序或重新启动程序。 对于5V版本: 5V电源和逻辑,16MHz时钟速率,2KB RAM和28K FLASH 板载5.0V电源稳压器,具有150mA输出能力和超低压差。高达16V输入,反极性保护,热和电流限制保护。 芯片的低电流3.3V稳压器输出,适用于小型传感器 对于3V版本: 我们在这块电路板的3V版本上有两个特殊引脚。有一个VHigh引脚,这个引脚是一个电源引脚,其电压是VBAT和VUSB中较高的一个。我们还在这块电路板上制作了数字#5引脚,它连接到电平转换器,因此它只是一个输出,但输出是“高逻辑”。基本上这意味着如果你想从这块电路板驱动NeoPixels,挑剔伺服或高压差LED,你想要一个5V逻辑电平输出,你应该使用这个引脚! 3.3V电源和逻辑,8 MHz时钟速率,2KB RAM和28K FLASH 板载3.3V电源稳压器,具有500mA输出能力和超低压差。高达6V输入,反极性保护,热和电流限制保护。 特殊的Vhigh输出引脚为您提供VBAT或VUSB的更高电压,用于驱动NeoPixels,伺服器和其他大电流器件。数字5电平转换输出,用于高压逻辑电平输出。 一旦安装了接头,它们就可以安装在0.6“宽的插座中。 PCB截图如下:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值