You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I add like below then UART is working fine 'plat->uart_dev[index].device_path = "/dev/ttyO1";'
Why devpath is not working even the string is correct. Kindly guide me to resolve the issue. I have taken phyboard-wega reference. same code for wega board is working.
The text was updated successfully, but these errors were encountered:
Maybe check formatting/string termination on your written devpath? Just like you pointed out, this works with a constant literal so I doubt it's a mraa issue.
@vsivanagulu, please post syslog contents around the time of your program run. The error message you post is not from the code you posted, but from UART example code, right? Posting full code you've changed may be helpful as well, but we can start with syslog.
I ma trying to add uart to my custom am335x based board . I have issues with devpath in uart initialization
mraa_result_t mraa_cosmic_uart_init_pre(int index) { char devpath[MAX_SIZE]; snprintf(devpath,MAX_SIZE,"/dev/ttyO%u",index); if (!mraa_file_exist(devpath)) { syslog(LOG_ERR, "uart: Device not initialized"); }else { plat->uart_dev[index].device_path = devpath; return MRAA_SUCCESS; } return MRAA_ERROR_INVALID_PARAMETER; }
In above I have printed devpath values
if I add like below then UART is working fine
'plat->uart_dev[index].device_path = "/dev/ttyO1";'
Why devpath is not working even the string is correct. Kindly guide me to resolve the issue. I have taken phyboard-wega reference. same code for wega board is working.
The text was updated successfully, but these errors were encountered: