PortE on K32L3A6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PortE on K32L3A6

跳至解决方案
2,551 次查看
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 项奖励
回复
1 解答
2,525 次查看
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.

在原帖中查看解决方案

1 回复
2,526 次查看
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.