Nov 09, 2020
05:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 09, 2020
05:48 PM
I have 2 problems to use A2G_TC387_3V3_TRB.
First of all, I use all cores and referred Demo(AscLinAscDemo, CanBasicDemo) source code to develop.
1. ASCLIN0 Rx
-> Tx is works ok. but in case of Rx, I got the dummy value when Rx interrupt.
IfxAsclin_Asc_getReadCount return 1, but data is invalid if I call IfxAsclin_Asc_read.
2. MCAN
-> I set all of configurations same with CanBasicDemo source code.
But it is not works. First of all RX interrupt is not occurred and also IfxCan_Can_isNewDataReceived() always return false.
I replay can data using CANoe. it connected to CANH/L port for CAN00. I checked CAN H/L port and signal input is ok.
When I checked registers using T32, PSR.B.ACT is changed to 2, but NDAT1.B.ND0 and ISREG.B.REINT not changed(always 0).
What can I check further? Is it required 'IfxCpu_Irq_installInterruptHandler'? but even though I called 'IfxCpu_Irq_installInterruptHandler' after init. nothing to different.
First of all, I use all cores and referred Demo(AscLinAscDemo, CanBasicDemo) source code to develop.
1. ASCLIN0 Rx
-> Tx is works ok. but in case of Rx, I got the dummy value when Rx interrupt.
IfxAsclin_Asc_getReadCount return 1, but data is invalid if I call IfxAsclin_Asc_read.
2. MCAN
-> I set all of configurations same with CanBasicDemo source code.
But it is not works. First of all RX interrupt is not occurred and also IfxCan_Can_isNewDataReceived() always return false.
I replay can data using CANoe. it connected to CANH/L port for CAN00. I checked CAN H/L port and signal input is ok.
When I checked registers using T32, PSR.B.ACT is changed to 2, but NDAT1.B.ND0 and ISREG.B.REINT not changed(always 0).
What can I check further? Is it required 'IfxCpu_Irq_installInterruptHandler'? but even though I called 'IfxCpu_Irq_installInterruptHandler' after init. nothing to different.
Solved! Go to Solution.
1 Solution
Nov 11, 2020
12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 11, 2020
12:34 PM
Hi, try the attached example,
remember that while debugging the CPU may be halted but peripheral may still running, check your debugger options.
remember that while debugging the CPU may be halted but peripheral may still running, check your debugger options.
3 Replies
Nov 10, 2020
01:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 10, 2020
01:40 AM
MCAN issue was resolved. range type filter only works in case of fifo. (dedicated rx buffer doesn't support range filter)
But "ASCLIN0 Rx" is still remained as issue.
Anybody can help me?
But "ASCLIN0 Rx" is still remained as issue.
Anybody can help me?
Nov 11, 2020
12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 11, 2020
12:34 PM
Nov 18, 2020
08:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 18, 2020
08:07 PM
Hi! After change the values for below, It works! Thank you so much!! 🙂
baudrate.oversampling, bitTiming.medianFilter, bitTiming.samplePointPosition
baudrate.oversampling, bitTiming.medianFilter, bitTiming.samplePointPosition