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

nrf52-spi-i2c-master-ssd1306

Hi

I am trying to use the example given on your site

https://github.com/monpetit/nrf52-spi-i2c-master-ssd1306/blob/master/README.md

I am using 


IDE-Version:
µVision V5.26.2.0
Copyright (C) 2018 ARM Ltd and ARM Germany GmbH. All rights reserved.

License Information:
. .
aa
LIC=----

Tool Version Numbers:
Toolchain: MDK-Lite Version: 5.26.2.0
Toolchain Path: C:\Keil_v5\ARM\ARMCC\Bin
C Compiler: Armcc.exe V5.06 update 6 (build 750)
Assembler: Armasm.exe V5.06 update 6 (build 750)
Linker/Locator: ArmLink.exe V5.06 update 6 (build 750)
Library Manager: ArmAr.exe V5.06 update 6 (build 750)
Hex Converter: FromElf.exe V5.06 update 6 (build 750)
CPU DLL:
Dialog DLL:
Target DLL: Segger\JL2CM3.dll V2.99.31.0
Dialog DLL: TCM.DLL V1.36.1.0

when I compile with this newer version I get the following errors and dont know how solve this please help

*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'nrf52832_ssd1306'
compiling spi_module.c...
..\..\spi_module.c(41): error: #20: identifier "nrf_drv_spi_event_t" is undefined
static void spi_master_event_handler(nrf_drv_spi_event_t event)
..\..\spi_module.c: 0 warnings, 1 error
compiling uart_module.c...
compiling main.c...
compiling ssd1306.c...
..\..\ssd1306.c(35): error: #20: identifier "TWI1_IRQ" is undefined
.irq = TWI1_IRQ,
..\..\ssd1306.c(34): error: #136: struct "<unnamed>" has no field "p_reg"
.p_reg = NRF_TWI1,
..\..\ssd1306.c(583): warning: #69-D: integer conversion resulted in truncation
nrf_drv_twi_tx(&m_twi_master, _i2caddr, buffer, (SSD1306_LCDWIDTH * SSD1306_LCDHEIGHT / 8), false);
..\..\ssd1306.c: 1 warning, 2 errors
assembling arm_startup_nrf52.s...
compiling bsp.c...
compiling system_nrf52.c...
compiling nrf_drv_common.c...
compiling nrf_delay.c...
compiling nrf_drv_spi.c...
compiling nrf_drv_gpiote.c...
compiling nrf_drv_twi.c...
compiling nrf_drv_uart.c...
compiling app_uart_fifo.c...
compiling app_button.c...
compiling app_error.c...
compiling app_timer.c...
compiling app_fifo.c...
compiling nrf_assert.c...
compiling app_util_platform.c...
compiling retarget.c...
".\_build\nrf52832_ssd1306.axf" - 3 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed: 00:00:40

              Thanks 

                       Uri 

Related