This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issue running Azoteq IQS550 EV02 Sample Code With Adafruit nRF52 Feather

Dear all,

I'd first like to apologize if my questions seem dumb. I'm a student in mechanical engineering and only just started getting accustomed to microcontrollers and BLE. That being said, I am having a lot of fun and have learned a lot over the past couple of months and am hoping to learn more!

As most beginners in electronics do, I started with the Arduino (Nano) and was able to get it to successfully work with Azoteq's IQS550 EV02 Kit (largely due to the fact that the sample code is provided). My next goal was to enable the IQS550 to send data over bluetooth to my phone depending on the gesture I was making. Since I was still only just getting familiar with the Arduino IDE, I decided to get the Adafruit nRF52 Feather which uses the nRF52832 microcontroller. However, after successfully installing the Adafruit nRF52 board onto the Arduino IDE, when trying to compile the same sample code provided from Azoteq, I of course received an error. 

The error was related to the I2C.cpp file included in the ZIP folder I've provided with the same sample code from Azoteq. More specifically, after some research, I realized it had to do with the TWI and I2C naming conventions used by AVR and the ATMega328 chip (or so I presume this is the reason). For example, the Arduino uses PORTD, PORTC, etc. for their port registers, and TWSR, TWCR, etc. for their TWI registers. My next attempt was to find the corresponding names in for the nRF52832 chip in Nordic Semiconductors InfoCentre for the chip, to no avail. I've tried looking into the AVR code files that have to do with I2C to see if I could find a relationship to where I should be looking in the nRF52 code files. I've also searched all over google to try and find someone with a similar problem and have posted the same problem in Adafruit's forums to see if I could get an answer on their side and am still awaiting a response. I was hoping one of you kind fellows who understands how to solve this problem would be able to help me with this as I'm extremely excited to get this working!

Long story short, I'm trying to get the Arduino IDE to compile the sample code provided by Azoteq for the IQS550 EV02 Kit. To reproduce the same error, simply open your Arduino IDE, change the board to the Adafruit nRF52832 Feather (requires some setup), open the sample code I've attached, and hit compile.

Thank you in advance for your help!

Kind regards,
Seiei

iqs550_arduino_example_code.zip

  • Hi.

    Long story short, I'm trying to get the Arduino IDE to compile the sample code provided by Azoteq for the IQS550 EV02 Kit. To reproduce the same error, simply open your Arduino IDE, change the board to the Adafruit nRF52832 Feather (requires some setup), open the sample code I've attached, and hit compile.

    The Arduino nano has a ATmega processor, while the nRF52832  is a ArmRegistered CortexRegistered-M4 32-bit processor. You won't be able to run code on the nRF with code that is built for another processor architecture. If you want an example that uses I2C and is designed for the nRF then you can see this example from our SDK. 

    regards

    Jared 

Related