-
Notifications
You must be signed in to change notification settings - Fork 951
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
UART_OPTIMIZED flag seems to be not correctly used #13
Labels
Comments
Hi @jmchiappa , |
I'm still working on 2017.1.19... Okay, I note that this one is deprecated.
But until the last one 2017.6.2 will be fixed for firmata, I'm using the
first one.
Anyway, I will have a look at the last one... :-)
Thank you.
Jean-Marc
Le 7 juin 2017 9:13 AM, "Frederic Pillon" <[email protected]> a
écrit :
… Hi @jmchiappa <https://github.com/jmchiappa> ,
Since this commit:
<61a2fd8#diff-825f8b96598f3542ec96a1ba1124892fL77>
UART_OTPIMIZED is no more use at least for this core.
On which repo you work?
Thanks in advance
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY9Lx5UcHJHTqzAPF2-lLqHhqCeyv2ILks5sBk2NgaJpZM4Nx0Yl>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
in uart.c file, UART_OPTIMIZED is defined and set to 0 in order to not use the optimization.
But all tests are based on #ifdef UART_OPTIMIZED, and of course, the evaluation of the expression is true (even if UART_OPTIMIZED is set to 0, the UART_OPTIMIZED flag is defined).
When I replace
#define UART_OTPIMIZED 0
by
#undef UART_OPTIMIZED
the behavior is really strange. UART Rx callback fall in error 0x08 or 0x05 sometimes.
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { uart_id_e uart_id = get_uart_id_from_handle(huart); if(NB_UART_MANAGED == uart_id) { return; } printf(">>UART Error callback uart id %i : ErrorCode=0x%x\n\r",uart_id,huart->ErrorCode); while(1); uart_deinit(uart_id); uart_init(uart_id, g_UartHandle[uart_id].Init.BaudRate); }
Do you have any idea why the code falls in error ?
Thank you,
Jean-Marc
The text was updated successfully, but these errors were encountered: