Hi Friends,
I need to force boot loader with PD7 pin in one of my project,
Trying same experiment on EK-LM4F120XL launchpad
Note that I alrady emoved R15 (VBus SENSE) which is connected to PD7 to allow PD7 to work as GPIO,
unable to make it. please find below my code
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = GPIO_LOCK_KEY_DD;
HWREG(GPIO_PORTD_BASE + GPIO_O_CR) = 0x01;
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = 0;
HWREG(GPIO_PORTD_BASE + GPIO_O_DIR) = 0x00;
HWREG(GPIO_PORTD_BASE + GPIO_O_PUR) = 0xFF;
HWREG(GPIO_PORTD_BASE + GPIO_O_DEN) = 0XFF;
HWREG(GPIO_PORTD_BASE + GPIO_O_DATA) = 0x00;
also I tried
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = GPIO_LOCK_KEY_DD;
HWREG(GPIO_PORTD_BASE + GPIO_O_CR) = 0x80;
HWREG(GPIO_PORTD_BASE + GPIO_O_DEN) |= 0x80;
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = 0;
HWREG(GPIO_PORTD_BASE + GPIO_O_DIR) = 0X00;
HWREG(GPIO_PORTD_BASE + GPIO_O_PUR) = 0x80;
HWREG(GPIO_PORTD_BASE + GPIO_O_DATA) = 0x80;
Help me where I am doing wrong. Post
Regards
Paddy