Re: Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-13 Thread James Dougherty
Hi Greg, Thank you for your suggestions; I did add the -mlong-calls to the platform Make.defs -ARCHCFLAGS = -fno-builtin +ARCHCFLAGS = -fno-builtin -mlong-calls I tried it out, same issue. Let me know if you have other ideas; I wonder if anyone has done in-system programming like this before wit

Re: Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-12 Thread James Dougherty
Hi Greg, No,l I don't, the relevant extract from make V=1 is as below! arm-none-eabi-gcc" -- -fno-builtin -Wall -Wstrict-prototypes -Wshadow -Wundef -fno-strict-aliasing -g -Os -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -I. I will test that out tomorrow... Thank you! -James On Mo

Re: Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-12 Thread Gregory Nutt
Do you have the compiler option -mlong-calls selected? That is necessary in order to call from the FLASH address space (at 0xxx ) to the SRAM address space (2xxx ).