Hi, there!
My question concerns developing a custom application for the NHS3152 (with limited memory requirements) that permits repeated over-the-air updates via NFC because the chip will itself be (needs to be) fully encapsulated. As such, there is not the possibility of programming updates via SWD.
So, the NFCProgramLoader application in the SDK is of interest. From the associated readme:
"The NFC program loader facilitates wireless download of the final product application binary into the NHS31xx IC. This allows on-the-field programming of the required custom application when SWD is no longer accessible."
Perfect! I have a development kit and have used this demo application, but need to develop an application that incorporates this capacity for repeated programming. As far as I can tell, the source files for the application are not available — just the .hex and .bin files and a lone header file named "msghandler_protocol.h".
@Kan_Li — on this topic, you have previously said:
"The source code of one time NFC programmer is available in the folder of 'sw\nss\app_closed_nfcprogramloader', you may try to integrate into your own application to act as a secondary bootloader, but just concern if the flash size is enough to contain two applications."
This is what I intend to do. Can you please direct me to where I can find the C files for this demo to use as a reference in developing a hybrid application that permits OTA programming updates?
Thank you!
Can someone else at NXP take a look at this thread, please?
I am specifically looking for the C extension source files for "sw\nss\app_closed_nfcprogramloader" in the NHS3152 SDK, but to be clear — there are only compiled .hex / .bin files available in the SDK. I am interested in the C source files for this example application.
See prior posts for explanation. Please do not repeatedly direct me to the SDK.
Thanks!
I'm sorry sir but, the C files for the app_closed_nfcprogramloader project aren't released. Please follow the next community thread for more information: https://community.nxp.com/t5/NFC/Reference-code-for-nfcprogramloader-NHS31xx/m-p/1016913
Thanks, @Fabian_R. And why haven't these resources (source files) been released? The work has been done already and it would clearly benefit those developing solutions using NXP chips ...
Why not release these files as resources to paying customers?
...
This NFC Programming tool was developed in python. Please download the SDK zip file from the NHS3100 site in the Software section: NHS3100 SDK - v12.5 (release_mra2_nhs3100). Then you will find the python3 tool in the next path: ..\release_mra2_nhs3100\release_mra2_12_4_nhs3100\tools\nfcloader\python
I hope this information may have been useful.
@Fabian_R It seems either I haven't been clear in stating my question, or there has been a misunderstanding. I am aware of the host side python code you've shared (and that's a great resource to have), but what I am interested in is the C files for the corresponding chip side application ("nfcprogramloader") that act as a secondary bootloader in accepting new programs over NFC.
I have described my rationale in the original question, but to reiterate: I am developing an application that requires repeated over the air updates given the chip will be fully encapsulated, precluding a wired programming interface. Having a one-shot program loader is prohibitive.
Ideally, the source files used for this demonstration could serve as a reference in developing an application that both serves a function in the absence of an incoming update and retains the ability to accept updates over the air.
Thanks in advance for your help @Fabian_R @Kan_Li
I'm sorry for not understanding well sir.
Please download the SDK on the next link: https://www.nxp.com/webapp/Download?colCode=release_mra2_nhs3100&appType=license
Then, go to the following path: …\release_mra2_nhs3100\release_mra2_12_4_nhs3100\sw\nss\app_closed_nfcprogramloader
In the Readme file, it is explained the functionality of this project and if you go back to: …\release_mra2_nhs3100\release_mra2_12_4_nhs3100\docs you will see UM11153, where it shows how to import the examples to LPCXpresso but, this because the documentation isn't updated. Please use MCUXpresso instead.
Politely, @Fabian_R , this is not what I am asking for help with. Please revisit my question.