I am having a problem in enabling GPIO pull downs on PortD. The code looks like this...
#ifdef PULL_DOWN
GPIO_PORTE_AHB_LOCK_R = 0x4C4F434B;
GPIO_PORTE_AHB_PDR_R = 0x3F; // pull downs activated on PE0-PE5
GPIO_PORTE_AHB_CR_R = 0x3F;
GPIO_PORTD_AHB_LOCK_R = 0x4C4F434B;
GPIO_PORTD_AHB_PDR_R = 0xF0; // pull downs activated on PD4-7
GPIO_PORTD_AHB_CR_R = 0xF0;
#endif
the code for portE works but the same code for PortD vectors off to FaultISR() when it hits the last line. What have I missed?
The code is being developed on CCS Version: 10.2.0.00009 using tivaware_c_series_2_1_4_178. I understand there is a newer version but I can only find an exe and my computer is a mac.