I got this to appear on UART2:

NuttShell (NSH)
Welcome to NuttX on the SAMA5D27-XULT :)
nsh>

But it doesn't accept any input.

Here's the changes I had to do to make it get this far:

https://github.com/apache/incubator-nuttx/compare/master...adamfeuer:feature/sama5d27-xult-improvements

The change to arch/arm/src/sama5/hardware/_sama5d2x_pinmap.h <https://github.com/apache/incubator-nuttx/compare/master...adamfeuer:feature/sama5d27-xult-improvements#diff-2481bd3e43bf9821ba88eb9df03c2776> is incorrect.  Instead, you need to add this to the sama4d2-xplained/include/board.h file:

#define PIO_UART2_RXD PIO_UART2_RXD_3
#define PIO_UART2_TXD PIO_UART2_TXD_3

The pinmap.h should not be modified.

I don't understand the lines you changed to arch/arm/src/sama5/sam_config.h <https://github.com/apache/incubator-nuttx/compare/master...adamfeuer:feature/sama5d27-xult-improvements#diff-0e1b0fb25a7552129e616cd07e59afee> so I am suspicious of that.  I don't really know what you are doing there.  Certainly you need to remove the '1' form '# undef SAMA5_HAVE_DBGU_CONSOLE 1' in any case.

The changes to arch/arm/src/sama5/sam_serial.c <https://github.com/apache/incubator-nuttx/compare/master...adamfeuer:feature/sama5d27-xult-improvements#diff-f7bf8fc9319f3ed08819926c8334ce8f> are certainly important bug fixes.  Can you send those (plus the typo fixes) as patches to d...@apache.org -- or submit a PR against github.com/apache/incubator-nuttx?

Reply via email to