Using EMC on LPC1788

I am using LPC1788 and have successfully written EMC code. H57V2562GTR (SDRAM 16Mx16) is interfaced with the controller. Two ICs are used in parallel to write 32Bytes (16MSB in one chip and 16LSB in other).
I have tested the code and it works fine (The read and write operations).

I know that by using __attribute__((at(address))) i can define variables at specific memory address.

Will i have to initialize the EMC before defining the variables in the external memory area?

Parents
  • I solved this by unchecking the "default check box off-chip RAM1" in the "options for target->Read/write memory areas".

    I added the ini file from the "options for target -> debug -> initialization file".
    but i get the following error in the command window

    BS \\edt_tx\../source/main.c\103
    WS 1, 'i
    WS 1, 'i
    *** error 65: access violation at 0xFFFFFFF4 : no 'write' permission
    


    kindly help me figure out whats wrong?

Reply
  • I solved this by unchecking the "default check box off-chip RAM1" in the "options for target->Read/write memory areas".

    I added the ini file from the "options for target -> debug -> initialization file".
    but i get the following error in the command window

    BS \\edt_tx\../source/main.c\103
    WS 1, 'i
    WS 1, 'i
    *** error 65: access violation at 0xFFFFFFF4 : no 'write' permission
    


    kindly help me figure out whats wrong?

Children
More questions in this forum