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 to start a new project that supports Flash Download and Erase

Hi, I am trying to create a project for MCB2300 that supports FLASH download and Erase.

Is there a procedure to do this. I noticed that Blinky Program has a FLASH directory.

When I create a project from scratch there is no Flash directory in my project.

Thanks, Gary

Parents Reply Children
  • Thank You John, I have followed the instructions given on this webpage completely I think.

    I see the following pop up when I try to download to flash.

    checked boxes

    * use target driver for flash programming
    * use Debug Driver
    *update target before Debugging

    flash download setup

    *erase sectors
    *program
    *verify
    *reset and run

    Ram for Algorithm

    Start 0x4000_0000 size 0x0800

    LPC200 IAP2 512kB Flash On-chip Flash 500k 00000000H - 0007DFFFH

    checked boxes

    * use target driver for flash programming
    * use Debug Driver
    *update target before Debugging

    flash download setup

    erase sectors
    program
    verify
    reset and run

    Ram for Algorithm

    Start 0x4000_0000 size 0x0800

    LPC200 IAP2 512kB Flash On-chip Flash 500k 00000000H - 0007DFFFH

    At the moment I am also getting this error which I am trying to figure out.

    main.c(76): error: #20: identifier "T0_IRQHandler" is undefined

    The files in my project at this time are:

    LPC2300.s

    main.c LCD.h LPC23xx.h stdio.h

    strcopy.s
    Retarget.c
    IRQ.c LPC23xx.h

    LCD_4bit.c

    Serial.c

  • I found that I had commented out the following lines in main.c

    extern __irq void T0_IRQHandler (void);
    extern __irq void ADC_IRQHandler (void);

    That got rid of the error I was getting.

    Then I have had partial success:

    I am able to download to flash.

    But I am not able to erase the flash for some reason.

  • I notice when I download to flash it automatically erases the flash first.

    My question now is how can I get the IDE menu option to erase to flash to work.

    Also, I have recently bought some newer ARM boards. But I am interested in learning/exploring
    how to program ARM7TDMI-S ARM instruction set assembly right now.

  • -> I notice when I download to flash it automatically erases the flash first.
    My question now is how can I get the IDE menu option to erase to flash to work. <-

    Sounds like you can download and debug your LPC23xx; but fails to do a separate erase.
    If so, your [Debug] tab configuration is correct; but [Utilities] tab configuration is not.

  • Hi John, Looked at the Utilities area. Can not see a difference with other projects in this
    pop up area. I am happy though that I can download to flash and it erases when I do that.
    Thanks for your help, Gary