Hello,
Following your instructions Iam able to toggle TP_45 (GPIO0_6).
I want to do the same for TP100 (GPIO0_52), but I can not see any toggle.
I have doubts if registers I am using are correct, also bit fields. Please let me know.
1. Select a GPIO that has TP attached to it (You could refer the SCH and ASSY file of the board)
-> WKUP_GPIO0_52 connected to TP100
2. Get the ballnumber of the GPIO selected from the datasheet from section 6.2 Pin Attributes.
-->Ball E27
3. Identify the padconfig register address for the particular GPIO using the datasheet from section 6.4 Pin Multiplexing.
--> PADCONFIG 36 for ballnumber E27
4. Identify the Kick register from the padconfig register address obtained above TRM section 5.1 Control Module
--> Eg. padconfig 50 = 0x4301C090 (offset 1C090) so select LOCK7_KICK0 register address
5. Identify the GPIO Bank from the GPIO number from TRM Section 12.1.2 GPIO
Here I have doubts, should it be Bank3?
6. Get the DIR and OUT_DATA register offset w.r.t the gpio bank selected
Here I have doubts, should it be Bank3?
Then bit to be changed values to togle will be
*outData23 &= 0xFFDFFFFF;
*outData23 |= 0x00200000;
Using
#define WKUP_2_PADCONFIG 36 /*GPIO0_52, TP100, Ball E27*/
uint32_t * padconfig2 = (uint32_t *) WKUP_2_PADCONFIG;
volatile uint32_t * dir23 = (uint32_t *) 0x42110038;
volatile uint32_t * outData23 = (uint32_t *) 0x4211003C;
BR