Using PE code in a MQX project

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

Using PE code in a MQX project

ソリューションへジャンプ
1,091件の閲覧回数
barbercolman
Contributor III

I have a MCF51JM processor project that needs a high speed timer. I used PE to generate code to setup and run TMP2. The code works but the PE generated non mqx code ( (void)getReg8(TPM2C1SC_CH1F) ) which MQX would compile. I ended up moving the code into a sperate module, but it is real ugly. I am new to Freescale , is there clean way  to rewrite the code PE generated?

 


 


0 件の賞賛
返信
1 解決策
874件の閲覧回数
marek_vinkler
NXP Employee
NXP Employee

This is because Processor Expert for ColdFireV1 is not fully integrated with MQX yet. In your case, you can try to include PE_Types.h file generated from Processor Expert. This file contains appropriate register access macros like getRegxx. You can also extract only necessary macros from this file directly into your .c/.h file.

 

See also this topic. It might help.

https://community.freescale.com/message/87924#87924

 

Marek V.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
875件の閲覧回数
marek_vinkler
NXP Employee
NXP Employee

This is because Processor Expert for ColdFireV1 is not fully integrated with MQX yet. In your case, you can try to include PE_Types.h file generated from Processor Expert. This file contains appropriate register access macros like getRegxx. You can also extract only necessary macros from this file directly into your .c/.h file.

 

See also this topic. It might help.

https://community.freescale.com/message/87924#87924

 

Marek V.

0 件の賞賛
返信