Hi,all friends:
I declared a constant arry :
unsigned char index_htm[1108] = { 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0x0d, 0x0a, 0x0d, 0x0a, 0x3c, 0x68, 0x65, 0x61, 0x64, 0x3e, 0x0d, 0x0a, 0x3c, 0x6d, 0x65, 0x74, 0x61, 0x20, 0x68, 0x74, 0x74, 0x70, 0x2d, 0x65, 0x71, 0x75, 0x69, 0x76, 0x3d, 0x22,........}
I want IDE place the constant index_htm[] in flash rom, how can I do?
can I use "const unsigned char index_htm[1108] =..."?
My chip is lpc2378.
Its my IDE below: /*****************************************************/ IDE-Version: Keil uVision3 V3.80
Tool Version Numbers: Toolchain: RealView MDK-ARM Version: 3.50 Toolchain Path: BIN40\ C Compiler: Armcc.Exe V4.0.0.524 Assembler: Armasm.Exe V4.0.0.524 Linker/Locator: ArmLink.Exe V4.0.0.524 Librarian: ArmAr.Exe V4.0.0.524 Hex Converter: FromElf.Exe V4.0.0.524 CPU DLL: SARM.DLL V3.50 Dialog DLL: DARMP.DLL V1.44 Target DLL: ..\TKScope\UL2ARM_TKSCP_DRV_ARM_for_uV3.dll V1.37 Dialog DLL: TARMP.DLL V1.44
/***************************************************/
I am confused, help me ,pls.
I am sorry My bad english .
I am waiting for ur answers.
Hi,
sorry for the delay, I hope you are still reading (mail reminder :-)
const char index_htm[]={0x02,0xda,...}
this should be easy. Type index_htm into the memory window when debugging, and it will show you the location.
Or, because index_htm is already the address :-), so you should be able to do a printf on this. The address of a specific value you will get via
printf("\nAddress: 0x%08x", &index_htm[number]);
BR, /th.
or just search the map file for "index_htm"