Content originally posted in LPCWare by kurtm on Mon Mar 14 09:26:10 MST 2016
I have problems to program my LPC824 parts.
I have two programmers, one LPC-Link 2 and one LPC82x Xpresso V2 mbed.
I have recently updated to latest version of LPCXpresso (8.1.2)
When trying to program flash, I will get error message: Failed on connect: Ee(36). Could not connect to core.
I have modified the LPC82x Xpresso V2 mbed card so that I can connect an external card, but with jumpers so that I still can program the CPU on the board. This has worked OK earlier with several boards and an earlier version of LPCXpresso (7.something). I can still program the CPU on the board, but not external cards. I have tried to program 3 external cards with both my programmers, but I always get the same error message.
I see some brief activity on SWDIO and SWCLK on the chip when programming. I have tried with 47K pullup on SWDIO and 47K pulldown on SWCLK (as fig 11 page 30 in datasheet) and also without resistors on these pins, but there is no difference.
Could someone clarify wat the error code Ee(36) means? It might be helpful to resolve the problem. I think it would be nice with an explanation of all error codes.
Kurt Mirdell
When testing some more, I managed to connect one single time. Flashing was made without any problem. Image loaded was periph blinky. It works and toggles one pin. However, after that it was impossible to do connect again. Same error message. I suspect that there is some connecton problem and shorted the connection length from 30 cm to 8 cm, but still no connect.
I have problems to program my LPC824 parts.
I have two programmers, one LPC-Link 2 and one LPC82x Xpresso V2 mbed.
I have recently updated to latest version of LPCXpresso (8.1.2)
When trying to program flash, I will get error message: Failed on connect: Ee(36). Could not connect to core.
I have modified the LPC82x Xpresso V2 mbed card so that I can connect an external card, but with jumpers so that I still can program the CPU on the board. This has worked OK earlier with several boards and an earlier version of LPCXpresso (7.something). I can still program the CPU on the board, but not external cards. I have tried to program 3 external cards with both my programmers, but I always get the same error message.
I see some brief activity on SWDIO and SWCLK on the chip when programming. I have tried with 47K pullup on SWDIO and 47K pulldown on SWCLK (as fig 11 page 30 in datasheet) and also without resistors on these pins, but there is no difference.
Could someone clarify wat the error code Ee(36) means? It might be helpful to resolve the problem. I think it would be nice with an explanation of all error codes.
Kurt Mirdell
When testing some more, I managed to connect one single time. Flashing was made without any problem. Image loaded was periph blinky. It works and toggles one pin. However, after that it was impossible to do connect again. Same error message. I suspect that there is some connecton problem and shorted the connection length from 30 cm to 8 cm, but still no connect.
The debugger is being told by the server program it can't establish a debug connection to your processor.
Please read the following FAQ:
Regaining debug access to target MCU
If you do not recover debug access after following the above steps, it would help if you increased the log setting and captured the connect sequence.
To increase the log setting, first access your debug configuration. From the menu bar Run -> Debug Configurations -> C/C++ (NXP Semiconductors) MCU Application -> <project name> Debug -> Debugger <tab> -> Target Configuration -> Debug Level. Default is 2, set it to 4.
Next, in the Preferences, set the DEBUG_TRACE setting to 0x30000. This is Preferences -> LPCXpresso -> Debug Options (Advanced) -> Extended debug trace (DEBUG_TRACE).
Attempt to connect the debugger once again, and copy the gdb-traces and project debug console output to separate files and attach to your response.
Thanks and regards,
LPCXpresso Support