Other Parts Discussed in Thread: HALCOGEN
For a project i need the sci communication.
I am using the LaunchpadXL2 570LC43 so the TMS570LC43x from TI. So i use Halcogen and CCS for the programming (and TeraTerm so far).
i want to send some data over the sci(uart) connection to a LTE Module. for this i made struct in a header file TransUart.h where i have a basis of how long my field is what i want to send, which channel (i.e. channel 1 = LED, Channel 2 = temp sensor etc.) is selected for data, and which ID (in led example which LED i mean) and command (ON/ OFF) is behind it. basically just data i want to send from a to b over uart and then into the internet.
For this i devided my communication in 4 parts. 1) writing from uC to laptop , 2) uC reading from laptop, 3.) Lte module writing to laptop and 4.) lte module reading from laptop.
What i already achieved:
1) i can send helloworld over sci to Teraterm using the usb TTL converter Cp2102. Here i need maybe little help how i can send my struct to the teraterm.
what i need:
i need a function how the uC can read bytes. and also a hint how i can be sure the microcontroller read it (like a print or something just that i see ok it was successfully read).
it would be great if somebody can give me hints how to make the struct to teraterm and give me ideas how to make the reading from sci.
i am getting really desperate since i have to make this project on time (end of september) and it is the first part in the chain.
i will attach my code so far. so please also look in halcogen (since i am programming beginner) if there is everything correct for the communication.
regards,
Markus