Real size of flash memory

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
aleconakad
Posts: 15
Joined: 18 Jan 2016 15:25

Real size of flash memory

Post by aleconakad » 06 Dec 2017 12:56

Dear all,

according to specifications the Z-uno module possess 28K (28672 bytes) of flash memory for sketches. In Arduino IDE, it allows code up to 32K. How can this be?
Furthermore, my program reached about 98% of the 32K. When I try to flash it, the flash procedure completes successfully, but on the Z-uno still runs the old sketch (a simple blink-blink sketch). I managed to downsize my program to about 91% of the allowed 32K in Arduino IDE (29376 bytes), now it flashes and run successfully.

So somehow, something is not right regarding the flash size. For sure it is not 32K but also it is larger than 28K. Could you please elaborate more on this?

Thanks

knst08
Posts: 28
Joined: 15 Oct 2017 20:14

Re: Real size of flash memory

Post by knst08 » 07 Dec 2017 12:38

I can confirm this behavior, lost lots of time before understood that if binary size exceeds 30K upload procedure passes but does not change the binary on z-uno.

User avatar
PoltoS
Posts: 4224
Joined: 26 Jan 2011 19:36

Re: Real size of flash memory

Post by PoltoS » 08 Dec 2017 08:52

We will check that.

Indeed the correct is 28k.

In next S2 release it will be 6k only (S0 release will still be 28k). This is because S2 uses a lot of space. But the 2.1.1 compiler is much note efficient and produces 5 times smaller code.

So help us to understand how have you filled the fill 28k!

knst08
Posts: 28
Joined: 15 Oct 2017 20:14

Re: Real size of flash memory

Post by knst08 » 08 Dec 2017 12:33

Sent you the link to code as private message

User avatar
PoltoS
Posts: 4224
Joined: 26 Jan 2011 19:36

Re: Real size of flash memory

Post by PoltoS » 10 Dec 2017 00:33

Wow. It is huge! A bit overengineered with C++ classes, this is why it is so big

Post Reply