Hi all.
I am n the process of evaluating the NRG9160 DK / PCA 10090. We are using Keil µV5.28 and were able to get a basic led / blinky-style, GPIO interrupt driven vi DIPP etc, up and running in RAM with relocated interrupt vector table. SYS_TICK; etc all working well. with little trouble. Since we intend to use another OS ( Lite-OS) we need a console via the UARTs.
Our initial goal is to get a simple interrupt driven serial input/output driven working.
Our assumption, perhaps naïve-:)
- PINs for UART0 26=cts,27=rts,28=rx,29=tx
- configure the pins in PIN_CNF 28 as input, no pull up and connect to buffer, 29 as output , in corresponding regs OUT, OUTSET, OUTCLEAR , DIR correspondingly OUT , 28 is low , 29 is high
then
configure the UART0 at address NRF_UARTE0_S_BASE / 0x50008000UL as follows
PSEL.RX = PIN = 28 , CONNECT
PSEL.TX = Pin 29 - Connect
BAUDERATE 0x01D60000 ( 150200)
CONFIG = NOHWC , no parity , 1 stop bit
ENABLE set
INT = RXRDY enable
NVIC_EnableIRQ(UARTE0_SPIM0_SPIS0_TWIM0_TWIS0_IRQn);
override WEAK handler
void UARTE0_SPIM0_SPIS0_TWIM0_TWIS0_IRQHandler(void ) {
// do something
}
und volia!
Out to work, or__
We load in RAM ( via segger ) an run - the leds blink, the SYS_Tick fires,, Alas! when we open a serial terminal on COM3 ( Hercules running on a WinPC ) and hit a character, nothing happens. At the least we expected to see the interrupt fire. When we inspect the Peripherial registers during debugging we see that all are seemingly properly set, and if we set the corresponding NVIC register for the UART0_xxxxx IRQ, our ISR ( above called ).
What are we missing??
All comments, help or ideas appreciated.
Regards
Ron