LPC2103 ISP after software interrupt doesn't work

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

LPC2103 ISP after software interrupt doesn't work

578件の閲覧回数
bunny_stew
Contributor I

Hello,

I'm using the following code for software interrupt:

                VICIntSelect        = 0x00000000;
                VICIntEnClr            = 0xFFFFFFFF;
                VICSoftIntClr        = 0xFFFFFFFF;
                VICProtection        = 0x00000000;                
                WDTC        = 0x32;
                WDMOD        = 0x03;
                WDFEED    = 0xAA;
                WDFEED    = 0x55;


After reset, I can't use my CP210x USB to UART bridge with Flash Magic tool. When I'm trying to flash LPC2103, Flash Magic tool always says: "Operation failed. Failed to autobaud Step 1". After I unplug the power cable of my controller and plug it again, Flash Magic tool works fine. Could someone help me, pls?

My LPC2103 settings:
CCLK = PCLK = 67.5Mhz
FOSC = 13.56 MHz.

Best regards,

ラベル(1)
0 件の賞賛
1 返信

357件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

Hi Kim,

Have you ensured to avoid a ISR loop (properly clearing the flags)? If this happens, the processor will hang, and unable to proceed to other interrupts, and should be recovered just by a Power-On Reset.

You could also take a look at the following link for additional reference:

http://www.ocfreaks.com/lpc2148-interrupt-tutorial/


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 件の賞賛