lpcware

lpc1837 SWD-download data to SPIFI (IAR EWARM)

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Dill on Tue Sep 02 02:09:24 MST 2014

on the flashless parts this just works, what do I have to do on parts with internal flash?

I create a section in the linker and tehn put a variable there. But the memory is not filled on download.
I think I have to use a macro file to do the SPIFI setup, but I can't get it to work. Is there any running example how to do this?


// in the linker script
define symbol __region_SPIFI_start__  = 0x14000000;
place at address mem:__region_SPIFI_start__ { section spifi_data_section };

// in the .c file
static const __root uint8_t spifi_var[256] @ "spifi_data_section" = {1, 2, 3};

Outcomes