Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jn516x: enable both UARTs while console is on UART1 makes bus exception #1314

Closed
mmajchrzycki opened this issue Oct 20, 2015 · 1 comment · Fixed by #1315
Closed

jn516x: enable both UARTs while console is on UART1 makes bus exception #1314

mmajchrzycki opened this issue Oct 20, 2015 · 1 comment · Fixed by #1315

Comments

@mmajchrzycki
Copy link

I tried to enable both UARTs on JN5168 chip and redirect printf output to UART1. I changed the putc function in:
https://github.com/contiki-os/contiki/blob/master/platform/jn516x/lib/slip.c#L442
to use uart1_writeb. I also enabled the UART1 in:
https://github.com/contiki-os/contiki/blob/master/platform/jn516x/Makefile.jn516x#L74
and added the uart1_init in contiki-jn516x-main.c. However the Contiki makes a BUS EXCEPTION during boot, because of that line:
https://github.com/contiki-os/contiki/blob/master/platform/jn516x/dev/uart-driver.c#L164
The printf should be changed to DBG_vPrintf

@simonduq
Copy link
Member

Thanks for the bug report, now addressed in #1315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants