How can I run CAN Tx/Rx and ASCLIN Rx on A2G_TC387_3V3_TRB?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User20578
Level 1
Level 1
First solution authored
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.
0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
ugo_8a
Employee
Employee
10 solutions authored 25 sign-ins 25 replies posted
Hi, try the attached example,
remember that while debugging the CPU may be halted but peripheral may still running, check your debugger options.

View solution in original post

0 Likes
3 Replies
User20578
Level 1
Level 1
First solution authored
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?
0 Likes
lock attach
Attachments are accessible only for community members.
ugo_8a
Employee
Employee
10 solutions authored 25 sign-ins 25 replies posted
Hi, try the attached example,
remember that while debugging the CPU may be halted but peripheral may still running, check your debugger options.
0 Likes
User20578
Level 1
Level 1
First solution authored
Hi! After change the values for below, It works! Thank you so much!! 🙂
baudrate.oversampling, bitTiming.medianFilter, bitTiming.samplePointPosition
0 Likes