A trick to run NXP-NCI_LPC11xx_example with OM5577

Showing results for 
Search instead for 
Did you mean: 

A trick to run NXP-NCI_LPC11xx_example with OM5577

No ratings

A trick to run NXP-NCI_LPC11xx_example with OM5577

The latest NXP-NCI example is rev 1.6, and when you run this demo with the lpc11xx board, for example, lpc1115 rev A, and the OM5577, you may meet the following issue:


The problem is due to two aspects: one is hardware and the other is software.

  1. For hardware solution, besides following what is described in AN11658 section 2.4 LPC11xx, you have to do one more thing:


    a) The I2C lines are not pulled-up: LPC11xx doesn't offer internal pull-up setting of the I2C lines so external pull-up resistors must be added.187042_187042.pngpastedImage_4.png
  2. For software solution, the function of Sleep()( in tool.c) was optimized too much, and it didn't meet the timing requirement of OM5577, so we should let the IDE ignore it. The solution I use is as below:

    __attribute__((optimize("O0"))) void my_func()

    You may check the attachment for details.

  3. The result is shown as below:187043_187043.pngpastedImage_5.png

Original Attachment has been moved to: tool.c.zip

Version history
Revision #:
1 of 1
Last update:
‎06-19-2017 10:31 PM
Updated by: