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

SSD1306 cfb with nRF9160 DK

Hi,

I am trying to use the SSD1306 display with the nRF9160 DK.

I am using the code as is shown here

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

My overlay file looks like this

&i2c2 {
	status = "ok";
        sda-pin = <1>;
        scl-pin = <0>;
	clock-frequency = <I2C_BITRATE_FAST>;
	ssd1306@3c {
		compatible = "solomon,ssd1306fb";
		reg = <0x3c>;
		label = "SSD1306";
		width = <128>;
		height = <64>;
		segment-offset = <0>;
		page-offset = <0>;
		display-offset = <0>;
		segment-remap;
		com-invdir;
		prechargep = <0x22>;
	};
};

and my prf.conf looks like this

CONFIG_I2C=y
CONFIG_SSD1306=y
CONFIG_SSD1306_SH1106_COMPATIBLE=n
CONFIG_STDOUT_CONSOLE=y

CONFIG_BOOT_BANNER=n
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_DISPLAY=y
CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_SHELL=y
CONFIG_CHARACTER_FRAMEBUFFER_SHELL=y

CONFIG_LOG=y
CONFIG_CFB_LOG_LEVEL_DBG=y

When i try to run, I see this error

***** Booting Zephyr OS build v1.14.99-ncs3-snapshot2-1-g9420e7247ba2 *****
Could not get device binding for display device
[00:00:00.000,183] <err> i2c_nrfx_twim: Error 195952641 occurred for message 0
[00:00:00.000,183] <err> ssd1306: Failed to initialize device!
Exception occurred in Secure State
***** HARD FAULT *****
  Fault escalation (see below)
***** BUS FAULT *****
  Precise data bus error
  BFAR Address: 0x50008120
***** Hardware exception *****
Current thread ID = 0x200201e0
Faulting instruction address = 0xd83a
Fatal fault in ISR! Spinning...

Any thoughts?

Thanks,

Rod

Parents Reply Children
No Data
Related