Open Valgam91 opened 2 years ago
Hi,
It should be possible, although I have not tested it myself. Perhaps try uncommenting the flag COMPILE_SMALLER_BINARY in MutantFMSynthOptions.h and see if that fixes it?
Cheers
On 26 Sep 2022, at 1:38 am, Valgam91 @.***> wrote:
Is it possible to lode te scetch to a arduino Mega? I tested it but i could not uplode it("an error occured whileuploading the sketch" without more description) Mozzi audio out is on pin 11 on the Mega. Thx
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
Hi @Valgam91 & whoever else may read this,
I also tried uploading to a Mega and also had issues uploading. The compilation went fine, and the upload started but would cause errors after ~50% of the upload. The errors I got looked like this:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
I could tell that my Mega was not defective, as basically any other sketch uploaded and worked just fine on it.
I then came found info about this error: https://wiki.nottinghack.org.uk/wiki/Arduino https://code.google.com/p/arduino/issues/detail?id=392 http://www.avr-developers.com/bootloaderdocs/index.html
which basically describes that - if there are three or more consecutive exclamation marks in your code, an error happens. I indeed had added tripple exclamation marks in two serial output debug strings, and removed them afterwards. The error still remained though.
But on my way I learned that my Mega (r1) indeed runs with this very old bootloader that is affected from the '!!!' issue. (could verify that easily by adding '!!!'' to a sketch that before worked fine - which immeadiately caused the upload error for that sketch too)
And so I thought that maybe - just maybe - uploading a newer bootloader to my Mega may eventually not only solve the '!!!' bug, but also the weird uploading issue that i encountered with the FreaqFM code (and also with the Mutant Synth code btw...).
I followed these tutorials to burn the new bootloader, and voila - after I did that, the upload worked just fine: https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader https://www.youtube.com/watch?v=jgHIFWPUe_M
hope that helps you too.
p.s. I also ordered a new Elegoo Mega clone (revision3), and that worked right out of the box
Is it possible to lode te scetch to a arduino Mega? I tested it but i could not uplode it("an error occured whileuploading the sketch" without more description) Mozzi audio out is on pin 11 on the Mega. Thx