I’m trying to create stable flight by detecting the tilt of an object while it’s flying and controlling a motor to adjust it.
I’ve finished the code up to the point where it outputs the tilt values, but I’m getting an error
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description
Does anyone know what might be causing it?
Is it okay to ignore it?
The values are showing normally in the Serial Monitor.
The warning also appears when I run other normal codes.
The devices I connected are an Arduino Nano Every and an MPU6050.
As your topic does not relate directly to the installation or operation of the IDE it has been moved to the Programming category of the forum
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination
Please post your full sketch, using code tags when you do
Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
It is also helpful to post full error messages in code tags as it makes it easier to scroll through them and copy them for examination
To post the error message, click the "COPY ERROR MESSAGES" button in the IDE, paste the copied messages in a reply here, select all of it and click the < CODE > icon above the reply editor to add the code tags and then save the reply
+1 obviously with @UKHeliBob - images are a pain to deal with, not worth the storage and bandwidth they take...
regarding your question, the error message "avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description" might be spurious avrdude warning caused by the ATmega4809 UPDI upload method and older avrdude versions.
Do you have some extra lines after that message ? (sometimes the upload is just fine)
It was discussed in the past in the forum - I suggest you explore those
and possibly more (use the search tool in the forum)