Freemaster Record function over CAN

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Freemaster Record function over CAN

1,537 Views
osmanorgut
Contributor I

Hello, 

I am trying to use Freemaster tool to record a variable in my application.

I tried recording over serial and it is working as expected. When I switched to CAN, I can connect and use the scope functionality. However, recording function is somehow problematic. Small number of samples such as 10-20 recording is working as expected but when i set it to 100 (maximum samples to record is 230) it is not working and throwing below errors: 

- Recorder could not be initialised. Error: 0x858e0000 (Error in CAN/LIN response, bad toggle bit value.)

I am using freemaster driver "3.0.7". Can you support me on this issue? 

 

Thanks in advance,

Osman

 

0 Kudos
Reply
2 Replies

1,529 Views
MichalH
NXP Apps Support
NXP Apps Support

Hello,

can you describe what is the target MCU and what MCUXpresso SDK version are you using? There were some changes in CAN driver after version 3.0.7 (I guess this was MCUXpresso SDK v2.14).

As the first step, I would recommend to try the latest version from MCUXpresso SDK (https://mcuxpresso.nxp.com) for your board - ideally, just test the fmstr_can sample application and see if the Recorder runs fine. If not, I would suspect a hardware issue.

If the fmstr_can example works well but your application does not, I would check the baudrate speed (what speed do you use?). Also make sure you use the FLEXCAN_CalculateImprovedTimingValues in your initialization code to achieve the best possible timing setup.

Regards,
Michal

 

0 Kudos
Reply

1,521 Views
osmanorgut
Contributor I

Hello, 

I am using S32K322 with PlatformSDK_S32K3_s32K322 version 4.0.0. The CAN speed is 500 kbit/s. 

 

Best,

Osman

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2187394%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFreemaster%20Record%20function%20over%20CAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2187394%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20use%20Freemaster%20tool%20to%20record%20a%20variable%20in%20my%20application.%3C%2FP%3E%3CP%3EI%20tried%20recording%20over%20serial%20and%20it%20is%20working%20as%20expected.%20When%20I%20switched%20to%20CAN%2C%20I%20can%20connect%20and%20use%20the%20scope%20functionality.%20However%2C%20recording%20function%20is%20somehow%20problematic.%20Small%20number%20of%20samples%20such%20as%2010-20%20recording%20is%20working%20as%20expected%20but%20when%20i%20set%20it%20to%20100%20(maximum%20samples%20to%20record%20is%20230)%20it%20is%20not%20working%20and%20throwing%20below%20errors%3A%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Recorder%20could%20not%20be%20initialised.%20Error%3A%200x858e0000%20(Error%20in%20CAN%2FLIN%20response%2C%20bad%20toggle%20bit%20value.)%3C%2FP%3E%3CP%3EI%20am%20using%20freemaster%20driver%26nbsp%3B%223.0.7%22.%20Can%20you%20support%20me%20on%20this%20issue%3F%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3EOsman%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E