Avrdude Usb Serial Controller

0 views
Skip to first unread message

Julieann Rohde

unread,
Jun 26, 2024, 6:41:53 AM6/26/24
to ovresdigi

I am programming avr microcontrollers using avrgcc and avrdude . If am specifying wrong controllers then avrdude throws error message syaing wrong device signature. Is there an avrdude method from which i can find which controller is it connected to like Atmega8,Atmega324,Atmega644 etc. Then it would be easy to change the avrdude command with respect to the controller reply am getting.

I need to program Arduino DUE from USBasp programmer.
I am using AVRDUDE for programming, attached screenshot.
I could program Arduino MEGA, but I could not find Arduino Due in support list. Please see attachment.
please help,

Avrdude Usb Serial Controller


Download Zip ✪✪✪ https://t.co/HgFRyi5VbF



Hi,
I understand usbasp is for AVR controller.
Could you suggest which ISP programmer suitable for DUE controller type ?
I actually have a controller board built on ARDUINO DUE micro controller (SAM family).
And I need an ISP programmer not bootloader method, can you help please ?

The SAM3x8a (used in Due) is usually programmed using JTAGm which is not supported by a USBASP.
However, it also contains a bootstrap IN ROM that is never erased, so that by proper manipulation of signals like ERASE should always allow a SAM3x chip to bootloader using either serial or usb (usb only works if you have a 12MHz crystal or oscillator connected.)

Yeah it should be possible. But rather than trying to read the file into LabVIEW, can you just use the hex file in a commandline program to load your device? AVRDUDE has command line support so you can provide the file and interface and it uploads it. You can make this a batch file if you wanted which is probably easier than LabVIEW.

All the discussion I've seen regarding similar needs ended up following some form of hooovahh's advice. There's a lot of communication going on behind-the-scenes in order to accomplish the load making it not worth the effort to build something you can call from a command line.

If you asking how to read a file, it doesn't really matter what the file is, you can use the Read Binary File with an array of bytes. But the usefulness of this is very small. It still isn't clear why you need to load a hex file with LabVIEW.

I want to make project Virtual Lab....In this project hardware kit(AVR kit) is connected to college PC.But student can program it from its home via internet. So it is require that ,Student can load there HEX file into controller from far end.Further more camera is attached to college PC which adhere to hardware kit.So,student can analyze whats going on...Other good idea regarding this project is appreciate...

Yes it is, but as pointed out the protocol to download a hex file to the AVR controller seems to be quite involved. If it is fully documented by AVR you can of course try to implement it in LabVIEW but I would expect this to be non-trivial.

Look at attach image i am able to load program into Avr controller using labview.Now i am trying to load program over internet remotely .Now when i am trying to load program over internet i am giving path into LOAD HEX button.But this path is consider as server path..

I'm programming an ATmega32 chip, and have set some bits as 1 in some DDRs and PORTs. In case I forget what bits I had set to 1, is there a way to set all the register bits to a value(1 or 0) that was present in the registers when I had bought the chip. I mean I want to do a factory reset of the micro-controller. Is it possible to do it in program or AVRDUDE with USBasp or any other means that doesn't require me to buy additional hardware?

The data sheet shows for each register its initial value. A power cycle is enough to reset all concerned registers to these values. Note that a valid pulse at the reset pin or a watchdog reset do the same, for more possibilities see the data sheet.

While working on an update for my CPU Usage LEDs project I thought why not just make it into a universal RGB LED controller? The CPU Usage LEDs controller took a value between 0 and 255, worked out what colour it should be and then fade to that colour. This was very limiting; changing what colours it used and how it fades required a firmware update. With this universal RGB LED controller the host software does all the work and the controller is simply told what brightness the red, green and blue LEDs should be.

My goal is to build a kind of a mobile tracker. There are many different use cases you can think of but one of the obvious is a device, that is able to report where it is. This device can be put in your car and it could trigger an alarm, if the car got stolen. Actually it could tell you where it is.

So my first idea was to combine a microcontroller with a GSM and a GPS modul. There are a lot of these modules over at Sparkfun, for example. Looking through their shop I found the Telit GM862, which is a GSM modul with an built in GPS receiver. That is what I wanted. And they sell great break out boards to make it easier for hobbyist to access these modules.

