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: Code Composer Studio
I did configuration in HALCOGEN, in CCS but on the transmission pin it transmits nothing. From the microcontroller at transceiver and after the other microcontroller nothing happens. WHY?
Hello,
I don't see any activated Message box.
Is it possible to give more information on your hardware setup (MCU, Transceivers, connections)
Hello,
You must connect 120 Ohm termination resistors at both ends (between CANH and CANL). Also, check whether Loopback mode is disabled.
Hello,
Attached is project (both CCS and HALCoGen) that sends few bytes from CAN1 to CAN2. The code is for TMS570LS3137 but you can use it as a reference.
Hello,
Sorry, during renaming the files all settings were lost.
Attached projects were made for tms570ls3137 HDK and interrupt method is used. HDK has CAN transceivers on it.
Hello,
If it is possible, attach your HALCoGen project so I can check the settings
I have two projects(One for tx and one for rx)
I'm takeing data from the sensor, arrived at MCU1, throught the CAN i have send them to other microcontroller, and after the computer.
The CAN side doesn't work. Basically, at the end, i have the same data in two different ports in the terminal. I would like to mention that I made the bus with the resistors and the transceivers.
Hello,
You don't have CAN interrupts enabled in VIM module. Also canMessageNotification in notification.c need to be modified.
I recommend you to check the example "example_canIntCommunication.c". This example is not available for TMS570LC4357 but you can see the instructions for TMS570LS3137 ( you can open help file for TMS570LS3137 or you can create a project for TMS570LS3137 and read Help).
Hello,
Interrupts can be managed by HALCoGen (for example from "VIM Channel 0-31" tab you can enable/disable Channel 16, CAN1 High interrupt).
Chapter 15 in TRM is dedicated to Vectored Interrupt Manager (VIM) Module. There you can find more information on VIM.
I've attached project in previous post to refer to. canMessageNotification function is in notification.c file. CAN examples are available in HALCoGen examples folder as well. You can find an example that does not use interrupt method.
Hello,
DCAN1TX is exposed to connector J10, pin 45. Check whether you are probing the correct pin.
I don't have TMS570LC4357 at my place but I expect to receive one next week. After receiving I can make code for TMS570LC4357
I've just tested the code I attached in this thread for TMS570LS3137 and it works.
Hello,
Option with FREERTOS generates files and drivers to use TMS570LC4357 with FreeRTOS. In your case you should use the other option (without FreeRTOS).
Attached is a project that uses TMS570LC4357 and sends message from CAN1 to CAN2. I've used HDK which has connected CAN transceivers on board. HL_notification.c file is modified as well.
Hello,
The changes depends on your application. In attached project changes are to confirm data is received.
I have two microcontrollers and tow Can transceivers.I have to get data from a sensor, go to the microcontroller, then follows the part of can, one after the other microcontroller and after the Pc. This part with the two transceivers I do not understand and not the configuration in halcogen, For example, how many projects i have to have, One separate for TX, and one separate for RX, or how?
Hello,
Here you can find Introduction to the Controller Area Network:
After that I recommend you to start with CAN example that is under HALCoGen installation folder. With this example you can start dealing with CAN without using transceivers with LauncPad. After that you can try connecting transceivers and connect two LaunchPads or two CAN modules of single LaunchPad. The way to connect transceivers to MCU could be found in HDK schematic diagrams ( schematic diagram for TMS570LS1227 HDK could be found here: processors.wiki.ti.com/.../TMS570LS12x_HDK_Kit: ) Also, try to run the code I've attached in this thread.
Hello,
The following is from wikipedia:
Each node requires a