Processor Expert creates incorrect MUX value for Kinetis FlexBus

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

Processor Expert creates incorrect MUX value for Kinetis FlexBus

跳至解决方案
1,292 次查看
leccy
Contributor III

I have tried to implement a FlexBus on CW10.1 with PE for Kinetis K20.

 

The code generated in cpu.c when the RW pin is enabled tried to set MUX[4] for the FB_RW_b pin.  According to the data sheets, this should be MUX[5], along with all the other FlexBus pins.  I cannot find a reference to this in any errata.

 

leccy

0 项奖励
1 解答
1,000 次查看
ProcessorExpert
Senior Contributor III

Hello,

 

we are sorry for the invonvenience. We will fix it within CW V10.2 update. For now as workaround please add the following row after calling PE_low_level_init:

 

  /* PORTC_PCR11: ISF=0,MUX=5 */
  PORTC_PCR11 = (uint32_t)((PORTC_PCR11 & (uint32_t)~0x01000200UL) | (uint32_t)0x0500UL);

best regards
Vojtech Filip
Processor Expert Support Team

在原帖中查看解决方案

0 项奖励
2 回复数
1,001 次查看
ProcessorExpert
Senior Contributor III

Hello,

 

we are sorry for the invonvenience. We will fix it within CW V10.2 update. For now as workaround please add the following row after calling PE_low_level_init:

 

  /* PORTC_PCR11: ISF=0,MUX=5 */
  PORTC_PCR11 = (uint32_t)((PORTC_PCR11 & (uint32_t)~0x01000200UL) | (uint32_t)0x0500UL);

best regards
Vojtech Filip
Processor Expert Support Team

0 项奖励
1,000 次查看
leccy
Contributor III

Thanks for the quick reply.

 

Would you also know why the P&E OSJTAG debugger gives a memory error if i configure the FlexBus in PE, and try to debug the project?

 

leccy

0 项奖励