MQX Kinetis K20 FLexTimer Access

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

MQX Kinetis K20 FLexTimer Access

ソリューションへジャンプ
1,163件の閲覧回数
Cdn_aye
Senior Contributor I

We have a working MQX PIT timer system on the CF V1, 51JM128, but now we are using the K20dx256 and all the rules have changed. In that system I assigned

VMCF51JM_STRUCT_PTR     reg_ptr;

Then did all the register access's        reg_ptr->TPM2.TPMxMOD = 0xFFFF;                                     // MODULO = 0xFFFF , this is for the test ovf interrupt

But it doesn't seem to work this way on the Kinetis. I was wondering if someone would have a suggestion on how to set up the register access & headers.

I have read through all the examples and do not see which headers should be included when we use MQX. Do we include headers from Processor Expert, or the header under

C:\Freescale\CW MCU v10.3\MCU\lib\wizard_data\ARM\DataBase\derivatives\MK20Z.h ?

This seems to have a (base) pointer defined somewhere but I can't find out how to define (base).


Thanks

Robert

タグ(3)
1 解決策
810件の閲覧回数
Cdn_aye
Senior Contributor I

Found the pointer, it is in the mqx directory

C:\Freescale\Freescale MQX 3.8\mqx\source\bsp\twrk40x256\twrk40x256.h

Included that file, and it all compiles and links now.

Under mqx/ CFV1, we had to create a pointer to a structure and index into the registers, with Kinetis they give the pointer in the above file and all the offsets. It is obvious once you find it; the hard part was finding it.

元の投稿で解決策を見る

1 返信
811件の閲覧回数
Cdn_aye
Senior Contributor I

Found the pointer, it is in the mqx directory

C:\Freescale\Freescale MQX 3.8\mqx\source\bsp\twrk40x256\twrk40x256.h

Included that file, and it all compiles and links now.

Under mqx/ CFV1, we had to create a pointer to a structure and index into the registers, with Kinetis they give the pointer in the above file and all the offsets. It is obvious once you find it; the hard part was finding it.