Content originally posted in LPCWare by nkarakotas on Sat Mar 03 08:19:50 MST 2012
Hello,
Whenever I try to use the __DATA macro the system crashes. The value in debug is updated I cant understand what is going? I would like to add the ram_heap of LWIP on RAM2 as .data to separate them and know how much heap I have got. Only __BSS works.
__DATA(RAM2) char data_buffer[1024] ;
int main( void )
{
sys_sem_t lock;
data_buffer[0] = 'P';
data_buffer[1] = '\n';
data_buffer[2] = '\0';
printf("%s",data_buffer);
}
Regards,
Nick