Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
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
10 likes given 50 likes received 500 replies posted
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