SOLVED: IDE 1.8.7 configured for DUE still using UNO memory numbers

Howdy,

With IDE 1.8.7 configured for DUE the IDE is still using UNO memory numbers, and I’m now failing compile because of memory size and usage.

I can not figure out how to get the IDE to either ignore memory size errors, or calculate memory size and errors using the bigger DUE memory.

Any help would be greatly appreciated.

Thank you!

Ken

No real idea. Checked my 1.8.5 install with Due support. In directory C:\Users\yourUserName\AppData\Local\Arduino15\packages\arduino\hardware\sam\

check the newest board manager file in that directory; on my system 1.6.11\boards.txt (it's also the only one)

arduino_due_x_dbg.name=Arduino Due (Programming Port)
arduino_due_x_dbg.vid.0=0x2341
arduino_due_x_dbg.pid.0=0x003d
arduino_due_x_dbg.vid.1=0x2A03
arduino_due_x_dbg.pid.1=0x003d
arduino_due_x_dbg.upload.tool=bossac
arduino_due_x_dbg.upload.protocol=sam-ba
arduino_due_x_dbg.upload.maximum_size=[b][color=red]524288[/color][/b]
arduino_due_x_dbg.upload.use_1200bps_touch=true
arduino_due_x_dbg.upload.wait_for_upload_port=false
arduino_due_x_dbg.upload.native_usb=false
arduino_due_x_dbg.build.mcu=cortex-m3
arduino_due_x_dbg.build.f_cpu=84000000L
arduino_due_x_dbg.build.usb_manufacturer="Arduino LLC"
arduino_due_x_dbg.build.usb_product="Arduino Due"
arduino_due_x_dbg.build.board=SAM_DUE
arduino_due_x_dbg.build.core=arduino
arduino_due_x_dbg.build.extra_flags=-D__SAM3X8E__ -mthumb {build.usb_flags}
arduino_due_x_dbg.build.ldscript=linker_scripts/gcc/flash.ld
arduino_due_x_dbg.build.variant=arduino_due_x
arduino_due_x_dbg.build.variant_system_lib=libsam_sam3x8e_gcc_rel.a
arduino_due_x_dbg.build.vid=0x2341
arduino_due_x_dbg.build.pid=0x003e

arduino_due_x.name=Arduino Due (Native USB Port)
arduino_due_x.vid.0=0x2341
arduino_due_x.pid.0=0x003e
arduino_due_x.vid.1=0x2A03
arduino_due_x.pid.1=0x003e
arduino_due_x.upload.tool=bossac
arduino_due_x.upload.protocol=sam-ba
arduino_due_x.upload.maximum_size=[b][color=red]524288[/color][/b]
arduino_due_x.upload.use_1200bps_touch=true
arduino_due_x.upload.wait_for_upload_port=true
arduino_due_x.upload.native_usb=true
arduino_due_x.build.mcu=cortex-m3
arduino_due_x.build.f_cpu=84000000L
arduino_due_x.build.usb_manufacturer="Arduino LLC"
arduino_due_x.build.usb_product="Arduino Due"
arduino_due_x.build.board=SAM_DUE
arduino_due_x.build.core=arduino
arduino_due_x.build.extra_flags=-D__SAM3X8E__ -mthumb {build.usb_flags}
arduino_due_x.build.ldscript=linker_scripts/gcc/flash.ld
arduino_due_x.build.variant=arduino_due_x
arduino_due_x.build.variant_system_lib=libsam_sam3x8e_gcc_rel.a
arduino_due_x.build.vid=0x2341
arduino_due_x.build.pid=0x003e

make a backup of your original and try.

Note:
I've never used a Due, so ain't even sure if the number in bold is correct.

Did you select Tool > Type of board > Arduino DUE (Programming Port) before compiling code ?

ard_newbie:
Did you select Tool > Type of board > Arduino DUE (Programming Port) before compiling code ?

Sometimes it might indeed be something that simple :wink:

I interpreted "With IDE 1.8.7 configured for DUE the IDE" as that; might be wrong, we'll see :wink:

ard_newbie:
Did you select Tool > Type of board > Arduino DUE (Programming Port) before compiling code ?

Yes. And my Arduino SAM Boards (32-bits ARM Cortex-M3 is version 1.6.11.

Thank you!

Ken

sterretje:
No real idea. Checked my 1.8.5 install with Due support. In directory C:\Users\yourUserName\AppData\Local\Arduino15\packages\arduino\hardware\sam\

check the newest board manager file in that directory; on my system 1.6.11\boards.txt (it's also the only one)

My boards.txt looks like yours... exactly.

Actually I had two boards.txt files, one for the default. When I deleted the non-Due boards.txt, all is well, my IDE now knows about Due memory.

Thank you, thank you, thank you!

RESOLVED

(deleted)

Please elaborate. Are their two arduinos with similar names?

(deleted)

spycatcher2k:
In the tools -> boards menu, tell us EXACTLY what board you have selected.

There is the DUE - available if you hav installed the support package or Duemilenove, available all the time.

Thread is already marked as solved :wink:

freeidaho:
Please elaborate. Are their two arduinos with similar names?

Yes, the Due and the Duemillanove. Named without giving thought to how non-Italian speakers would interpret them (Due is 2 and Duemillanove is 2009, the year the duemillanove was released) - but if you don't speak Italian, you'd assume that Due is short for Duemillanove, especially since Due support isn't installed by default, but was in the past when many tutorials were written.