AnsweredAssumed Answered

MQX task hangs on Vybrid UART0_C4 register read

Question asked by Gordon Smith on May 29, 2015
Latest reply on Jun 12, 2015 by Gordon Smith

I am using MQX 4.0.2 on M4 core of Vybrid SOM with Linux running on A5 core.

I modified mqx/examples/hello to write to "ttya:".

In DS-5 debugger, when fopen( ttya:, default mode) call gets to _kuart_change_baudrate() and I step over C4 register read, nothing more happens. C4 read is:

    sci_ptr->C4 &= (~ UART_C4_BRFA_MASK);

I verified read problem by first running:

    uint8_t c4 = sci_ptr->C4;

sci_ptr value is 0x40047000, which looks right. I don't know what happened to the task, I'm new to MQX and DS-5.

 

Does anyone know what I can look at to troubleshoot this?

 

user_config.h

#define BSPCFG_ENABLE_TTYA       1

#define BSPCFG_ENABLE_ITTYA      0

 

hello.c

char const * const deviceSci0 = "ttya:";

hndSCI0 = fopen( deviceSci0, BSP_DEFAULT_IO_OPEN_MODE );

Outcomes