Building the NHS3100 demo logging app

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

Building the NHS3100 demo logging app

1,145 Views
jackkc7vlo
Contributor I

I recently ordered the NHS3100 starter kit and can successfully load and run the temperature logger demo with the Android App.   However if I build the SDK example, the app loads and runs fine, but logcat reports any returned messages as unknown.   I suspect a build setting.  

Any ideas?  

I've verified the MCU settings as the NHS3100.  I can also directly load and run the original .hex files.

0 Kudos
Reply
2 Replies

947 Views
jackkc7vlo
Contributor I

It looks like the compiled code from the SDK generates a different NDEF header.   I haven't gone through decoding the NDEF headers yet, but it looks like the bad one creates a very small header and the good one and larger header, but the underlying code puts the message in the same place regardless (where the larger header expects it) 

(BAD Header)

Screenshot_2017-09-14-10-23-51.png

Good Header

Screenshot_2017-09-14-13-02-27.png

0 Kudos
Reply

947 Views
driesmoors
NXP Employee
NXP Employee

Hi,

The first image you posted is displaying the initial NDEF message generated by the NHS3100, with a command sent from the phone to the tag (to set a new configuration, issued on Thursday, September 14, 2017 - the timestamp is in the message) written on top of it. It looks like the NHS3100 did not recognize the write by the tag reader (your phone) into the NFC memory.

Can you share the logcat with us? Also, which project did you build and flash, was it a debug or release configuration, and what were the modifications made? How did you flash the firmware you built? By starting a debug session (.axf file), using the separate LPCXpresso Flash command (.axf file), or using Flash Magic (.hex file)?

You mentioned you also tried the binary images that were pre-built and are present in the SDK. Did you experience any problem running them?

A final consideration: after using Flash Magic, you have to reset the demo PCB manually. This is not done by Flash Magic. Either remove and re-insert the battery, either press the reset button.

Best,
Dries.

0 Kudos
Reply