LPC536: Can not enter background mode after changing a register

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC536: Can not enter background mode after changing a register

跳至解决方案
637 次查看
jsoccerd
Contributor II

I'm programming with a custom board that has the LPC536JBD64 processor. The first board I changed the MAINCLKSELA register in the SYSCON peripheral to use the FRO1mhz clock. Then I got a programming error stating that it "Can not enter background mode" with a pemicro multilink. With the pemicro Cyclone programmer I get the error 0007. I then tested a second board with different programs and the programming for that board worked fine. I then tried to recreate the issue by changing the value in the MAINCLKSELA register again and now the same problem has occurred with that board. I'm assuming because I didn't enable bits for that FRO1mhz clock that the board doesn't work. But why would that cause an issue with programming the board over SWD? And is there anyway to unbrick these boards?

0 项奖励
1 解答
622 次查看
jsoccerd
Contributor II

Found a solution on how to unbrick the board. You can use the flashmagic tool and select a processor with a similar enough flash and RAM memory to flash a new program on the board. There is no individual support for the LPC5536.I used the LPC55S66 processor over UART setting. To set the board in ISP mode go to page 909 on the reference manual. To find the UART pins go to page 910 on the reference manual(both in Boot Rom chapter). I am still curious as to why changing the register bricks the SWD programming.

在原帖中查看解决方案

0 项奖励
1 回复
623 次查看
jsoccerd
Contributor II

Found a solution on how to unbrick the board. You can use the flashmagic tool and select a processor with a similar enough flash and RAM memory to flash a new program on the board. There is no individual support for the LPC5536.I used the LPC55S66 processor over UART setting. To set the board in ISP mode go to page 909 on the reference manual. To find the UART pins go to page 910 on the reference manual(both in Boot Rom chapter). I am still curious as to why changing the register bricks the SWD programming.

0 项奖励