Firmware Upgrade via ISP in LPC2364

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Firmware Upgrade via ISP in LPC2364

ソリューションへジャンプ
1,860件の閲覧回数
neethugprem
Contributor II

Hi,

We are using LPC2364 controller.

As we are not able to access ISP pin in our actual design, we were trying to reinvoke ISP by making ISP pin low.

It is found that the controller is not boot mode.

I found a code in the below link:

LPC2100: Entering ISP mode from user code 

As it was for LPC2100 , I made few changes.

The changed code is as below.

void StartISP(unsigned long wdticks)
{
               void (*bootloader_entry)(void) = (void*)0;

               /* reset PINSEL (set all pins to GPIO) */
              PINSEL0 = 0x00000000;
              PINSEL1 = 0x00000000;
              PINSEL2 = 0x00000000;
              PINSEL3 = 0x00000000;
              PINSEL4 = 0x00000000;
              PINSEL7 = 0x00000000;
              PINSEL10 = 0x00000000;

              /* reset GPIO, but drive P2.10 low (output) */
              FIO2DIR = (1<<10);
              FIO2CLR = (1<<10);
            
              /* power up all peripherals */
              PCONP = 0x00280FFE; /

              /* disconnect PLL */
              PLLCON = 0x00;
              PLLFEED = 0xaa;
              PLLFEED = 0x55;

              /* set peripheral bus to 1/4th of the system clock */
              APBDIV = 0x00;
              /* map bootloader vectors */
              MEMMAP = 0;

             

              /* jump to the bootloader address */
              bootloader_entry();
}

Pls help me to fix the problem.

 

Regards,

Neethu

ラベル(1)
1 解決策
1,539件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

Hi Neethu,

You can change your code with AN10356 “Entering ISP mode from user code”, available on the following link:

http://www.nxp.com/documents/application_note/AN10356.pdf

Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

4 返答(返信)
1,539件の閲覧回数
neethugprem
Contributor II

Hi Carlos,

I used AN10356 and firmware upgrade is working fine now. Thank you very much for your support.

Regards,

Neethu

0 件の賞賛
返信
1,540件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

Hi Neethu,

You can change your code with AN10356 “Entering ISP mode from user code”, available on the following link:

http://www.nxp.com/documents/application_note/AN10356.pdf

Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,539件の閲覧回数
neethugprem
Contributor II

Hi Carlos,

I tried this too, but it not working..

Plz do help me.

Regards,

Neethu

0 件の賞賛
返信
1,539件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

H Neethui,

 

Maybe you want to use 'Reinvoke ISP' IAP command? You can refer the attached document, and to the AN of the following link:

http://www.nxp.com/documents/application_note/AN10256.pdf

Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信