Dear Friends,
Hello,
I want to read/write flash memory of lpc1752. But it was not working So i tried to read the part id. But when i debug my code in keil uvision4 my code stuck in HardFault_Handler here is my code :
typedef void (*IAP)(unsigned long [],unsigned long[]); IAP iap_entry; IAP iap_entry = (IAP) IAP_LOCATION; unsigned long iap_read_part_id(void) { unsigned long command[5]; unsigned long result[5]; command[0] = 54; iap_entry(command,result); printf("result = %X\r\n",result[1]); return result[1]; }
Please help me to find out why HardFault_Handler occurs and how to resolve this problem Thank You ...