Processor Expert creates incorrect MUX value for Kinetis FlexBus

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Processor Expert creates incorrect MUX value for Kinetis FlexBus

ソリューションへジャンプ
1,294件の閲覧回数
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,002件の閲覧回数
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,003件の閲覧回数
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,002件の閲覧回数
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 件の賞賛