hi,
Is there any demo for mpc5748g receive demo for using S32 Design Studio IDE?
In the MPC5 software example list I can't find mpc5748g FlexCAN1 receive demos.
Thank you very much.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
I wrote the project about mpc5748g receive demo for using S32 Design Studio IDE,but FlexCAN 1 cannot entry interrupt(LED4 not light),I used P-CAN view to tansfer a message (ID==0XF4,Baud rate =500K ).
Is there any problems in my project?
Original Attachment has been moved to: RMU_Project.rar
Hello,
it is possible that there is another interrupt enabled and there is not appropriate interrupt handler created for this interrupt, so it jumps into dummy function.
Could you please share the project you debug? I would like to test it on my side.
Regards,
Martin
Hi,
there is complex example for MPC5775K in the software example list. This could be also used for MPC5748G with some small changes. But if you want example directly for MPC5748G, please give me some time and I will create you one.
Regards,
Martin
Hi,
here you can find the promised example:
Example MPC5748G-FlexCAN_with_interrupts S32DS
If you have any other questions, please feel free to write back.
Regards,
Martin
Example MPC5748G-FlexCAN_with_interrupts S32DS is similar with MPC5775K CAN ISR,and it does not run propely in my EVB board:can not entry interrupt.
Is there any problem in the code?
Hi,
I have tested the example and it definitely works correct. Have you correctly connect both CAN transceivers? You have to connect CANH pins on P14 and P15 headers and CANL pins on the same headers.
Regards,
Martin
Hi,
I quickly checked your code and I do not see any INTC.PSR register configuration. Also I do not see MB0 initialization. Your MB0 has status RX:Inactive and with this status is cannot receive any message.
If you have MPC574XG motherboard, load the code from my project and connect CANH and CANL pins on the motherboard and it must work.
Regards,
Martin
Hi,
it is not problem. It has to work with PE too. From your screen, it could be the known issue with reset delay. Open debug configuration for your project and set Delay after reset for 250ms in Debugger tab (see figure below).
Hope it helped. If not, please write me back.
Regards,
Martin