2018.7.9 AVR-BAT program
I had some problems programming the produced . Here is what worked well for me:
------------------------
1. Install Atmel Studio 7.0
2. Launch Atmel Studio 7.0 Command Prompt
3. Make sure that you do not have a CU connected to the RU.
4. Connect AVRISP mkII to RU/jig.
5. Find serial number of AVRISP mkII:
atprogram list
Output:
simulator No serialnumber found
atmelice J41800030546
avrispmk2 000200173037 <---- serial
6. Program eeprom:
atprogram -s <programmer_serial> -i ISP -d attiny44a program --eeprom --format ihex --file HPRU_hex_eeprom.a90 --verify
Output:
Firmware check OK
Programming and verification completed successfully.
7. Program flash:
atprogram -s <programmer_serial> -i ISP -d attiny44a program --flash --format ihex --file HPRU_hex_flash.a90 --verify
Output:
Firmware check OK
Programming and verification completed successfully.
8. Set fuses
atprogram -s <programmer_serial> -i ISP -d attiny44a write -fs --values E2DDFF --verify
Output:
Firmware check OK
Verification of write OK
Write completed successfully.
9. Set lockbits
atprogram -s <programmer_serial> -i ISP -d attiny44a write -lb --values FC --verify
Output:
Firmware check OK
Verification of write OK
Write completed successfully.
10. Connect cu with ru-test software to perform automatic testing.
That's it.
TROUBLESHOOTING
If you get output like the following:
Firmware check OK
[ERROR] Could not establish connection to device. Please check input parameters, hardware connections, security bit, target power, and clock values.
Failed to enter programming mode. Error received from tool:
Connection failed on the data line (MOSI)
Connection failed on the reset line
Connection failed on the clock line
Target connector seems to be reversed. (TCF Error code: 1)
You might have forgotten to disconnect the test-CU.
--
If the atprogram.exe command does not work, you can try to connect using Atmel Studio 7.0.
Start the program, go to the Tools menu and click "Device Programming".
Select Tool=AVRISP mkII, Device=ATtiny44A, Interface=ISP, click Apply, then Read device signature
and target voltage.
Another useful command may be
atprogram -s 000200173037 -i ISP -d attiny44a info
with output like the following
Firmware check OK
Tool avrispmk2 has firmware version: 01.18
Target voltage: 3.30 V
Device information:
Name: attiny44a
JtagId: N/A
Revision: A
CPU arch.: AVR8
Series:
Memory Information:
Address Space StartAddress Size
prog 0x0 0x1000
signatures 0x0 0x3
fuses 0x0 0x3
lockbits 0x0 0x1
data 0x0 0x160
REGISTERS 0x0 0x20
MAPPED_IO 0x20 0x40
IRAM 0x60 0x100
eeprom 0x0 0x100
io 0x0 0x40
osccal 0x0 0x1
Signature: 0x1e9207
OscCal: 0x8b
Lockbits: 0xff
Fuses:
EXTENDED (0b11111111):
SELFPRGEN OFF
HIGH (0b11011101):
RSTDISBL OFF
DWEN OFF
SPIEN ON
WDTON OFF
EESAVE OFF
BODLEVEL 0x5
LOW (0b11100010):
CKDIV8 OFF
CKOUT OFF
SUT_CKSEL 0x22
2018.7.9 AVR-BAT program的更多相关文章
- 2018.8.10 programming bat based on python
@echo off REM Current DevProg Version. Match the pip package version (x.y.z)SET currentversion=0.4.0 ...
- AVR Programming Methods
AVR Programming Methods There are many ways to program AVR microcontrollers. Since many people ask ...
- BAT特殊字符(转)
BAT特殊字符1. 点 与echo连用,作用是换行 示例1 [输出空行] echo. 2 > 定向符[输出] 将命令的输出进行重定向 [一般用于将结果写入文件] 注意 nul 为空设备 > ...
- Cannot find `aapt.exe`. Please install the Android SDK Build-tools package
Google has updated their SDK tools ("Android SDK Tools" Rev. 23) in a way that also requir ...
- call
-------siwuxie095 call 调用另一个批处理程序或自身程序段,调用完,程序会回到原来 call 的地方继续执行 如果在脚本或批处理文件外使用 call,则不会在命令行起作用 语法 c ...
- Xamarin studio配置问题
最近对Xamarin很感兴趣,就下班抽空在家里的电脑上进行配置,于是乎出现了各种问题,对此进行总结. 1. Cannot find `aapt.exe`. Please install the And ...
- 用Visual Studio 2012+Xamarin搭建C#开发Andriod的环境
第一步:安装Visual Studio: Visual Studio 2012(或者Visual Studio 2010),原因是目前为止Xamarin for Visual Studio的插件只支持 ...
- spring boot+mybatis+swagger搭建
环境概述 使用的开发工具:idea 2018 3.4 环境:jdk1.8 数据库:MariaDB (10.2.21) 包管理:Maven 3.5 Web容器:Tomcat 8.0 开发机系统:Wind ...
- cygwin配置个人环境,android模拟器root映象和Babun
零.Windows命令行个人设置 @echo off :: Temporary system path at cmd startup ::set PATH=%PATH%;"C:\Progra ...
- 2020 年 中国.NET开发者调查报告
微信公众号dotnet跨平台2020年初做的一个关于中国.NET开发者调查收到了开发者近 1400 条回复.这份调查报告涵盖了开发者工具链的所有部分,包括编程语言.应用架构.应用服务器.运行时平台.框 ...
随机推荐
- Android测试读写sd卡文件与写sd卡文件耗时
测试从sd卡读1k大小的文件,再写1k大小的文件,由于处理耗时很短,所以循环500次,查看耗时:测试写1k大小的文件,直接在内存构造一个1k的buffer,将这个buffer直接写到文件,同样循环50 ...
- 剑指offer 面试20题
面试20题: 题目:表示数值的字符串 题:请实现一个函数用来判断字符串是否表示数值(包括整数和小数).例如,字符串"+100","5e2","-123 ...
- 剑指offer 面试42题
面试42题: 题目:连续子数组的最大和 题:输入一个整形数组,数组里有正数也有负数.数组中的一个或连续多个整数组成一个子数组.求所有子数组的和的最大值.要求时间复杂度为O(n) 解题思路:在数组里从前 ...
- PAT 天梯赛 L1-029. 是不是太胖了 【水】
题目链接 https://www.patest.cn/contests/gplt/L1-029 AC代码 #include <iostream> #include <cstdio&g ...
- PAT 天梯赛 L1-039. 古风排版 【字符串处理】
题目链接 https://www.patest.cn/contests/gplt/L1-039 思路 先根据 len 和 n 判断 有几个 列和几行,然后 从最右边 到 最左边 从上到下 将字符串 录 ...
- Keepalived 主备配置
keepalived主备或多主多备,配置都是一样配置方法,只是搭建多少的问题. 1.keepalived安装 参考:https://www.cnblogs.com/zwcry/p/9542867.ht ...
- 跨平台移动开发 App-Framework DEMO 演示
穿越到2015 回到->MarkFan的程序员客栈 App-Framework DEMO 演示 点击APK包下载 点击Demo代码下载 官方网站 :http://app-framework- ...
- PHP验证是否为图片格式文件
/** * 判断是否为图片格式(jpg/jpeg/gif/png)文件 * * @param string $filePath * @return bool|string */ function is ...
- Object.defineProperty小解
最早认识这个函数,源于对vue双向绑定的探索,vue通过这个函数实现属性挟持并结合发布者-订阅者模式实现双向绑定 先看一个实例: var o= {name: 'a'} Object.definePro ...
- 手把手教你使用eclipse+qemu+gdb来单步调试ARM内核【学习笔记】
平台信息:linux4.0 平台:qemu 作者:庄泽彬 说明:笨叔叔的Linux视频的笔记 一.编译linux源码 export CROSS_COMPILE=arm-linux-gnueabi- e ...