Run NFC cockpit from the command line

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

Run NFC cockpit from the command line

2,013 Views
wiki_criki
Contributor I

Is there a command line interface for the cockpit tool to automate firmware upgrade to pn5190 via the dev board?

0 Kudos
Reply
6 Replies

1,953 Views
Daniel_Gutierrez
NXP Employee
NXP Employee

Hello, @wiki_criki Good Day!

My apologies, unfortunately the source code for the NFC Cockpit tool is not available as it is a Graphic User Interface meant to make NFC front end devices' configuration easier. However there are some functionalities within the application that can be automated by using the scripting feature which is described in section 5 of the NFC Cockpit User Guide, along with the commands that can be used while testing on any of the supported devices, among which you can find EEPROM commands that can facilitate performing operations on contents of EEPROM like reading, writing, and dumping the contents of EEPROM in a file.

I would also recommend checking out the PNEV5190B evaluation board quick start guide in order to find out more about the supported firmware upgrades by the PN5190.

 

My best regards,
Daniel.

0 Kudos
Reply

650 Views
kevin15
Contributor II
Hello Daniel:
Could you please advise whether COCKPIT supports parameter debugging for the STM32 MCU + PN5190 combination? We have been encountering persistent connection errors and would greatly appreciate any assistance or guidance you could provide.
0 Kudos
Reply

1,931 Views
wiki_criki
Contributor I

Or perhaps the code for UcBalPCTestApp.exe

0 Kudos
Reply

1,949 Views
wiki_criki
Contributor I
Is there a document that describes what communication happens between nfc cockpit and the microcontroller host on k82 so that I can understand the flow required to initiate and complete a firmware update. I can use that information to create a tool of my own that replicates that behavior. Basically I need an automated way to update firmware on PN5190 in a way that allows me to switch firmware versions easily. So I want to use the evaluation board connected to my custom board and the PC tool to update my custom board easily.

I understand that there are options to use a custom application on the evaluation board but that is not what I am looking for. I want the same behavior as NFC cockpit but in an automated way. Any help would be highly appreciated.
0 Kudos
Reply

1,905 Views
Daniel_Gutierrez
NXP Employee
NXP Employee

Hello @wiki_criki, Good Day!

Unfortunately, the source code for UcBalPCTestApp.exe is also not available. On the other hand, there is an example code available, written in embedded C language, that performs a firmware update for the PN5190 which can be useful when it comes to diving into the process that the host device follows when writing the front-end device. This example can be compiled and debugged using MCUXpresso IDE for NXP MCUs and can be downloaded here: PN5190 Secure Firmware Downloader Example Code.

My best regards,
Daniel.

0 Kudos
Reply

1,970 Views
wiki_criki
Contributor I

