Nano Every issues

Moderators please move this topic if it's in the wrong category

I just got a brand new official Nano Every.

I get this error upon upload which according to another thread was fixed ages ago?

Sketch uses 33411 bytes (67%) of program storage space. Maximum is 49152 bytes.
Global variables use 978 bytes (15%) of dynamic memory, leaving 5166 bytes for local variables. Maximum is 6144 bytes.
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description

That's not a massive deal to me, just weird as I thought it had been fixed. Yes, I'm still on version 1.8.19, maybe that's the issue?

The biggest and most worrying issue is resetting the board. Sometimes when I press the reset button, the entire board freezes. It doesn't continue running my code, and it doesn't reset. It just sits there and does nothing. And it never comes out of that state unless I disconnect the power and then reconnect, OR hit the reset another five times super quickly. Any ideas on this??

Do you have a link?

It's currently in the "Nano Every" category; not sure where you want it to be moved to. If needed you can move it yourself by clicking the big pencil next tot the topic title, selecting another category by clicking the little arrow next to the category and next clicking the tick.

image

1 Like

Just a matter of whether this category is for issues or not, pretty sure it's fine where it is.

OK

The last post (https://forum.arduino.cc/t/error-avrdude-jtagmkii-initialize-cannot-locate-flash-and-boot-memories-in-description/1193800/3) indicates that AVRdude has been updated. Chances that Arduino will update the board package to accomodate a new AVRdude version are slim in my opinion; it might happen if Arduino decides design another board based on the 4809.

As you say, it's not a massive deal so I guess one has to learn to live with it.

I can't help you with the reset issue. Does this happen with basic examples as well?

How possible is it for me to update the package in my own installation?

I have to admit it is quite random. Sometimes it happens, sometimes it doesn't, I haven't been able to find a common reason why

Two data points, may or may not interest you, but hey, it's free info.

  • I bought two Every's last fall, immediately changed bootloader to MegaCoreX because I wanted 3 or more serial.
  • Both have been rock solid and stable, using IDE 1.8.19; no problems loading, etc., feels just like having my Nanos as targets, but with more Serial options.
    YMMV.
2 Likes

Sorry, dumb question. Do you mean bootloader or board manager?
First time playing with these boards, they seem nice.
My main reason for buying it was because I needed more storage space for my weather station code.

Yep, you're right. Board manager. Also, think I used Optiboot, as outlined here:

Sorry to be so vague, but it just works, so it's gone from my memory.

1 Like

Awesome. I'll have a look at that

Is Optiboot required to take advantage (the extra serial capability) - or is installing megacorex sufficient?

MegacoreX does not require the use of Optiboot with the NanoEvery. MegaCoreX will trigger and use the UPDI bootloader built into the SAMD11 chip on the board.

It's not clear to me why someone would use Optiboot with the NanoEvery. It could be loaded on to a bare 4809 ina custom board, but it is not needed or used with a Nano Every.

MegaCoreX has several useful features that the megaavr core does not have, and it is well documented and better maintained. If you are going to work with a Nano Every, I strongly recommend that you use MegaCoreX.

2 Likes

This is not normal behavior.

Perhaps it is a defective button. Do you see the same behaviour if you use the RST pin and GND?

If you run a simple sketch like blink do you see the same reset behaviour? Does the light stop blinking when the button is pressed and restart when released?

I do not think this is possible.

The MegaCoreX read me section for the NanoEvery contains this information

Arduino Nano Every

The Arduino Nano Every is one of the few megaAVR-0 based boards that's officially supported by Arduino. It uses an ATmega4809 and the only supported pinout is Nano Every. Printing to the serial monitor on your PC is done by initializing Serial.begin(baud). The Nano Every does not support a bootloader, so select No bootloader in the tools menu. Burning bootloader or upload using programmer will not work either. However, all fuses are set every time you upload our program. For more information about this board please see the product page and its schematic.

@cattledog Thanks for digging into it further. Sigh.
Found my notes:

So, yes, just the as-delivered product, with the MegaCoreX ATmega4809 support then.

No, definitely not normal!

I've ended up doing a software watchdog which automatically resets the board if it hasn't been reset in four seconds, that seems to have fixed it.

I'll have to give that a shot.

Yes, it still gives the same erratic behaviour

Can you please explain more about what you have done. If the board freezes after a reset is invoked and you said

Sometimes when I press the reset button, the entire board freezes. It doesn't continue running my code,

How does the software reset run if the board freezes?

Are you saying that the reset from software (however you did this) works reliably when the reset from the hardware button does not?

2 posts were split to a new topic: Cannot get data from TFMini LiDAR sensor

Yes. I do not understand how it works, only that it does, so I don't want to play with it now in fear of rebreaking it.

When I press the reset button , the board becomes totally unresponsive, no output on the screen, no Serial, connected LEDs cease flashing, and nothing happens.

The automatic reset still by some unknown miracle somehow still works, and fixes the issue. Which makes no logical sense

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.