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
http://www.keil.com/support/man/docs/uv4/uv4_flash_programming.htm
The above page may help. Basically, you need to configure the [Debug] and [Utilities] tabs correctly.
But, LPC23xx is old, maybe you should start with some Cortex-M MCU, like LPC17xx/LPC13xx/LPC11xx.
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
erase sectors program verify reset and run
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