Is it possible to write a Windows host application that automates the NFC Cockpit workflow? Is source code for cockpit available?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2034848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERun%20NFC%20cockpit%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2034848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIs%20there%20a%20command%20line%20interface%20for%20the%20cockpit%20tool%20to%20automate%20firmware%20upgrade%20to%20pn5190%20via%20the%20dev%20board%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2340809%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Run%20NFC%20cockpit%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2340809%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHello%20Daniel%3A%3CBR%20%2F%3ECould%20you%20please%20advise%20whether%20COCKPIT%20supports%20parameter%20debugging%20for%20the%20STM32%20MCU%20%2B%20PN5190%20combination%3F%20We%20have%20been%20encountering%20persistent%20connection%20errors%20and%20would%20greatly%20appreciate%20any%20assistance%20or%20guidance%20you%20could%20provide.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036665%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Run%20NFC%20cockpit%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036665%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246077%22%20target%3D%22_blank%22%3E%40wiki_criki%3C%2FA%3E%2C%20Good%20Day!%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20the%20source%20code%20for%20UcBalPCTestApp.exe%20is%20also%20not%20available.%20On%20the%20other%20hand%2C%20there%20is%20an%20example%20code%20available%2C%20written%20in%20embedded%20C%20language%2C%20that%20performs%20a%20firmware%20update%20for%20the%20PN5190%20which%20can%20be%20useful%20when%20it%20comes%20to%20diving%20into%20the%20process%20that%20the%20host%20device%20follows%20when%20writing%20the%20front-end%20device.%20This%20example%20can%20be%20compiled%20and%20debugged%20using%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fdevelopment-software%2Fmcuxpresso-software-and-tools-%2Fmcuxpresso-integrated-development-environment-ide%3AMCUXpresso-IDE%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMCUXpresso%20IDE%20for%20NXP%20MCUs%3C%2FA%3E%20and%20can%20be%20downloaded%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fsps%2Fdownload%2Flicense.jsp%3FcolCode%3DSW6592%26amp%3BappType%3Dfile1%26amp%3BDOWNLOAD_ID%3Dnull%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPN5190%20Secure%20Firmware%20Downloader%20Example%20Code%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EMy%20best%20regards%2C%3CBR%20%2F%3EDaniel.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036375%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Run%20NFC%20cockpit%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036375%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOr%20perhaps%20the%20code%20for%26nbsp%3BUcBalPCTestApp.exe%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036305%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Run%20NFC%20cockpit%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036305%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIs%20there%20a%20document%20that%20describes%20what%20communication%20happens%20between%20nfc%20cockpit%20and%20the%20microcontroller%20host%20on%20k82%20so%20that%20I%20can%20understand%20the%20flow%20required%20to%20initiate%20and%20complete%20a%20firmware%20update.%20I%20can%20use%20that%20information%20to%20create%20a%20tool%20of%20my%20own%20that%20replicates%20that%20behavior.%20Basically%20I%20need%20an%20automated%20way%20to%20update%20firmware%20on%20PN5190%20in%20a%20way%20that%20allows%20me%20to%20switch%20firmware%20versions%20easily.%20So%20I%20want%20to%20use%20the%20evaluation%20board%20connected%20to%20my%20custom%20board%20and%20the%20PC%20tool%20to%20update%20my%20custom%20board%20easily.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20understand%20that%20there%20are%20options%20to%20use%20a%20custom%20application%20on%20the%20evaluation%20board%20but%20that%20is%20not%20what%20I%20am%20looking%20for.%20I%20want%20the%20same%20behavior%20as%20NFC%20cockpit%20but%20in%20an%20automated%20way.%20Any%20help%20would%20be%20highly%20appreciated.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Run%20NFC%20cockpit%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246077%22%20target%3D%22_blank%22%3E%40wiki_criki%3C%2FA%3E%26nbsp%3BGood%20Day!%3C%2FP%3E%0A%3CP%3EMy%20apologies%2C%20unfortunately%20the%20source%20code%20for%20the%20NFC%20Cockpit%20tool%20is%20not%20available%20as%20it%20is%20a%20Graphic%20User%20Interface%20meant%20to%20make%20NFC%20front%20end%20devices'%20configuration%20easier.%20However%20there%20are%20some%20functionalities%20within%20the%20application%20that%20can%20be%20automated%20by%20using%20the%20scripting%20feature%20which%20is%20described%20in%20section%205%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FUG10025.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENFC%20Cockpit%20User%20Guide%3C%2FA%3E%2C%20along%20with%20the%20commands%20that%20can%20be%20used%20while%20testing%20on%20any%20of%20the%20supported%20devices%2C%20among%20which%20you%20can%20find%20EEPROM%20commands%20that%20can%20facilitate%20performing%20operations%20on%20contents%20of%20EEPROM%20like%20reading%2C%20writing%2C%20and%20dumping%20the%20contents%20of%20EEPROM%20in%20a%20file.%3C%2FP%3E%0A%3CP%3EI%20would%20also%20recommend%20checking%20out%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN12550.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPNEV5190B%20evaluation%20board%20quick%20start%20guide%3C%2FA%3E%20in%20order%20to%20find%20out%20more%20about%20the%20supported%20firmware%20upgrades%20by%20the%20PN5190.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EMy%20best%20regards%2C%3CBR%20%2F%3EDaniel.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2035940%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Run%20NFC%20cockpit%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2035940%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIs%20it%20possible%20to%20write%20a%20Windows%20host%20application%20that%20automates%20the%20NFC%20Cockpit%20workflow%3F%20Is%20source%20code%20for%20cockpit%20available%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E