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.

AM335x Startware can driver problems

I am Henry Chou the senior engineer from Quadrep electronics Taiwan. We got the problesms for dcantxrx import project from starterware.

Firstly, we do the ICEV2 jummper setting as following:

J6 short

J7 open

J8 2,3 short

J10 open

But the subroutine will be loop in profile = EVMProfileGet();

However we think that the profile problems for hardware. So that we try to skip the function ,and assign the profile to 1.

But can bus driver is stiil not worked, even the UART console output is failed.

How can we do to slove the problems?

By the way, we use the same import project in IDK evaluation board. It will be the same.

  • Moving this to the Starterware forum.

  • Sorry for wrong subject in starterware. I think the problems may be the hardware setting profile. In starterware user guide Page 27, I found that the SW8 should be [0001] . But I can't find SW8 in IDK evaluation board or ICE V2.
    How can I use the starterware DCAN with IDK and ICE V2??
    Best regards.
    Henry Chou
  • Hi Henry,

    The dcantxrx is supported on AM335x EVM and not on ICE. You will have to adapt the application to work on ICE2.

    Please refer to some related posts for more info.

    e2e.ti.com/.../349858
    e2e.ti.com/.../387060
    e2e.ti.com/.../381648

    Regards,
    Prajith
  • Hi ! Prajith:

    Nice to get your information. I had read the three articles that you point out. But I still cann't catch your meaning exactly.

    That means the dcantxrx CAN bus I/O is "not" J9 (ICE V2) or J11(IDK). Isn't it?

    If the CAN I/O is not J9(ICE V2) or J11(IDK) , where can I find the I/O? 

    Is it the board expansion connectors on J3,J4,J14 (ICE V2)<AM335x HW user guide Page7,8>?

    By the way, I also can't monitor the debuging UART data from USB to UART in ICE V2. So that I think the UART and CAN is failed.

    The following picture is my system connection right now. The CAN trace debugging Tools is on J9. And I access the USB port  for CCS V5.5 debuging and monitor the UART data.

      My questions are~

    1) Should I skip all the "profile = EVMProfileGet();" instead of "profile=1;" in ICE V2 and IDK  ? Because of the profile setting reason.

    2) Where is the I/O port mapping for CAN and UART I/O for dcantxrx example in starterware?

    Best regards

    Henry Chou.

  • Dear all:
    New discovery!!
    I can slove the UART console problems.
    Because the example Dcantxrx , the uart console port and the can port is same same defination.
    So that the UART console is not work in VCP.
    We have to modify the uartConsole.c in platform.lib as following:
    #define UART_CONSOLE_BASE (SOC_UART_3_REGS) //(SOC_UART_0_REGS)

    Assign UART3 to VCP is very important.
    Then the UART console can be input or output!!
    But I still can't get the CAN bus data from J9. Maybe it's my tools problems!!
    Best regards.
    Henry Chou.
  • Dear all:
    The dcantxrx UART console problems is fixed.
    But the sigle or multiply transfer for CAN is no good.
    The terminal console from my debug message is as following:
    Please Input
    1) Transmit a single data frame
    2) Transmit 'n' data frames

    User Input = 1


    Please input data not exceeding 8 characters

    1
    Atleast one of the error counters have reached the error warning limit
    **DCAN is in Bus-off state**

    It will be loop "Atleast one of the error counters have reached the error warning limit
    **DCAN is in Bus-off state**".

    What's wrong with my system?
    Best regards.
    Henry Chou.
  • Dear all:

    Fix another problems for IASDK HW user guide.

    See the Page6/9 CAN/Profitbus selection Jumper.

    If the J8 jumpper sequence is from left to right (1,2,3 face footprint) , then the user guide make mistakes.

    Because the ground signal should be pin 1,2 shorted not pin2,3 shorted.

    See my attached picture....

    I guess that I suck the DCAN1 problems for DCAN.c!!

    The UART console message is loop with "**DCAN is in Bus-off state**
    Atleast one of the error counters have reached the error warning limit"

    Best regards.

  • Dear all:

    Another big starter problems for IDK in CAN driver.....

    I use the IDK evaluation board to check the CAN issue again. However, the system is traped in the Loop.

    And I trace into the UARTStdioInitExpClk();

    I found that the root case is the "UART_CONSOLE_BASE".

    I think that the debugging UART port is the same ,that means the UART3.

    So that I changed the UART_CONSOLE_BASE defination as UART_3. It also can be work in ICE V2 but it can't work in IDK EVM.

    Is there anyone can tell me why the system result is quite difference?

    My IDK evaluation board system is show as above.

    The CAN port J11 is still not work.

    Best regards.

    Henry Chou.

  • Dear all:
    The DCAN0 for starerware is sloved.
    My solution is
    www.deyisupport.com/.../206181.aspx
    (Sorry! It's Chinese TI E2E)
    Share with others for TI E22
    Henry Chou