Content originally posted in LPCWare by abhilash.bidari on Mon Mar 19 00:32:16 MST 2012
I also tried to split the code memory itself, as you shown "Dataflash".
For me it is compiling and map file is generating properly. But when i download and start to run the code, control is going to "hardfault handler" function insted "main" function.
What is the problem..
whether i shold not do like below.
__attribute__ ((__section__(".flash.data"))) const char dataval[4] = {1,1,1,1};
While declaring the i shold not define the variables. If not then when i should define the variables.