This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how can I place a constant in flash rom

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.

Parents
  • Thank Thorsten de Buhr very much.
    I thunk nobody answer me .
    You are intense,thank you.

    I have another confused problem,help me,pls.

    I compiled the project in Keil uVision3,and I want to know the place (the array after compiled be in address in flash) .

    i.e. how can I find the place(address) after

     const char index_htm[]={0x02,0xda,...}
    

    be compiled? I found the project.map file,but I cant find the address of the compiled array in flash.

Reply
  • Thank Thorsten de Buhr very much.
    I thunk nobody answer me .
    You are intense,thank you.

    I have another confused problem,help me,pls.

    I compiled the project in Keil uVision3,and I want to know the place (the array after compiled be in address in flash) .

    i.e. how can I find the place(address) after

     const char index_htm[]={0x02,0xda,...}
    

    be compiled? I found the project.map file,but I cant find the address of the compiled array in flash.

Children