Dec 06, 2015
07:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 06, 2015
07:06 PM
Hi.
Now I have some problrms using CAN port of XMC4500(144-LQFP) and MDK-ARM 5
(port1 : P1.4, P1.5 port2 : P2.6, P2.7 port3 : P1.8, P1.9).
Transmitting to empty port(no node connected) ALERT bit of NSR register set(one)
and TEC value of NECNT register reach to 0x80.
Addtional transmission makes software upset.
How can I avoid software upset and how can I reset CAN port error without power off?
Please help me.
Best Regards.
Now I have some problrms using CAN port of XMC4500(144-LQFP) and MDK-ARM 5
(port1 : P1.4, P1.5 port2 : P2.6, P2.7 port3 : P1.8, P1.9).
Transmitting to empty port(no node connected) ALERT bit of NSR register set(one)
and TEC value of NECNT register reach to 0x80.
Addtional transmission makes software upset.
How can I avoid software upset and how can I reset CAN port error without power off?
Please help me.
Best Regards.
- Tags:
- IFX
6 Replies
Dec 06, 2015
11:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 06, 2015
11:49 PM
You can clear the error status flag and stop the transmission?
Dec 07, 2015
05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 07, 2015
05:54 AM
Hi. Travis.
Thank you for your response.
After connecting the nodes to the CAN port without turning off the power in the error state
I must continue to transmit data.
And the TEC value of NECNT is not clear even after the CCE of NCR is set
Is there no way to recover the CAN port error without turning off the power.
Best regards.
Thank you for your response.
After connecting the nodes to the CAN port without turning off the power in the error state
I must continue to transmit data.
And the TEC value of NECNT is not clear even after the CCE of NCR is set
Is there no way to recover the CAN port error without turning off the power.
Best regards.
Dec 09, 2015
12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 09, 2015
12:22 AM
Hi. Travis.
After CCE bit set, error status can be cleared.
But data transmission is impossible through error happened port without power off/on.
This problem is critical to me.
If there is no way to resolve this issue I must redesign circuit and firmware with other microcontroller.
Please help me.
Best regards.
After CCE bit set, error status can be cleared.
But data transmission is impossible through error happened port without power off/on.
This problem is critical to me.
If there is no way to resolve this issue I must redesign circuit and firmware with other microcontroller.
Please help me.
Best regards.
Not applicable
Dec 11, 2015
07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 11, 2015
07:56 AM
do-yoon Ahn wrote:
Transmitting to empty port(no node connected) ALERT bit of NSR register set(one)
and TEC value of NECNT register reach to 0x80.
That is the normal behavior of a CAN node according to ISO11898
do-yoon Ahn wrote:
Addtional transmission makes software upset.
Because the behavior of the CAN controller is correct, it is your software what fails. You have to handle the Error Passive situation of the CAN controller without loosing control.
Not applicable
Dec 11, 2015
08:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 11, 2015
08:00 AM
do-yoon Ahn wrote:
This problem is critical to me.
If there is no way to resolve this issue I must redesign circuit and firmware with other microcontroller.
Every other micro controller will behave the same. Using another microcontroller or CAN controller will not solve your problem. You have to understand how the CAN controller is working. I have done many projects using Infineon CAN products and always was satified (at least at the end of the development).
Heinz
Dec 11, 2015
11:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 11, 2015
11:45 PM
Hi. Heinz.
Thanks for your advices.
I understand that the set of error status bits and software failure due to continuous transmissions are normal behabior of CAN node.
What I want to know is how to recover the CAN port error without turning off the power of CAN port (control register setting or initialization etc. )
Best regards.
Thanks for your advices.
I understand that the set of error status bits and software failure due to continuous transmissions are normal behabior of CAN node.
What I want to know is how to recover the CAN port error without turning off the power of CAN port (control register setting or initialization etc. )
Best regards.