How can control GPIO to toggole its level in tiboot3.bin in programe anywhere?
Because my tiboot3 in uboot always canot print log in uart.
So now I should have one gpio output to know where it is run to.
I have set as follow but it can not work.Only I put it to MCU core ,it can toggle gpio normaly.
void TXEN(void)
{
// *((volatile uint32_t*)0x4081008) = 0x68EF3490U;
// *((volatile uint32_t*)0x408100C) = 0xD172BC5AU;
// *((volatile uint32_t*)0x4085008) = 0x68EF3490U;
// *((volatile uint32_t*)0x408500C) = 0xD172BC5AU;
// *((volatile int32_t*)0x04084040) |= 0007U;
// *((volatile uint32_t*)0x4081008) = 0;
// *((volatile uint32_t*)0x408100C) = 0;
// *((volatile uint32_t*)0x4085008) = 0;
// *((volatile uint32_t*)0x408500C) = 0;
///dir
*((volatile uint32_t*)0x4201010) &= ~(1<<16);
*((volatile uint32_t*)0x420101C) |= (1<<16);///clr
*((volatile uint32_t*)0x4201018) |= 1<<16;
}