AVR DU

Go To Last Post
18 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

the replacement for USB megaAVR U2

AVR DU Product Brief

...

– Immutable boot

...

– 256B of boot row

...

– Auto-tuning for improved internal oscillator accuracy [OSCHF, 32MHz]

...

• External high-frequency crystal oscillator (XOSCHF) with clock failure detection

...

 

– One USB 2.0 full-speed device(1)

• Optional internal 3.3V voltage regulator

• OSCHF oscillator can be tuned to the USB start-of-frames (SOFs) for crystal-less operation

• 16 endpoint addresses each with one input and one output endpoint for up to 31 endpoints

• Multi-Packet transfer for reduced interrupt load and software intervention

 

...

 

• I/O and Packages:

– Up to 25 (24) programmable GPIO (I/O) pins

– 32-pin VQFN 5x5 mm and TQFP 7x7 mm

– 28-pin VQFN 4x4 mm, SPDIP and SSOP

– 20-pin SOIC – 14-pin SOIC

• Temperature Ranges:

– Industrial: -40°C to +85°C

– Extended: -40°C to +125°C

 

...

The first AVRxt with a USB device controller.

immutable boot - rare for an AVR

Catching up to the USB PIC.

 

edit : AVR DU product brief was archived via the following post

USB or USB OTG Host: AT90USB1287 Only? | AVR Freaks

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Fri. Oct 1, 2021 - 05:43 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

 

AVR DU Product Brief

– One USB 2.0 full-speed device(1)

• Optional internal 3.3V voltage regulator

• OSCHF oscillator can be tuned to the USB start-of-frames (SOFs) for crystal-less operation

• 16 endpoint addresses each with one input and one output endpoint for up to 31 endpoints

• Multi-Packet transfer for reduced interrupt load and software intervention

...

The first AVRxt with a USB device controller.

Seems to be just 24MHz ? ( No 48MHz USB clock ?) 

I wonder what top Baud and sustainable baud rates it can manage ? 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What does “immutable boot” even mean?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it can't "mutate"; ie, can't be modified - aka, "hacked" ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Implementation Considerations | cryptoauthlib/app/secure_boot at master · MicrochipTech/cryptoauthlib · GitHub

[end of third item]

... immutable (unchangeable) location like a boot ROM or write-protected flash.

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Who-me wrote:
Seems to be just 24MHz ?
Yes (AVR Dx); "usually" enough especially for a 5V MCU.

Who-me wrote:
( No 48MHz USB clock ?)
Some USB UART are 12MHz (full-speed USB)

USB clock domain is likely separate from the CPU clock domain; don't know how the two clock domains mate.

Who-me wrote:
I wonder what top Baud and sustainable baud rates it can manage ? 
Might not know that until the preliminary datasheet arrives sometime after either first characterization or first silicon.

 


MCP2200 | Microchip Technology

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

why still usb?  a wireless interface would have been much better.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

GermanFranz wrote:
why still usb?
Industrial (EFT) and vehtronics (lightning; cars, light trucks, medium trucks, semi-tractors, tractors); ESD is common and the damage cumulative though ESD tolerance can be increased for RF.

Destroying Electronic Components from Across the Room With ESD | Technical Tidbit - May-June 2012 by Douglas C. Smith

edit : though a cable is an antenna, this is more apropos :

Mobile Phone Response to EMI from Small Metal ESD | Technical Tidbit - September 2004 by Douglas C. Smith

Abstract: ...

RF front end damage to the receiver is a distinct possibility.

 

...

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Tue. Aug 24, 2021 - 05:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:
RF front end damage

 

You forgot solar storms as the cause 😉

 

No, seriously: The installation of wireless communication options is long overdue in my eyes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

Who-me wrote:
I wonder what top Baud and sustainable baud rates it can manage ? 
Might not know that until the preliminary datasheet arrives sometime after either first characterization or first silicon.

You can estimate the baud range, based on other AVR's UART blocks, and this shows that 24MHz master clock is quite low.

 

eg Common is this in data, which defines the samples-per-bit,  

S is the number of samples per bit
• Asynchronous Normal mode: S = 16
• Asynchronous Double-Speed mode: S = 8

which makes the best Baud a somewhat ordinary 24MHz/8 = 3MBd.  ( in contrast EFM8UB3 runs at 48MHz and allows 48MHz/(2N), with 8MBd UART being practical )

 

More common in FS-USB-UARTS is baud support of 24MHz/N,  with upper values of 4MBd or 6MBd, and newer parts like PL2303GS have 96MHz/N and you can select up to 12Mbd on UART.

 

Maybe Microchip target uses here, other than replacing modern USB-UART devices ? 

If the BOOT_ROM allows USB boot that would be useful.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Who-me wrote:
... and newer parts like PL2303GS have 96MHz/N and you can select up to 12Mbd on UART.
Likewise from MaxLinear.

Who-me wrote:
Maybe Microchip target uses here, other than replacing modern USB-UART devices ?
Maybe to be comparable to USB PIC.

