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

nRF9160 driving the grove_display

Hi,

Has anyone tried connecting the grove_display to the nRF9160?

http://wiki.seeedstudio.com/Grove-LCD_RGB_Backlight/

I have tried the code below

https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/display/grove_display

and created an overlay file

&i2c2 {
        status = "ok";
        sda-pin = <1>;
        scl-pin = <0>;
        clock-frequency = <I2C_BITRATE_FAST>;
        grove_display@0 {
		compatible = "grove, grove_display";
		reg = <0x0>;
		label = "GROVE LCD";
	};
};

and I get the error

Secure Boot: MSP_NS 20020580

Secure Boot: prepare to jump to Non-Secure image

***** Booting Zephyr OS v1.13.99-ncs1-5561-gde69d2df908f *****

Grove LCD: Device not found.

I guess there's an error in my overlay file?

Rod

Parents Reply
  • Thanks Jan,

    Ahh, missed that, cheers. Looking at the data sheet

    http://www.newhavendisplay.com/specs/NHD-0220D3Z-FL-GBW-V3.pdf

    this should be set to 0x50.

    Unfortunately, Im still getting the same error. I note that the max I2C speed on the device is 50kb/s. (Page 6 of the datasheet)

    In my overlay file, the clock speed is set to I2C_BITRATE_FAST. Looking at the include file, this defines a speed of 400kb/s

    #define I2C_BITRATE_FAST 400000 /* 400 Kbit/s */

    There isn't a definition for a speed of 50kb/s, the slowest speed is 

    #define I2C_BITRATE_STANDARD 100000 /* 100 Kbit/s */

    which doesn't work.

    I have tried to define a slower speed

    #define I2C_BITRATE_SLOW 50000 /* 50 Kbit/s */ but when I reference this is my overlay file, I get an error.

    Please can you confirm which I2c.h file I should be updating? Am I missing anything else?

    Rod

Children
Related