Re: Writing to UART_B of D2000 with Zephyr
MIKHALEV, Vasily <vasily.mikhalev@...>
Hi Felipe,
I am doing good. How are you?
Thank you very much for your help!
Did you check the pointer received to you dev_b variable after a call of device binding? is it null?
I’ve just checked it. Not it’s not null.
- Check the platform pin-mux to see if uart pins that goes to your pc match with the uart that you're trying to use; - Also, in pinmux check if these pins are set to behave as uart function before you use/configure the uart;
Both seem to be correct. When I have a QMSI 1.1 project instead of Zephyr 1.4, I am able to see the messages on the UART B with exactly the same settings.
- did you configured the uart connection parameteres? eg.: baud rate, start/stop bit? I am using the following configurations:
CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=n CONFIG_UART_QMSI_0=y CONFIG_UART_QMSI_0_HW_FC=n CONFIG_UART_QMSI_0_BAUDRATE=57600
#CONFIG_UART_QMSI_1=y #CONFIG_UART_QMSI_1_HW_FC=n #CONFIG_UART_QMSI_1_BAUDRATE=57600
Best, Vasily
From: Felipe Neves [mailto:ryukokki.felipe@...]
Sent: mardi 31 janvier 2017 11:07 To: MIKHALEV, Vasily <vasily.mikhalev@...> Cc: zephyr-users@... Subject: Re: [Zephyr-users] Writing to UART_B of D2000 with Zephyr
Hi Vasily! How are you doing? some points that can help you: - Did you check the pointer received to you dev_b variable after a call of device binding? is it null? - Check the platform pin-mux to see if uart pins that goes to your pc match with the uart that you're trying to use; - Also, in pinmux check if these pins are set to behave as uart function before you use/configure the uart; - did you configured the uart connection parameteres? eg.: baud rate, start/stop bit? Feel free to ask any questions, I will be happy to help you :) Best, Felipe
2017-01-31 7:56 GMT-02:00 MIKHALEV, Vasily <vasily.mikhalev@...>:
Felipe S. Neves Embedded software & systems engineer Skype: fneves1989 +55 11 96610 – 0855 |
|