Re: shell doesn't accept input – Arduino Due
Adam Feuer <adam@...>
toggle quoted messageShow quoted text
I can output characters on the UART0 just fine using printk(). The shell also seems to be able to do output since I see a prompt. I know I can build working software since I built a posix version of the shell examples and they work.
When I send a character to the Arduino Due using Picocom, the UART0 interrupt fires. But when I try to read from the UART0 UART_RHR, I get zero. And if I check the uart->UART_SR, it shows UART_SR_FRAME – a framing error.
The Arduino Due board can read characters just fine from the Arduino software, if I flash an Arduino sketch; or from NuttX RTOS if I build that and flash it onto the board. So the hardware is good. It seems to be something related to how Zephyr configures the board. I've been reading the uart init code and board init code to see what's wrong with it, but can't find a problem.
I have a Segger J-Link debugger and cable I can use with the Arduino Due, but not sure what to look for.
If anyone has ideas on how to debug this, I would love to know them!.
On Sat, Jan 4, 2020 at 10:38 PM Adam Feuer <adam@...> wrote: