PortE on K32L3A6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PortE on K32L3A6

Jump to solution
1,510 Views
darknight
Contributor III

Hi, 

I test the FRDM-K32L3A6 

in the file K32L3A60_cm4.h (under the folder device) there is on line 6992 to 7000

definition of PORTE, but if i understand the reference manual this port is only accessible for the 

cortex m0+ core, so this definition can be removed ? 

 

also in file pin_mux.h, there is 

void BOARD_InitPins_cm4(void); /* Function assigned for the Cortex-M4F */

 

with definition for SW3 to SW5 connected to the portE, so this can be removed also. 

 

Thanks 

Best Regards 

0 Kudos
1 Solution
1,484 Views
darknight
Contributor III

Hi

erratum, the cortex M4 can access port E, so all is good, just a configuration is missed from the sdk : 

/* Clock Gate Control: Clock enabled. The current clock selection and divider options are locked. */
CLOCK_EnableClock(kCLOCK_Rgpio1); // this line must be add to access GPIO_BASE address 
CLOCK_EnableClock(kCLOCK_PortE);// this line is generated from sdk or configtools

 

thanks to the support.

View solution in original post

1 Reply
1,485 Views
darknight
Contributor III

Hi

erratum, the cortex M4 can access port E, so all is good, just a configuration is missed from the sdk : 

/* Clock Gate Control: Clock enabled. The current clock selection and divider options are locked. */
CLOCK_EnableClock(kCLOCK_Rgpio1); // this line must be add to access GPIO_BASE address 
CLOCK_EnableClock(kCLOCK_PortE);// this line is generated from sdk or configtools

 

thanks to the support.