Tool/software: TI-RTOS
Hello,
Recently I switched to simplelink.
I've tried the uartcho but the code stacks at:
UART_write(uart, echoPrompt, sizeof(echoPrompt));
I use simplelink 1.30
Thank you for your help.
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,
Recently I switched to simplelink.
I've tried the uartcho but the code stacks at:
UART_write(uart, echoPrompt, sizeof(echoPrompt));
I use simplelink 1.30
Thank you for your help.
Hi Todd,
I've imported the
uartecho_MSP_EXP432P401R_tirtos_ccs
example, I didn't change anything and the code hands on write to com port.
Can you set a breakpoint at the first UART_write and first UART_read in the mainThread function. Then attach the ROV->Tasks->CallStacks picture when you hit the first breakpoint is hit. For example:
Then resume. From what you are saying, you will not hit the UART_read. Please Suspend the target (Alt-F8) and get the same picture. I want to see what call the UART_write is blocked on.
Todd
I've attached a brand new MSP432, created a new workspace imported the uart example.
The code still does not reach the read part in the while code.
Below are 3 screenshots of running and pausing (as I see the threads seams to be running)
I really nead the UART :/
All other examples that I've tried(Sd, spi, basic one) are working.
Thanks!
This back trace makes more sense. The UART_write is blocked on a semaphore waiting for the ISR to run and post the semaphore. Now the question is why isn't the ISR running. How are you connecting to the LaunchPad...via the USB on the board? There should a back-channel UART in that USB connection. Can you confirm you are seeing it on your mac. In Windows I'd look a Device Manager and see the two ports: one is for emulation (COM6 in this case) and the other is the back-channel UART (COM5 in this case):
Did you change any jumpers on the LaunchPad?
I have connected the tx and rx together(loop) right now for the test, unfortunately right now it's not possible to get to work the uart debugger on mac(there is a bug, you can only select COMX as a option but on mac com ports are recognised as tty.uart..) As a workaround I have connected another PC over ttl->usb adapter when I need it.
But I'm quite sure that the problem is in the software.
This is my latest test results:
Test 1:
TI-RTOS for MSP432x -> Ti driver Examples -> UART Examples -> UART Echo.
Everything works, the program writes the echo prompt and goes to while loop where it loops like it should(I have a jumper on tx-rx)
Test 2:
simplelink_msp_432_sdk_1_30_00_40 -> MSP_EXP432P401R -> drivers -> uartecho -> tirtos -> css
The program hangs like I've already wrote.
So the problem is not in the hardware or at least not in the board.
Now is the problem in the simplelink driver or mac? I don't know :/
Thank you for the help
Hi,
I have been able to run the code successfully on my mac. Here are the steps I follow to run the example:
Let me know if this helps,
-- Emmanuel
**Attention** This is a public forum