Page 1 of 1

Atmega2560 flash memory program 29K

Posted: Fri Feb 10, 2023 8:51 am
by tello
Hi guys.
I use Flowcode 7 and in the current project I have switched from an Arduino nano to an Arduino Mega because of memory capacity.
When I compile the program the HEX file always has 29K which is very strange because it doesn't seem to support any more function blocks and the program crashes.
If I add more function blocks the HEX program does not increase more than 29K

I have disabled half the program in flowcode and when compiling the HEX file it takes up 29K again

has anyone ever had the same problem? I think it's a Flowcode compiler problem but I don't know how to solve it.

Many thanks

Re: Atmega2560 flash memory program 29K

Posted: Fri Feb 10, 2023 10:37 am
by Steve
What happens if you create a new project using that chip and compile that. Do you still get 29K in size? If not, then there is some code within your original project that is causing this issue and you might have to selectively delete more of your code (and components) until you discover what is causing the issue.

Re: Atmega2560 flash memory program 29K

Posted: Mon Feb 13, 2023 11:21 am
by tello
Hello again guys.
I have already found the solution.
I have done several tests removing some parts of the program but I could not solve it.
Finally I have done the whole program again, I think that some part had been corrupted.

Thank you so much.

Re: Atmega2560 flash memory program 29K

Posted: Mon Feb 13, 2023 11:56 am
by Steve
Great news. Thanks for letting us know.