Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

User16898
Level 4
Level 4
Hi,
I tried to read pin state the following way:
[HTML]
boolean is_pin_high = IfxPort_getPinState(pin->desired_scu_pin->pin.port,
pin->desired_scu_pin->pin.pinIndex);
[/HTML]

There problem is when ever this function is called program is stuck in trap.
pin is configured as input, compiler return no warning and errors about this function.

why such thing is happening ?

I use Tc222L iLLd version iLLD_1_0_1_11_0.
0 Likes
2 Replies
MoD
Employee
Employee
25 likes received 50 solutions authored 100 sign-ins
Hi,
there is a wrong/invalid value for pin, desired_scu_pin or pin defined. How you you define and initalize structure pin?
0 Likes
User16898
Level 4
Level 4
hi,
you were right it was a dump mistake:
pointer had different value
0 Likes