We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hai all;
I am doing a project in LPC2368. Here I am using 512k FLASH of LPC2368 for storing some critical (real time) data .I reffered C:\Keil\ARM\Flash\LPC_IAP2_512 for flash programming.
Here I want to use last sector of available 504K (sector no 27(0 -> 27 )). In NXP user mannual UM10211 it is mentioned that, we can use this sector for storing the user data .
But in IAP.s of C:\Keil\ARM\Flash\LPC_IAP2_512 not using last sector(27) of starting address 0x0007D000.
Will you please tell me that ,If I am using that sector will be there any problems in futre.
Will you please tell me that,is IAP programming (both writing and reading) possible without tournoff the PLL.(If I am switchoff PLL ,some data's not writing properly.
sincerly shamsudheen OP
LPC IAP2 512k Flash Algorithm (FlashPrg.c) will correctly program also sector 27.
You can also use the PLL but then you need to correctly setup the CCLK variable (CPU Clock in kHz) which is used by IAP functions (adapt the Flash Init function).
Dear sir;
It is working fine for CCLK =4000Hz (IRC oscillator speed)as in init() function.But it is very slow compared to 12 MHz using PLL. Also I want to use USB and CAN module of LPC2368 in this project. While CAN module is working and if I am going for an IAP writing ,It will turned off PLL for some time and this is affecting my CAN transmission. Will you please tell me that ,Can IAP programming work around 12MHz(PLL range) or without turning off PLL.
Sincerely shamsudheen OP
You can use IAP with any CPU clock as long as you provide that clock value to the IAP functions.
For example when 12MHz PLL clock is used then change the Init function to setup CCLK=12000.