A trick to run NXP-NCI_LPC11xx_example with OM5577

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

A trick to run NXP-NCI_LPC11xx_example with OM5577

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:

187036_187036.pngpastedImage_1.png

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:

    187040_187040.pngpastedImage_2.png

    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()
    {
    blah
    }

    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

No ratings
Version history
Last update:
‎06-19-2017 10:31 PM
Updated by: