I am using a SAMV71 Xplained Ultra development card with Atmel Studio 7.0.1417.
Up to now, I have been working by compiling my project so that the code is in the embedded flash memory. This works fine, however, I realize this memory has a finite number of write cycles.
During iterative debug, I would like to be able to compile my program to the on-chip RAM.
These are the options for that I currently have for the linker:
arm-none-eabi-gcc -mthumb -Wl,-Map="$(OutputFileName).map" -Wl,--start-group -lm -Wl,--end-group -L"../src/ASF/thirdparty/CMSIS/Lib/GCC" -Wl,--gc-sections -mcpu=cortex-m7 -Wl,--entry=Reset_Handler -Wl,--cref -mthumb -T../src/ASF/sam/utils/linker_scripts/samv71/samv71q21/gcc/flash.ld -Wl, -u,vfprintf
I assume that I need to modify the linker script called 'flash.ld'. Do I need to use the "SAM-BA" utility to download my code to RAM? Or can this be done directly from Atmel Studio?
Any tips would be appreciated.
PS: I assume that there is no simulator/emulator for the samv71q21 device. Is this correct?