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.
Hi,
I am trying to start UART communication from the TMS570LS12x HDK in order to send data to computer terminal. I have followed the SCI2 tutorial (www.youtube.com/watch and got it working. However, I am trying to implement UART communication in an existing application. Code generation through HALCoGen was nice when creating a new project, but I have problems on how to go forward with this without HALCoGen...
I have tried the code from www.ti.com/.../spna124a.pdf CCS does not recognise the SciREG1 or SciReg1 command.
What i want to do is to send some data I am generating in my existing code through the computer via. UART on the TMS570. I dont think i need an UART interrupt for this, because it is event driven, and I am not sending any information to the TMS570.
Do you have any pointers on how to go forward with this? I am quite new to the TI MCU family and CCS.
Kind Regards
Markus
Hi Chuck,
So what i tried now is:
1) Made a copy of the code in CCS/new project to test the SCI.
2) In HalCoGen: open - project - (copy of project) - LS31x_FlexRay_test1.hcg. Then i followed the steps of the video. (I only enabled the SCI2 driver as in the video), then generate code.
3) Then i launced CCS and tried to Build Debug for the project. 26 errors occured, mainly #1965 "Cant open source file ".h" and "gmake: ** [] error 1"
4) I then went in to properites of the project - include options and included the /include folder. I then got 83 Errors:
#10010 errors encountered during linking; "FR_NodeA_SCI.out" not built FR_NodeA_SCI C/C++ Problem
#10264 FLASH0 memory range overlaps sys_link.cmd /FR_NodeA_SCI/source line 58 C/C++ Problem
and many others....
I also tried to include the /source folder to the project, however, this didnt do much of a difference. Do you have any suggestions here?
Kind Regards
Markus
Hello Chuck,
Somewhat largely disappointing yes :) Thank you, that would be of great help!
Looking forward to hearing from you.
Kind regards
Markus
Hi Markus,
Sorry for the long delay in getting back to you.
I've attached a node A project where I integrated the SCI drivers. There are still some warnings but I think this will give you a good starting point example. The SCI code in main is in a while loop because I don't have a FlexRay setup. Basically, I configured an SCI configuration (see example in halcogen examples under help menu) using HalCoGen then copied the SCI related files into the Node A project. I had to do some careful updates to bring in some of the #defines from the bigger HalCoGen project since HalcoGen updates over the years has migrated to a different method of partitioning the global defines but I was able to compile with only some warnings. Give it a try and see if you can get the output you need.
Hi Chuck!
I have been working on some other problems, sorry for answering so late!
I have run the project and the UART communacation worked and printed to terminal, thank you :)
I did not get the project to run when I removed the while loop on order to print for each transmit_check_node_a, in fact, I did not get your project to run with FlexRay even without the UART print, could this be some port settings that have changed? The project was able to build and debug, but the MCU got stuck waiting for interrupt from the FlexRay controller.
I will try to do some more debugging here in order to understand the SCI setup in this project.
Kind Regards
Markus