Project

General

Profile

Error message when changing UART

Added by Johan Henning about 1 year ago

When changing from (for example) UART_1 to UART_0 an error message pops up.
Actions:
1. change in the setup block the UART
2. apply changes
3. close the setup block for the UART
4. open a receive or transmit block for the UART
5. error message pops up


Replies (3)

RE: Error message when changing UART - Added by Shawn Sebastian Pulle (ฌอน) about 1 year ago

Hi Johan,

Thank you for the feedback.
This error message is set to trigger when the device id chosen in the receive or transmit block is not compatible with the device id of the setup block. If the model uses both device ids (i.e. two setup blocks) this error will never occur.
This warning is set in place to help avoid a compilation error and having to read through the compilation logs to figure out the cause.

RE: Error message when changing UART - Added by Johan Henning about 1 year ago

Hello Shawn,

I understand. But the warning is thrown too fast in my opinion. This condition (is it compatible) should be checked when closing the receive or transmit block, not when opening it. Now it is impossible to change from uart_0 to uart_1 or the other way around without this warning which is not relevant when attempting to change the uart.

A work-around to avoid the warning is to change first the receive and transmit blocks and then the uart setup block. But when then forgetting to change the uart setup block no warning is generated at that moment although there is a mismatch in the blocks setup. Maybe it is better to leave out the warning and let the compiler detect it.

Regards,
johan.

RE: Error message when changing UART - Added by Shawn Sebastian Pulle (ฌอน) about 1 year ago

Hi Johan,
Thank you for the feedback.
We agree on the warning being generated while trying to change the device id is not ideal. Your suggestion to give the warning on close condition is a possible solution to this issue.
We will look into this issue while considering your suggestions and feedback.

    (1-3/3)