Banner_AURIX_Security-Solution Banner_AURIX_Safety_Products ShieldBuddy TC275 Banner_AURIX_OnzerOS Banner_AURIX_DevelopmentStudio


infineon4engi@twitter twitter

infineon4engineers Facebook

infineon@linkedin linkedin

infineon@youtube youtube


+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Advanced Advanced Lukas_G is on a distinguished road
    Join Date
    Apr 2019
    Posts
    64
    Points
    690

    can Baundrate Problem

    Hi,

    I have can communication between Aurix TC22x and PEAKCAN dongle, the problem is with baudrate settings.
    On Aurix baudrate is set as 125000kbit/s
    On PEAKCAN baudrate must be set 250000kbit/s, 125000kbit/s not works

    Datasheet says, that there is a baundrate prescaler in can clock module, does it change somehow baudrate i place in code ?

  2. #2
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    MoD is on a distinguished road
    Join Date
    Feb 2012
    Location
    Munich
    Posts
    71
    Points
    1344.375
    Change the baudrate in your code to the needed CAN speed. 250000 bit/s are no problem for the device. How your software calculate the baudrate?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Advanced Advanced Lukas_G is on a distinguished road
    Join Date
    Apr 2019
    Posts
    64
    Points
    690
    Hi, thanks for quick response,
    It turned out that aurix is always doubling the set up in code baud rate.
    If i set 125,250,500 kbit/s in code I have respectively 250,500,1000 kbit/s(checked in Peakcan and oscilloscope).
    what can be wrongly configured in aurix multican ?

  4. #4
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    MoD is on a distinguished road
    Join Date
    Feb 2012
    Location
    Munich
    Posts
    71
    Points
    1344.375
    Which code you are using? How you configure?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #5
    Advanced Advanced Lukas_G is on a distinguished road
    Join Date
    Apr 2019
    Posts
    64
    Points
    690
    configuration code is basing on ILLD example code:
    void initialize_multican(void) {
    // create configuration
    IfxMultican_Can_Config canConfig;;
    IfxMultican_Can_initModuleConfig(&canConfig, &MODULE_CAN);
    // initialize module
    // IfxMultican_Can can; // defined globally
    IfxMultican_Can_initModule(&can, &canConfig);

    // create CAN node config
    IfxMultican_Can_NodeConfig canNodeConfig;
    IfxMultican_Can_Node_initConfig(&canNodeConfig, &can);

    canNodeConfig.baudrate = 125000;

    // Source Node
    // IfxMultican_Can_Node canSrcNode; // defined globally
    canNodeConfig.nodeId = IfxMultican_NodeId_0;
    canNodeConfig.rxPin = &IfxMultican_RXD0A_P02_1_IN;
    canNodeConfig.rxPinMode = IfxPort_InputMode_pullUp;
    canNodeConfig.txPin = &IfxMultican_TXD0_P02_0_OUT;
    canNodeConfig.txPinMode = IfxPort_OutputMode_pushPull;

    // initialize the node
    IfxMultican_Can_Node_init(&canNode, &canNodeConfig);

    }
    I do not change CAN configuration further in code
    Last edited by Lukas_G; May 17th, 2019 at 12:31 AM.

  6. #6
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    MoD is on a distinguished road
    Join Date
    Feb 2012
    Location
    Munich
    Posts
    71
    Points
    1344.375
    The function IfxMultican_Can_Node_init calculate the needed settings for the needed baudrate. If you have later then 2x your baudrate then maybe the CCUCON1.CANDIV is changed after Can_Node_init. You use the latest iLLD?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  7. #7
    Advanced Advanced Lukas_G is on a distinguished road
    Join Date
    Apr 2019
    Posts
    64
    Points
    690
    what settings influence on CCUCON1.CANDIV ?

    I 'm not common with ILLD libraries releases, but version used by me is 1.0.0.11.0
    Last edited by Lukas_G; May 19th, 2019 at 11:32 PM. Reason: misstype

  8. #8
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    MoD is on a distinguished road
    Join Date
    Feb 2012
    Location
    Munich
    Posts
    71
    Points
    1344.375
    This version is very old. I don't know if there was a problem on this version. Download the latest iLLDs from myicp (V1.0.1.9.0), maybe this solve the problem.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  9. #9
    Advanced Advanced Lukas_G is on a distinguished road
    Join Date
    Apr 2019
    Posts
    64
    Points
    690
    Problem solved, it was a bug in iLLD library.
    I updated it and problem i gone.

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.