Looking at the specs for the GM862, you realize, that it is more complex as you might have thought. A problem for me, still a beginner in electronics, were the different voltages used for the module. The power supply has to be 3.4-4.2V. Thats ok as an AVR can run on that voltage. But the serial port requires lower levels, 2.8V (CMOS). That means, you can not connect the UART of the controller directly to the module. You have to do some level translation. Fortunately this has already been solved over at Trackbox2.

Another point to mention is the power supply itself. It requires at least 2A for peaks. I used a LiPoly rechargable battery, which perfectly fits my needs. If you have to use 5V supply, you will have to use a capable voltage regulator and you have to deal with the CMOS voltage level issue as well.

AVR is a family of microcontrollers developed since 1996 by Atmel, acquired by Microchip Technology in 2016. These are modified Harvard architecture 8-bit RISC single-chip microcontrollers. AVR was one of the first microcontroller families to use on-chip flash memory for program storage, as opposed to one-time programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time.

AVR microcontrollers find many applications as embedded systems. They are especially common in hobbyist and educational embedded applications, popularized by their inclusion in many of the Arduino line of open hardware development boards.

Atmel says that the name AVR is not an acronym and does not stand for anything in particular. The creators of the AVR give no definitive answer as to what the term "AVR" stands for.[3] However, it is commonly accepted that AVR stands for Alf and Vegard's RISC processor.[4] Note that the use of "AVR" in this article generally refers to the 8-bit RISC line of Atmel AVR microcontrollers.

The original AVR MCU was developed at a local ASIC house[clarification needed] in Trondheim, Norway, called Nordic VLSI at the time, now Nordic Semiconductor, where Bogen and Wollan were working as students.[citation needed] It was known as a μRISC (Micro RISC)[5] and was available as silicon IP/building block from Nordic VLSI.[6] When the technology was sold to Atmel from Nordic VLSI, the internal architecture was further developed by Bogen and Wollan at Atmel Norway, a subsidiary of Atmel. The designers worked closely with compiler writers at IAR Systems to ensure that the AVR instruction set provided efficient compilation of high-level languages.[7]

Among the first of the AVR line was the AT90S8515, which in a 40-pin DIP package has the same pinout as an 8051 microcontroller, including the external multiplexed address and data bus. The polarity of the RESET line was opposite (8051's having an active-high RESET, while the AVR has an active-low RESET), but other than that the pinout was identical.

The AVR 8-bit microcontroller architecture was introduced in 1997. By 2003, Atmel had shipped 500 million AVR flash microcontrollers.[8] The Arduino platform, developed for simple electronics projects, was released in 2005 and featured ATmega8 AVR microcontrollers.

The AVR is a modified Harvard architecture machine, where program and data are stored in separate physical memory systems that appear in different address spaces, but having the ability to read data items from program memory using special instructions.

The ATmega series features microcontrollers that provide an extended instruction set (multiply instructions and instructions for handling larger program memories), an extensive peripheral set, a solid amount of program memory, as well as a wide range of pins available. The megaAVR 0-series (released in 2016) also has functionality such as:

Flash, EEPROM, and SRAM are all integrated onto a single chip, removing the need for external memory in most applications. Some devices have a parallel external bus option to allow adding additional data memory or memory-mapped devices. Almost all devices (except the smallest TinyAVR chips) have serial interfaces, which can be used to connect larger serial EEPROMs or flash chips.

Program instructions are stored in non-volatile flash memory. Although the MCUs are 8-bit, each instruction takes one or two 16-bit words. The size of the program memory is usually indicated in the naming of the device itself (e.g., the ATmega64x line has 64 KB of flash, while the ATmega32x line has 32 KB). There is no provision for off-chip program memory; all code executed by the AVR core must reside in the on-chip flash. However, this limitation does not apply to the AT94 FPSLIC AVR/FPGA chips.

Even though there are separate addressing schemes and optimized opcodes for accessing the register file and the first 64 I/O registers, all can also be addressed and manipulated as if they were in SRAM.

7fc3f7cf58
Reply all
Reply to author
Forward
0 new messages