-
-
Notifications
You must be signed in to change notification settings - Fork 13
Improved documentation for spurious "jtagmkII_initialize(): Cannot locate 'flash' and 'boot' memories in description" warning for Nano Every [HC-1181] #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
...-flash-and-boot-memories-in-description-message-when-uploading-to-Nano-Every.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: "If you see a \"jtagmkII_initialize(): Cannot locate 'flash' and 'boot' memories in description\" message when uploading to Nano Every" | ||
id: 4405239282578 | ||
--- | ||
|
||
When uploading a sketch to **Arduino Nano Every**, this warning message may appear in the console output: | ||
|
||
``` | ||
”avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description" | ||
``` | ||
|
||
The message is spurious and **does not** indicate a failed sketch upload or any other problem that requires action. | ||
|
||
In this article: | ||
|
||
* [About the warning message](#about) | ||
* [How to tell if the sketch was uploaded](#how-to-tell-if-the-sketch-was-uploaded) | ||
* [What you can do](#what-you-can-do) | ||
|
||
--- | ||
|
||
## About the warning message {#about} | ||
|
||
The warning message occurs because the microcontroller on the Nano Every does not define a boot section that is expected by the version of the **avrdude** upload utility used in the Arduino megaAVR Boards package. Since this does not stop the upload from completing successfully, the warning is spurious, and has been fixed in later versions of avrdude[^1]. Due to compatibility considerations, the Arduino megaAVR Boards package continues to use an older version of avrdude without this fix. | ||
|
||
[^1]: <https://github.com/avrdudes/avrdude/pull/789> | ||
|
||
--- | ||
|
||
## How to tell if the sketch was uploaded {#how-to-tell-if-the-sketch-was-uploaded} | ||
|
||
If verbose upload output is disabled, a **successful sketch upload** for Nano Every will look something like this: | ||
|
||
``` | ||
Sketch uses 1118 bytes (2%) of program storage space. Maximum is 49152 bytes. | ||
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes. | ||
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description | ||
``` | ||
|
||
If the sketch upload fails, this will be indicated by other error messages, like `avrdude: jtagmkII_getsync(): sign-on command: status -1`. See [Errors when uploading a sketch](https://support.arduino.cc/hc/en-us/articles/4403365313810-Errors-when-uploading-a-sketch) for help. | ||
|
||
--- | ||
|
||
## What you can do {#what-you-can-do} | ||
|
||
These are some things you can do if you encounter the warning message: | ||
|
||
* Ignore the warning message. It will not prevent your sketch from uploading. | ||
* Enable verbose upload output. This will not remove the warning, but the additional console output from avrdude will provide clearer confirmation of a successful upload. When verbose upload output is enable, a successful sketch upload will look something like this: | ||
|
||
``` | ||
Writing | ################################################## | 100% 0.01s | ||
|
||
avrdude: 1 bytes of fuse8 written | ||
|
||
avrdude done. Thank you. | ||
``` | ||
|
||
To enable verbose output, see [Use verbose output in the Arduino IDE](https://support.arduino.cc/hc/en-us/articles/4407705216274-Use-verbose-output-in-the-Arduino-IDE). | ||
|
||
* Use a third-party board package with a newer version of avrdude, such as [MegaCoreX](https://github.com/MCUdude/MegaCoreX). | ||
* Installation instructions for MegaCoreX can be found [here](https://github.com/MCUdude/MegaCoreX?tab=readme-ov-file#boards-manager-installation). | ||
|
||
<!-- markdownlint-disable-file HC006 --> |
15 changes: 0 additions & 15 deletions
15
...ude-jtagmkII-initialize-Cannot-locate-flash-and-boot-memories-in-description.md
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.