Application Command issue in 'examples/freemaster_examples/fmstr_example_pdbdm

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

Application Command issue in 'examples/freemaster_examples/fmstr_example_pdbdm

86 Views
pberna67
Contributor II

Dear All

Downloaded sdk.sdk_2.x_lpcxpresso54114 with only FreeMASTER examples. It works correctly in any aspect apart the Application Command section where I find strange behavior

More details has been posted in github here:

https://github.com/nxp-mcuxpresso/mcuxsdk-examples/issues/10


Regards

Paolo

 

0 Kudos
Reply
1 Reply

29 Views
MichalH
NXP Apps Support
NXP Apps Support

Hello, if I understand the issue correctly, you do not see a reason why command 0x10 returns code 16 in the example application.

The command 0x10 is registered for a callback function:

MichalH_0-1790669419958.png

So the function "my_appcmd_handler" gets called automatically when FreeMASTER probes the command execution.  The example code of this callback is quite trivial:

MichalH_1-1790669515160.png

Which is the reason you get the return code 16 (=0x10) as answer.

I also confirm there is an issue in FreeMASTER with displaying a message for unknown responses as you reported for app.command with Id 0x02. The response 0xcd should be reported as "unknown response" but generates no message at all.

Thanks,
Michal

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2416528%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EApplication%20Command%20issue%20in%20'examples%2Ffreemaster_examples%2Ffmstr_example_pdbdm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416528%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20All%3C%2FP%3E%3CP%3EDownloaded%20sdk.sdk_2.x_lpcxpresso54114%20with%20only%20FreeMASTER%20examples.%20It%20works%20correctly%20in%20any%20aspect%20apart%20the%20Application%20Command%20section%20where%20I%20find%20strange%20behavior%3C%2FP%3E%3CP%3EMore%20details%20has%20been%20posted%20in%20github%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fmcuxsdk-examples%2Fissues%2F10%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fmcuxsdk-examples%2Fissues%2F10%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ERegards%3C%2FP%3E%3CP%3EPaolo%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2416988%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Application%20Command%20issue%20in%20'examples%2Ffreemaster_examples%2Ffmstr_example_pdbdm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416988%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20if%20I%20understand%20the%20issue%20correctly%2C%20you%20do%20not%20see%20a%20reason%20why%20command%200x10%20returns%20code%2016%20in%20the%20example%20application.%3C%2FP%3E%0A%3CP%3EThe%20command%200x10%20is%20registered%20for%20a%20callback%20function%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MichalH_0-1790669419958.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MichalH_0-1790669419958.png%22%20style%3D%22width%3A%20388px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F396998i4B4FABC8A6AD0CB5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MichalH_0-1790669419958.png%22%20alt%3D%22MichalH_0-1790669419958.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESo%20the%20function%20%22my_appcmd_handler%22%20gets%20called%20automatically%20when%20FreeMASTER%20probes%20the%20command%20execution.%26nbsp%3B%20The%20example%20code%20of%20this%20callback%20is%20quite%20trivial%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MichalH_1-1790669515160.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MichalH_1-1790669515160.png%22%20style%3D%22width%3A%20792px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F396999i1092279E3D133C93%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MichalH_1-1790669515160.png%22%20alt%3D%22MichalH_1-1790669515160.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhich%20is%20the%20reason%20you%20get%20the%20return%20code%2016%20(%3D0x10)%20as%20answer.%3C%2FP%3E%0A%3CP%3EI%20also%20confirm%20there%20is%20an%20issue%20in%20FreeMASTER%20with%20displaying%20a%20message%20for%20unknown%20responses%20as%20you%20reported%20for%20app.command%20with%20Id%200x02.%20The%20response%200xcd%20should%20be%20reported%20as%20%22unknown%20response%22%20but%20generates%20no%20message%20at%20all.%3C%2FP%3E%0A%3CP%3EThanks%2C%3CBR%20%2F%3EMichal%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E