Arduino 328p - Arduino IDE \hardware\Boards.txt questions

Hello,

I have some questions about the parameters in boards.txt file. The maximum_size, how is that determine when you change the high fuse? The maximum_size is 30720 for DA(1.5kb), would the maximum_size for D8(2kb) be 30720-512=30208? Does this parameter do anything other than report when you upload a sketch?

The parameters is boards.txt must match the parameters from your bootloader correct?

Thanks,

-ren

renasis:
Hello,

Hello.

The maximum_size, how is that determine when you change the high fuse?

It's the Flash size, in bytes, minus the bootloader size, in bytes.

The maximum_size is 30720 for DA(1.5kb)

(32 [KB] * 1024 [bytes/KB]) - (1024 [words] * 2 [bytes/word]) = 30720.

The "1.5kb" is not correct but the 30720 is.

would the maximum_size for D8(2kb) be 30720-512=30208?

(32 [KB] * 1024 [bytes/KB]) - (2048 [words] * 2 [bytes/word]) = 28672.

No.

Does this parameter do anything other than report when you upload a sketch?

I believe the IDE will not perform an upload if the Sketch is too large.

The parameters is boards.txt must match the parameters from your bootloader correct?

Yes.

Thanks Coding Badly!