What changes do I have to do in order to build and upload a code that was written for an Arduino DUE (ATSAM3X8EA-AU) to a ATSAM3X4EA-AU (the same one with half flash memory) ? As I understand it, the two chips are exactly the same, the only thing changing being the quantity of flash memory. What impact does it have on the build and upload processes considering I have created a board like the Arduino DUE but equiped with an ATSAM3X4EA-AU microcontroller ?
Thank you for your help and sorry if the question was already answered, I didn't find it.
I want to know if the process will be time consuming. It would help a lot if someone could point out what I would have to change in the build and upload process.
I'm not surprised. Due was relatively unpopular, and while there was occasional talk of moving onto smaller chips, I don't recall any interest in moving it to the same large chip with less memory.
At a guess, the main thing you'd need to change would be the linker script in
.../packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x/linker_scripts/gcc/flash.ld
flash should be OK (if you don't overrun), but you probably have to update "ram" to make the two smaller SRAM regions map into a single contiguous chunk.
Thank you westfw for your time and your help. Unfortunately I won't have the opportunity to test it right now, but if I do I will post what kind of modifications were to be done.