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的更多相关文章

  1. 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 ...

  2. AVR Programming Methods

    AVR Programming Methods  There are many ways to program AVR microcontrollers. Since many people ask ...

  3. BAT特殊字符(转)

    BAT特殊字符1. 点 与echo连用,作用是换行 示例1 [输出空行] echo. 2 > 定向符[输出] 将命令的输出进行重定向 [一般用于将结果写入文件] 注意 nul 为空设备 > ...

  4. 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 ...

  5. call

    -------siwuxie095 call 调用另一个批处理程序或自身程序段,调用完,程序会回到原来 call 的地方继续执行 如果在脚本或批处理文件外使用 call,则不会在命令行起作用 语法 c ...

  6. Xamarin studio配置问题

    最近对Xamarin很感兴趣,就下班抽空在家里的电脑上进行配置,于是乎出现了各种问题,对此进行总结. 1. Cannot find `aapt.exe`. Please install the And ...

  7. 用Visual Studio 2012+Xamarin搭建C#开发Andriod的环境

    第一步:安装Visual Studio: Visual Studio 2012(或者Visual Studio 2010),原因是目前为止Xamarin for Visual Studio的插件只支持 ...

  8. spring boot+mybatis+swagger搭建

    环境概述 使用的开发工具:idea 2018 3.4 环境:jdk1.8 数据库:MariaDB (10.2.21) 包管理:Maven 3.5 Web容器:Tomcat 8.0 开发机系统:Wind ...

  9. cygwin配置个人环境,android模拟器root映象和Babun

    零.Windows命令行个人设置 @echo off :: Temporary system path at cmd startup ::set PATH=%PATH%;"C:\Progra ...

  10. 2020 年 中国.NET开发者调查报告

    微信公众号dotnet跨平台2020年初做的一个关于中国.NET开发者调查收到了开发者近 1400 条回复.这份调查报告涵盖了开发者工具链的所有部分,包括编程语言.应用架构.应用服务器.运行时平台.框 ...

随机推荐

  1. 4.5 基于STM32+MC20远程短信控制开关

    需要准备的硬件 MC20开发板 1个 https://item.taobao.com/item.htm?id=562661881042 GSM/GPRS天线 1根 https://item.taoba ...

  2. 04 Spring框架 依赖注入(一)

    整理了一下之前学习spring框架时候的一点笔记.如有错误欢迎指正,不喜勿喷. 上一节我们讲了几个bean的一些属性,用来限制我们实例创建过后的状态. 但是细心的我们会发现其实上面demo创建的实例并 ...

  3. 用js来实现那些数据结构 第二章

    这一篇文章,我们一起来看看数组还有哪些用法,以及在实际工作中我们可以用这些方法来做些什么.由于其中有部分内容并不常用,所以我尽量缩小篇幅.在这篇文章内介绍完大部分的数组方法,加快我们实现其它数据结构的 ...

  4. Python与硬件学习笔记:蜂鸣器(转)

    相信大家对蜂鸣器都不会陌生,很多产品和方案中都会用到蜂鸣器,大部分都是使用蜂鸣器来做提示或报警,比如按键按下.开始工作.工作结束或是故障等等.这里对单片机在蜂鸣器驱动上的应用作一下描述. 蜂鸣器的介绍 ...

  5. Git常见命令整理

    Git常见命令整理 + 注释 git init # 初始化本地git仓库(创建新仓库) git config --global user.name "xxx" # 配置用户名 gi ...

  6. class_exists — 检查类是否已定义

    class_exists — 检查类是否已定义 bool class_exists ( string $class_name [, bool $autoload = true ] ) 检查指定的类是否 ...

  7. SQL性能调优策略

    1.建立索引 2.避免全表扫描 避免使用is null, is not null,这样写会放弃该字段的索引. 如果会出现这种情况,尽量在设计表的时候设置默认值 比较操作符中!= <>等避免 ...

  8. oracle 序列改值

    1.oracle 序列改值 执行:Alter Sequence SQ_RM_FRAME Increment By 100; 执行:Select SQ_RM_FRAME.NextVal From Dua ...

  9. 【bzoj2118&洛谷P2371】墨墨的等式(最短路神仙题)

    题目传送门:bzoj2118 洛谷P2371 这道题看了题解后才会的..果然是国家集训队的神仙题,思维独特. 首先若方程$ \sum_{i=1}^{n}a_ix_i=k $有非负整数解,那么显然对于每 ...

  10. MAC 系列 之XCode7.1 + HBuilder MUI 离线打包 ipa 上次application leader 问题:ERROR ITMS - 90032

    90032 解决方法: