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.

EKS -LM4F232 Simple CAN Interface Application Help

I'm just getting started with the EKS-LM4F232 evaluation kit. As a simple starting point I'd like to be able to invoke a one-shot command and response protocol, thereafter building complexity. It would be great to input and send a command message (with message ID) through a GUI. Once a message is received, again with selectable filters and IDs, it would be great to be able to display the message contents on the screen.

Does anyone have any such code snippets to target this evaluation kit?

 

 

  • The short answer is no.

    The long answer where i try to help you is the following:

    Can you provide some more details on what you want to do?

    when you say a " one-shot command and response protocol" do you mean just sending commands back and forth between the computer and the Eval Kit, or do you mean eval kit to eval kit?

    • the most common protocol for computer to eval kit is over the UART, for which we have several functions built in (see uart_echo example in \boards\ek-lm4f232\uart_echo  ),
    • communicating between eval kits you can use i2c, UART, spi, CAN, or any of the other protocols the board supports.

    When referring to a GUI do you mean a GUI on the board using the build in LCD or a GUI on your computer?

    • for a GUI on your computer it would be up to you to create one
    • for a GUI on the board's LCD we have an extensive graphics library (grlib) that has support for menu's, banners, etc, though the lcd on the board is so small you could just draw text to it and that would work well for a rudimentary menu interface, using the buttons to select and move.

    My suggestion would be to use the UART to send information back and forth between the board and your computer, I prefer to use putty as my terminal on the computer, but others like teraterm or hyperterm.

    Did that answer your question or did I misunderstand?

  • Oops, sorry, I didn't read the subject line about you wanting to use CAN.

    All blizzard chips have CAN, but not all the eval boards support it.

    The EK-lm4f232 doesn't have a CAN transceiver on it, meaning that while it can send and receive the digital signals it doesn't have the physical hardware that does the analog translation.

    If you are looking to develop using the CAN I recommend the LM328962. Or, instead of can you can develop over UART as I previously suggested, using for example comma separated values, or develop a struct to send.

    -Austin

  • Thanks for your response.

    I would like to interface between two eks-lm4f232 evaluation kits or between one kit and another independent module with a CAN interface. I need to be able to control the rep-rate and commanded data as well as display results sent back from the independent module. It doesn't have to be a GUI - any means of inputting commanded data and observing received data will suffice. It doesn't require a particular physical layer implementation but does need to perform the CAN protocol.

    Regards,Steve

     

  • As i stated previously, you can get the can digital signals, so i suppose you could hook them up and make them transmit, or you could software layer the can over another protocol that does work. In either case we do not have any example code for this board that could help you. Though i would suggest looking at the can.c and .h in driverlib and see if those help you.Also you could take a look at other Stellaris boards that do use CAN as possible inspiration for what you are trying to do. (look in the \boards folder)

    -Austin

  •  

    Help!

    OK. I ran the "uart_echo" example and have the OLED display message but nothing on the Console window of the CCS application. The only connection I have is between the ICDI (J8) connector on the eval board and a USB port on my computer. Is there something I'm missing? Do I have to make additional connections, etc?

    Steve

  • Steven,

    The uart_echo project echo's anything that comes across the UART channel back at the sender. The Console window is not the UART window. You will need to either download this ( http://processors.wiki.ti.com/index.php/How_to_install_the_terminal_plugin_in_CCSv5 ) CCS extension to enable it as a serial channel in CCS or get a separate program to view the serial channel. I recommend Putty, HyperTerm, or TeraTerm. To connect to the serial port you will need to figure out what COM port your board is connected to, and then tell the program to open a connection on that COM port (you can figure out what COM port it is connected to by going to Rclick My Computer -> Properties -> DeviceManager-> Ports  and see which one the board is connected to). For example, my PC connects to my board on COM32, so in putty I tell it to connect to a 'serial' connection on 'COM32' at '115200' buad. This then opens a window to the device, if uart_echo is running then you should be able to see yourself type, if the example is not running then no matter what you type it will not show up in the window. This is because it doesn't print what you send to the board, it prints what you receive from the board. This is also where all UARTprintf() will print to, it is a very handy debugging tool.

    Did that answer your question?

    Regards,

    -Austin

  • Austin,

    Thanks much! My problem isn't solved but I got a good start. I installed the terminal of CCSv5, according to an example. However, in the example there was another plug-in, http://rxtx.qbang.org/eclipse/, but my browser timed out trying to read it. Any help?

     

    Also, I'd like to output and receive CAN messages, the primary application. The use of the terminal is to see what data is transmitted and what is received. Do I have to solder wires with a connector to port pins on the peripheral of the eks-lm4f232 board? It will be interfacing to another custom board using the CAN protocol

    Any help would be greatly appreciated!

     

    Steve

  • Steven,

    I don't have any experience with the CCS plugin, sorry, I do recommend putty though.

    Hook it up to the can pins on the datasheet, also please note that for this to work you're going to need a can transceiver, as i noted previously, multiple times, for this to work.

    -Austin

  • Thanks.

     

    OK so there are CAN ports on this chip, correct? So where do the internal signals terminate? You have said multiple times about a transceiver but you didn't mention where I get the signals to route to the transceiver.

    Additionally, What are the 100 mil SIP contacts with port lettering?

     

    Steve