cancel
Showing results for 
Search instead for 
Did you mean: 

Initialized data with RVDK 2.1

dj2
Associate
Posted on April 22, 2005 at 15:16

Initialized data with RVDK 2.1

1 REPLY 1
dj2
Associate
Posted on April 22, 2005 at 15:16

I'm using the ARM C compiler in RVDK 2.1 and find (under DEBUG build) that initialized data of the following form does not work:

const char *msg = {''Hello there''};

The string is present in memory after downloading to flash, but the pointer ''msg'' has not been initialized to point to it. Is there some way to get this to work?