This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
Hello collegues,
I need an advise of how to work with 2 UART in TI RTOS.
I can track with the debugger that it based on uart.c (part of TI-RTOS)
I have added the element in array
const UART_Config UART_config[] = { { .fxnTablePtr = &UARTTiva_fxnTable, .object = &uartTivaObjects[0], .hwAttrs = &uartTivaHWAttrs[0] }, { // I added this !!! .fxnTablePtr = &UARTTiva_fxnTable, .object = &uartTivaObjects[1], .hwAttrs = &uartTivaHWAttrs[1] }, {NULL, NULL, NULL} };
but it doesnt help
the loop over this array is iterated in uart.c. and debugger doesn see my additions.
Must I recompile the TI-RTOS?
Is there other way?
Thanks
Hello Yuliy,
I am a little unclear about the situation. Let me ask a couple questions to clarify:
1) Are you building and re-loading the project after adding these lines?
2a) If so, what is the difference between build and compile from your point of view?
2b) If not, are you adding these lines while in debug mode?
>1) Are you building and re-loading the project after adding these lines?
Yes, I am
>If so, what is the difference between build and compile from your point of view?
build = compile+link
>If not, are you adding these lines while in debug mode?
no, add the lines in Code without recompiling+linking is useles.
Hello Yuliy,
Okay, just wanted to make sure we are on the same page about debug and building first.
Yuliy Poluyanov said:Must I recompile the TI-RTOS?
No, there should be no need for this. Which uart.c file are you changing? Is there an example project you are basing this change of?
I got the solution.
my error I changed the UART_config array for nonDMA version. and of course there was no effect, this was simply not been took into compilation..
Thanks everybody