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. 剑指offer 面试27题

    面试27题: 题目:二叉树的镜像 题:操作给定的二叉树,将其变换为源二叉树的镜像. 输入描述: 二叉树的镜像定义:源二叉树 8 / \ 6 10 / \ / \ 5 7 9 11 镜像二叉树 8 / ...

  2. PHP获取域名、IP地址的方法

    本文介绍下,在php中,获取域名以及域名对应的IP地址的方法,有需要的朋友参考下. 在php中可以使用内置函数gethostbyname获取域名对应的IP地址,比如: 1 <?php 2 ech ...

  3. Linux:文件

    Linux:文件 文件属性 用户分为三种:文件拥有者.群组以及其它人,对不同的用户有不同的文件权限. 使用 ls 查看一个文件时,会显示一个文件的信息,例如 drwxr-xr-x. 3 root ro ...

  4. 如何选择合适的Linux系统进行桌面程序开发?

    32 or 64 ? 众所周知,64位的Windows系统可以近乎完美地运行32位的应用程序,微软出于商业考虑做了这样一个兼容层.而Linux系统则划分的很清楚,默认情况下64位的Linux系统无法运 ...

  5. React routerV4 笔记

    React routerV4 笔记     一.基础路由示例 import React from 'react' import { BrowserRouter as Router, Route, Li ...

  6. Linux基本命令 文件搜索命令

    1.文件搜索命令find ================================================================================== 命令名称 ...

  7. window.name跨域

    window.name? 每一个页面都有一个自己的window,而window.name是window的名字. window.name跨域原理 window对象有个name属性,该属性有个特征:即在一 ...

  8. Ubuntu10.04下的使用使用华为E1750 3G模块

    系   统:Ubuntu 10.04 3G模块:华为E1750 1 安装usb-modeswitch软件 E1750 无线上网卡并没有提供linux环境下的驱动程序,但我们可以通过USB模式转换来让l ...

  9. gst-rtsp-server编译测试

    最近在做dm368的开发,打算在368上移植个gst-rtsp-server.先在电脑上折腾了一天,终于是可以运行了. 我的虚拟机上早先已经安装了gstreamer-0.10(gstreamer版本太 ...

  10. 20145231《Java程序设计》第五次实验报告

    实验五 Java网络编程及安全 实验内容 1.掌握Socket程序的编写: 2.掌握密码技术的使用: 3.设计安全传输系统. 实验要求 基于Java Socket实现安全传输 基于TCP实现客户端和服 ...