Hello, I am new to the nxp world and am trying to get my MPC5748G to receive data from and ECU. I create a new project from the examples and set all my debugger settings up to the openSDA settings. I have connected the canH(pb0) and canL(pb1) to the corresponding canH and canL and ground on the 9 pin connector. When I go to run the example I get stuck during the debug mode on the line
while (can_0.iflag1.b.buf4to1i != {}; /* wait for can_0 mb 4 flag */
rxcode = can_0.mb[4].cs.b.code; /* read code, id, length, data, timestamp*/
rxid = can_0.mb[4].id.b.id_std;
rxlength = can_0.mb[4].cs.b.dlc
When I look in the command terminal this message is displayed
program received signal sigint, interrupt.
0x01003218 in receivemsg () at ../src/can.c:104
104 while (can_0.iflag1.b.buf4to1i != {}; /* wait for can_0 mb 4 flag */
Can anyone help me trouble shoot this problem? I have been pulling my hair out trying to figure it out.
Thanks