Re: [Zephyr-users] assertion fail in nordic nrf5 i2c driver


Giuliano Franchetto <giuliano.franchetto@...>
 

Hi Manu,

Please try with the following configs:

CONFIG_I2C=y
CONFIG_I2C_0_NRF_TWI=y
CONFIG_I2C_0=y
CONFIG_I2C_NRFX=y
CONFIG_I2C_0_NRF_TWI=y
CONFIG_NRFX_TWI=y

Some of these configurations may not be mandatory, but it should work.

Best regards
Giuliano FRANCHETTO
_______________________________________________________
Giuliano FRANCHETTO
CTO
https://intellinium.io

Office : +33 9 82 59 33 01
Mobile : +33 6 73 14 95 12
Email : giuliano.franchetto@intellinium.com

Société INTELLINIUM
Technopôle Arbois-Méditerranée,
Av. Louis Philibert, Bât. Laennec Hall A,
13857 Aix en Provence Cedex 3 (France)
________________________________________________________

-----Message d'origine-----
De : users@lists.zephyrproject.org <users@lists.zephyrproject.org> De la part de Himanshu Jha
Envoyé : mercredi 10 octobre 2018 07:01
À : Manu R <manu@culvertengineering.com>
Cc : Cufi, Carles <Carles.Cufi@nordicsemi.no>; devel@lists.zephyrproject.org; users@lists.zephyrproject.org; Głąbek, Andrzej <Andrzej.Glabek@nordicsemi.no>; Mieruński, Mieszko <Mieszko.Mierunski@nordicsemi.no>
Objet : Re: [Zephyr-devel] [Zephyr-users] assertion fail in nordic nrf5 i2c driver

Hi Manu,

On Tue, Oct 09, 2018 at 12:03:01PM -0700, Manu R wrote:
Carles, I am trying to use 1.13 and am having some issues. I can build
hello_world, but when i tried to build anything with i2c, I have
issues. ( drivers__i2c was created without source files)
Try this:

diff --git a/samples/drivers/i2c_fujitsu_fram/prj.conf b/samples/drivers/i2c_fujitsu_fram/prj.conf
index f9659582c..484e813e7 100644
--- a/samples/drivers/i2c_fujitsu_fram/prj.conf
+++ b/samples/drivers/i2c_fujitsu_fram/prj.conf
@@ -1,4 +1,4 @@
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y

-CONFIG_I2C=y
+#CONFIG_I2C=y


After this you can select whatever CONFIG you want to select in the `ninja menuconfig`.

Also, just to test that your board and environment, I would first suggest trying sample programs:
https://docs.zephyrproject.org/latest/boards/arm/nrf52840_pca10056/doc/nrf52840_pca10056.html#testing-the-leds-and-buttons-in-the-nrf52840-pdk

Flash these samples and test to see everything is fine.

HTH,
Thanks
--
Himanshu Jha
Undergraduate Student
Department of Electronics & Communication Guru Tegh Bahadur Institute of Technology

Join devel@lists.zephyrproject.org to automatically receive all group messages.