How to update SDK to make Free Master protocol V4 recorder work?

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

How to update SDK to make Free Master protocol V4 recorder work?

ソリューションへジャンプ
3,037件の閲覧回数
jamesli
Contributor IV

Before I update it to the newest version of the SDK, my application work correctly with FreeMaster over CAN at 1MHz, but FM recorder sometimes does not work because my FM drive does not support protocol V4. 

So that I imported all FM components in SDK 2.8.2 to my application, it takes several times to get compiler pass. There is no detailed manual or API document to help me how to update SDK FM component.  I tried to import a few components in SDK, but which parts, CAN, FlexCAN, Protocol, cfg or more? The compiler always find more and more errors and fail to compile. I have to important all FM components in new SDK to let compiler to pass compiling, but new code does not talk, the peripheral settings of FlexCAN are the same as my work code, is there any extra setting needed for protocol V4? Is a new Clock initialization code needed or special order of initialization of clock sources the involving the other peripherals.

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
3,024件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

If you will do the migration of the FM files to the newest SDK then you need to migrate all the SDK files, you cannot use some files from an older version and other files from a newer version. This includes all the drivers, the board files, the cfg files, memory files, startup… Everything that your application is using from the SDK needs to be migrated to the newest version, not only the FM files.

元の投稿で解決策を見る

8 返答(返信)
3,013件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Dear customer,

the FreeMASTER driver in SDK 2.8 which is currently available at NXP web site does not yet contain full support of CAN communication for RT105x/6x platforms.

The support for all i.MX-RT platforms should appear in the upcoming version 2.9.

I'm attaching a patch file for the SDK 2.8.2 RT1050 package with the new CAN (and USB) examples in the boards/evkbimxrt1050 folder. There are also some minor fixes made in the common part of the FreeMASTER driver in the src folder. Please apply the patch to your SDK package and test the fmstr_can demo application using the EVKB-IMXRT1050 evaluation board.

Let me know if it works properly on your side. I'm able to generate a similar patch for other i.MX-RT boards in case you need it.

Thanks,
Michal

2,975件の閲覧回数
jamesli
Contributor IV

Hi, Michal:

 I use MCUXpresso IDE, it does not accept the patch zip file in my SDK installation section when I drag and drop it; MCUXpresso cannot find and open your project, that are for Armgcc, IAR and MDK so that I cannot test this patch and run the fmstr_can example demo, am I go it right? I got reminder today to update to SDK 2.8.4, is it cantain full support of CAN for protocol V4? If not, I'd rather wait for SDK 2.9 release!

Thank you for help!

Jian

 

 

 

 

  

0 件の賞賛
返信
2,965件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Hello Jian,

I'm afraid that 2.8.4 also does not have the FreeMASTER CAN demo. The ZIP that I sent only contained a source files that you can use in your project - please copy them manually to your created project or over another demo (e.g. fmstr_uart).

The 2.9 is going to have the CAN demo included by default. So if you can wait for it, it is a better option.

Regards,
Michal

0 件の賞賛
返信
2,777件の閲覧回数
jamesli
Contributor IV

Hi, Michal:

  Now, SDK 2.9.0 has released, is it support CAN bus and Free Master protocol V4? Has the CAN demo included? Any particular guild lines to migrate SDK 2.8.2 to SDK 2.9.0?

  Thank you in advance!

 Regards!

 Jian

 

  

0 件の賞賛
返信
2,774件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Hello, 

yes, the i.MX-RT packages in SDK 2.9 contain freemaster example applications demonstrating use of UART, CAN and USB bus. There is also another demo named "fmstr_any", which is ready to switch between UART and CAN communication using a set of graphical configuration tools (MCUXpresso ConfigTools V9). This new demo also enables to configure the FreeMASTER driver features graphically using the Peripherals tool, which is also included in the ConfigTools suite.

It should be quite smooth for you to migrate your application from 2.8.2 to 2.9. The driver API and principles are the same. Anyway, I recommend to try the ready-to-use SDK 2.9 examples first.

After you migrate your application to SDK 2.9, you may add the freemaster driver files either manually, or (if you use MCUXpresso IDE) using the "Manage SDK Components" button in the project view. The FreeMASTER is in the "Middleware" category.

MichalH_0-1610966311685.png

Regards,
Michal

 

0 件の賞賛
返信
3,001件の閲覧回数
jamesli
Contributor IV

Hi, Michael:

Many thanks for help and patch file, I will try you suggest and let you know the ourcome!

Jamesli

 

0 件の賞賛
返信
3,025件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

If you will do the migration of the FM files to the newest SDK then you need to migrate all the SDK files, you cannot use some files from an older version and other files from a newer version. This includes all the drivers, the board files, the cfg files, memory files, startup… Everything that your application is using from the SDK needs to be migrated to the newest version, not only the FM files.

3,003件の閲覧回数
jamesli
Contributor IV

Hi, Victor: 

Thank you for help. Yes, I have to update all file in SDK and otherwise, it cannot pass compiling.

 

 

0 件の賞賛
返信