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

LPC2368 In_Application Programming

Hai all;

I am working for an automotive project using LPC 2368.Here I want to store data from RAM to 512k FLASH and to read back while program is running.

I wrote some programs such as IAP for LPC2129 and
Flash programming from C:\Keil\ARM\FLASH\LPC_IAP2_512.

In both cases while writing data to Flash from RAM(I wrote some values to RAM),the data in FLASH remain zeros,but in a RED colour.

Will you please tell me ,What is the reason behind this.

Sincerely shamsudheen OP

Parents
  • Hi Dear Shamsudheen!

    I am trying to write some data to flash memory of LPC23xx , i have also used the same Flash code provided in the Keil Folder..LPC_IAP2_512...and using the main function same as you have posted
    which is as below..

    #include "lpc23xx.h"
    #include "..\FlashOS.H"
    #include "typedef.h"

    int main()
    {

    U8 bTempBuff[512]={1,2,3,4,5} ; //RAM MEMORY LOCATION

    U8 bStoreToRam[512]={'\0'}; //STORE TO RAM LOCATION

    U8 b_Count = 0;

    Init(0x00058000,4096000,2);

    EraseSector (0x00058000); //ERASE SECTOR NUM

    ProgramPage(0x00058000, 512 ,bTempBuff);

    return(0);

    }

    But i get the following error after compilation can you point out what could be the problem...

    LPC_IAP2_512.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
    LPC_IAP2_512.sct: Not enough information to list image symbols.
    LPC_IAP2_512.sct: Not enough information to list the image map.
    LPC_IAP2_512.sct: Finished: 2 information, 0 warning and 1 error messages.
    "LPC_IAP2_512.axf" - 1 Error(s), 0 Warning(s).

Reply
  • Hi Dear Shamsudheen!

    I am trying to write some data to flash memory of LPC23xx , i have also used the same Flash code provided in the Keil Folder..LPC_IAP2_512...and using the main function same as you have posted
    which is as below..

    #include "lpc23xx.h"
    #include "..\FlashOS.H"
    #include "typedef.h"

    int main()
    {

    U8 bTempBuff[512]={1,2,3,4,5} ; //RAM MEMORY LOCATION

    U8 bStoreToRam[512]={'\0'}; //STORE TO RAM LOCATION

    U8 b_Count = 0;

    Init(0x00058000,4096000,2);

    EraseSector (0x00058000); //ERASE SECTOR NUM

    ProgramPage(0x00058000, 512 ,bTempBuff);

    return(0);

    }

    But i get the following error after compilation can you point out what could be the problem...

    LPC_IAP2_512.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
    LPC_IAP2_512.sct: Not enough information to list image symbols.
    LPC_IAP2_512.sct: Not enough information to list the image map.
    LPC_IAP2_512.sct: Finished: 2 information, 0 warning and 1 error messages.
    "LPC_IAP2_512.axf" - 1 Error(s), 0 Warning(s).

Children
No data