Hi,
I have 2 questions.
1) I have 1 wire uart programming connected in the following setup. A ftdi cable (TTL-232R-3V3 cable) with rx and tx connected with a 1k resistor, with that connected to p05. The ground of the uart cable is connected to ground of the board. The board is powered by batteries, 3V. When I go to program it in the smart toolbox, it always just responds
Error while waiting to receive STX from FTDI device.
any thoughts on why that might be?
2) I disabled the swdio/swclk pins using the SetBits16(SYS_CTRL_REG, DEBUGGER_ENABLE, 0); command. Obviously now when the code is running I can no longer program it over jtag, but I don't know why I can't still program it when the Keil J-LINK settings -> Connect & Reset Options is set to connect under reset and reset is any configuration. Is there any way to still program over jtag after the debugger has been disabled in the user code? I've tried all the connect & reset options and eventhough it does reset the board, the device is never found by the Keil interface.
Hi AdamShier,
Thanks for your queries.
Thanks, PM_Dialog
1. I did select single wire uart, I can probe the line and get back to you.
2. The firmware that disables the debugger is in the spi flash. The firmware does not re-enable the debugger, I would like to add a method to re-enable it, but I can't currently do that since I can't re-program it. I disabled the debugger because the pins are used in the firmware as LED control pins, but I still need to re-program the device. So I was wondering if now that the firmware in the spi flash disables the debugger, is there any way to program the device over jtag with some configuration changes (ie program under reset).
Thanks.
Hi AdamShier,
Thanks, PM_Dialog