# ERROR: avrdude: jtagmkII\_initialize(): Cannot locate "flash" and "boot" memories in description

**URL:** <https://forum.arduino.cc/t/error-avrdude-jtagmkii-initialize-cannot-locate-flash-and-boot-memories-in-description/1193800>\
**Category:** Uploading\
**Created:** [November 26, 2023, 9:42pm UTC](https://forum.arduino.cc/t/error-avrdude-jtagmkii-initialize-cannot-locate-flash-and-boot-memories-in-description/1193800 "2023-11-26T21:42:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cattledog](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/cattledog/32/217816_2.png) [@cattledog](https://forum.arduino.cc/u/cattledog)\
**Post date:** [November 26, 2023, 11:43pm UTC](https://forum.arduino.cc/t/error-avrdude-jtagmkii-initialize-cannot-locate-flash-and-boot-memories-in-description/1193800/3 "2023-11-26T23:43:29Z")

</div>

> avrdude: jtagmkII\_initialize(): Cannot locate "flash" and "boot" memories in description

This is because the NanoEvery does not use a bootloader, and the memory is not divided into flash and boot segments like the AT328 devices.

The warning was due to an issue with avrdude not recognizing this situation, but the upload proceeded as normal.

> avrdude: jtagmkII\_initialize(): Cannot locate "flash" and "boot" memories in description  
> avrdude: AVR device initialized and ready to accept instructions

This has since been fixed in avrdude.

> <https://github.com/avrdudes/avrdude/pull/789>
>
> This PR adds support for the @ElTangas' jtag2updi programmer and brings some imp…rovements too:
> 
> \* Baudrates higher than 115200 are now supported
> \* jtagmkii.c has been patched to accept devices with \`has\_updi=true\`. This "hack" was borrowed from Arduino's implementation. They have a board, the Arduino Nano Every, that uses the jtag2updi as its programmer.
> 
> ~There exist other non-critical "problems" too, like the \`avrdude: jtagmkII\_initialize(): Cannot locate "flash" and "boot" memories in description\` error you're always getting when programming a target (see https://github.com/ElTangas/jtag2updi/issues/54), but I haven't been able to find an elegant solution to this.~
> Also been solved
> 
> Closes #517

The megaavr core uses an older version of avrdude which has the issue

```arduino
megaavr
avrdude: Version 6.3-20190619

```

MegaCoreX uses a more recent version, and does not give the warning message

```arduino
MegaCoreX
avrdude: Version 7.1-arduino.1

```

---

_[View the full topic](https://forum.arduino.cc/t/error-avrdude-jtagmkii-initialize-cannot-locate-flash-and-boot-memories-in-description/1193800)._
