Hello Friends,
I have written IAP to read PART IDENTIFICATION NUMBER for LPC2129. I am using ULINK to burn firmware and want to display part ID on hyperterminal ...but unable to get succed ..am I doing error in my code ...
#include <stdio.h>
#include <LPC21xx.H>
struct iap_non_volatile
{
unsigned int cammand;
unsigned int parameter[4];
};
typedef void (*IAP)(struct iap_non_volatile *in, unsigned int *result);
#define iap_entry ((IAP) 0x7FFFFFF1) // IAP entry point
struct iap_non_volatile iap;
void main (void)
{
unsigned int volatile start;
for (start = 0; start < 1000000; start++)
{
; // wait for debugger connection (about 0.3 sec)
}
while(1)
{
iap.cammand = 54;
iap_entry (&iap, result);
puthex_word(result);
}
}
It is possible to burn firmware using ULINK and read ID using COM port.....Do I have to enter in debug mode ?? when I open my hypertermal windows and try to establish communication ....the code hands up ......I am using keil CARM
Please help me guys
With regards,
Sridhar
---------------------------------
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!
[Non-text portions of this message have been removed]Message
IAP to read part ID
2005-06-15 by Sridhar gadda
Attachments
- No local attachments were found for this message.