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

AURIX™ Forum Discussions

Ikavalis
Level 1
Level 1
First like given 5 sign-ins First reply posted

Hello!

I have a general question regarding registers.

I am trying to set a value to a register in the following manner: register_x.U = x

However, when I try to debug the code, I see that the register is not updating.

If I declare a variable of type register_x (register_x my_reg_x) and assign that variable a value (my_reg_x.U = x) and the assign my variable to the register (register_x.U = my_ref_x.U) then the register contents update.

Can anyone share with me why this is?

I am using tc234 mcu.

Thank you!

0 Likes
1 Reply
Aiswarya
Moderator
Moderator
Moderator
100 sign-ins 10 solutions authored 25 replies posted

Hi,

Could you please let us know the register you are trying to update?

Regards,
Aiswarya.

0 Likes