Who-me wrote:
If the BOOT_ROM allows USB boot that would be useful.
Immutable boot may mean flash that's secure by more than lock bits (mini version of AVR32 UC3C/L FlashVaultTM?, or, akin to FPGA with internal flash as FPGA are secure)

256 bytes might be enough for a minimal USB boot (packets); or, maybe the boot row contains a crypto pass-phrase modified only by the debugger.

Like MPU, a multi-level boot (USB DFU bootloader dependent on first bootloader)

 


XR21B1420 - MaxLinear

[middle of right column]

  • Baud rates up to 12 Mbps

due to

CH340G IC vendor..... | AVR Freaks

 

PIC18F25K50 | Microchip Technology (datasheet, bottom of page 271)

 

GitHub - rrevans/ubaboot: USB bootloader for atmega32u4 in 512 bytes

 

edit : baud rate formula for FBRG

PIC18(L)F2X/45K50

FOSC/[4 (n+1)]

n = value of SPBRGHx, SPBRGx register pair.

Fosc <= 48 MHz

baud <= 12 Mbps

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. Aug 25, 2021 - 10:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can't seem to open the product brief now, I get an error message. Can't see a page for it on their website either. Maybe it's been delayed or something.

 

I'm very interested in this. a 5V AVR with USB would be very useful in a number of projects.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

A copy in the 3rd post down on this page:

 

https://github.com/SpenceKonde/D...

 

(interesting that it is SpenceKonde's github so it looks like it will be used as an Arduino core).

 

That's actually quite an interesting read so the USP seems to be USB (do you see what I did there? ;-)

Last Edited: Thu. Nov 4, 2021 - 11:39 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

A copy in the 3rd post down on this page:

 

https://github.com/SpenceKonde/D...

 

(interesting that it is SpenceKonde's github so it looks like it will be used as an Arduino core).

 

That's actually quite an interesting read so the USP seems to be USB (do you see what I did there? ;-)

 

Thanks. Am I reading that right, 512 bytes of bootloader space? Unfortunately that won't allow for DFU I think, it will have to be a custom protocol. HID might work, but I don't know if there is enough room for WCID (i.e. no driver needed on Windows).

 

Hopefully it has an internal regulator to generate USB signalling levels regardless of the supply voltage (says minimum 3V). A promising part!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Am I reading that right, 512 bytes of bootloader space? Unfortunately that won't allow for DFU I think

I don't think that's "program space for bootloader"; I think it's more like the "32B of user row in nonvolatile memory that can keep data during chip-erase and be programmed while the device is locked" memory of the DB series (there's more of it; perhaps intended to hold a whole set of USB descriptors and strings?)  But speculation based on an apparently-leaked very-preliminary product summary document seems ... premature.

 

(BTW, The PJRC "Teensy" has a (proprietary) 512byte USB bootloader...)

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mojo-chan wrote:
Maybe it's been delayed or something.
Likely; there's a dearth in product press releases from the 8-bit MCU design group (lack of wafer fab allocation due to excessive backlog?)

mojo-chan wrote:
a 5V AVR with USB would be very useful in a number of projects.
5V USB megaAVR already exist though with a long-in-tooth USB device controller.

 


https://www.microchip.com/RSS/recent-PRProduct.xml

ATMEL parts are running out of stock due to wafer shortage ? | AVR Freaks

 

AVR-ISP-MK2.sch via AVR-ISP-MK2 - Open Source Hardware Board (Olimex)

[SOLVED] Arduino LUFA BULK Endpoint Problem with ATMEGA32U4 | AVR Freaks

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

westfw wrote:
perhaps intended to hold a whole set of USB descriptors and strings?) 
or keys or passphrases to hash though an on-die mini-cryptoauthenticator would be excellent.

Other USB MCU can have encrypted loads.

westfw wrote:
(BTW, The PJRC "Teensy" has a (proprietary) 512byte USB bootloader...)
HalfKay (USB HID); ubaboot is a very small GPLv3 mega32U4 bootloader by packets via libusb.

"Iimmutable Immutable boot" may mean the first level boot is by an essential minimal bootloader (USB packets), or, the boot metadata is immutable (secure boot)

 


Enhance system security with better data-at-rest encryption - Embedded.com

[mid-page]

Generating the key

Secure Boot | Microchip Technology

https://github.com/Blinkinlabs/ch554_sdcc/blob/master/documentation/CH554%20manual%20english.pdf

[page 15]

6.7 Chip Unique ID Number

[last paragraph]

The ID data can be obtained by reading Code Flash. ID number can be used with the download tool for the target program to be encrypted, the general application, ...

due to

WCH MCS-51(8051) USB MCUs | AVR Freaks

 

HalfKay Communication Protocol | PJRC

GitHub - rrevans/ubaboot: USB bootloader for atmega32u4 in 512 bytes

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Fri. Nov 5, 2021 - 02:38 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Online Docs

enter AVR64DU32

 

"Dare to be naïve." - Buckminster Fuller