May 13, 2019
02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 13, 2019
02:14 AM
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 ?
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 ?
- Tags:
- IFX
8 Replies
May 13, 2019
08:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 13, 2019
08:57 AM
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?
May 15, 2019
12:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 15, 2019
12:21 AM
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 ?
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 ?
May 16, 2019
06:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 16, 2019
06:47 AM
Which code you are using? How you configure?
May 16, 2019
11:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 16, 2019
11:04 PM
configuration code is basing on ILLD example code:
I do not change CAN configuration further in 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
May 17, 2019
07:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 17, 2019
07:47 AM
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?
May 19, 2019
10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 19, 2019
10:31 PM
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
I 'm not common with ILLD libraries releases, but version used by me is 1.0.0.11.0
May 20, 2019
05:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 20, 2019
05:05 AM
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.
Jun 13, 2019
02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 13, 2019
02:19 AM
Problem solved, it was a bug in iLLD library.
I updated it and problem i gone.
I updated it and problem i gone.
This widget could not be displayed.