Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Flash programming using JTAG

Status
Not open for further replies.

bikashh

Full Member level 5
Full Member level 5
Joined
Nov 28, 2009
Messages
264
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
india
Activity points
3,132
Hello all,
I am a newbie in embedded field and trying to download my program into Flash using JTAG but couldn't.
I've loaded the source file and wrote just a simple program to flash LED ON and OFF. code is written below

#include<LPC23xx.H>

int main(void)
{
int i;
PINSEL4=0xFFFFFFFC;
FIO2CLR=0x00000001;
while(1)
{
FIO2SET=0x00000001;
for(i=0;i<40000;i++)
{;}
FIO2CLR=0x00000001;
}
}


Any help would be appreciable. Thanks in advance
 

why no delay after you turn off led i.e. clear port. if you dont give dely then it will appear that led is always ON,
give same delay for clear within while loop

---------- Post added at 23:11 ---------- Previous post was at 23:09 ----------

why are you not setting the direction of the port pin , as output port?

---------- Post added at 23:13 ---------- Previous post was at 23:11 ----------

check in the simulator if it is working before testing on hardware
 

hello again

i ve with the programming.but now i am unable to load my code in flash memory....is there any settings i need to do while using JTAG as a programmer.

Thanks to all for support.
 

when i try to load my program using JTAG it shows following error
" can not load flash programing algorithm "
Cannot Write to RAM for Flash Algorithms !

what must be the problem please help....

Thank you
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top