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

printf is creating error while building the SPI example in 11.0.0 sdk

spi.rar

Hi,

As a beginner, I want to combine spi and uart example in nrf52 11.0.0 sdk, for my application. I have included all libraries and driver files from uart in spi sample code. But while building the example I am getting following errors:

Error[Li005]: no definition for "__lseek" [referenced from xfspos.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__close" [referenced from fclose.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "remove" [referenced from fclose.o(dl7M_tlf.a)] 

Why these errors are coming ? Does anyone has any idea about this?

Parents
  • Hi,

    Make sure that you have latest version of the nRF5x-MDK-IAR (8.11.1), you can download it here.

    Also make sure to select the correct processor core in the project options: Project->General Options-> Target -> Core: Cortex-M4F

  • Hi Sigurd,

    I have installed the latest version of of nrf MDK . in project Option :Project->General Options-> Target - I am using nRF52832_xxAA device. Still the error is appearing.

    In new SDK 12.0.0 I am using fatfs example. In this example, to print the data over terminal, NRF_LOG_INFO() is used. Now for getting character from terminal I am using getchar() function.

    So, Here I am getting similar following error,

    Error[Li005]: no definition for "__read" [referenced from xfrprep.o(dl7M_tlf.a)]
    

    Do you have any idea about this?

Reply
  • Hi Sigurd,

    I have installed the latest version of of nrf MDK . in project Option :Project->General Options-> Target - I am using nRF52832_xxAA device. Still the error is appearing.

    In new SDK 12.0.0 I am using fatfs example. In this example, to print the data over terminal, NRF_LOG_INFO() is used. Now for getting character from terminal I am using getchar() function.

    So, Here I am getting similar following error,

    Error[Li005]: no definition for "__read" [referenced from xfrprep.o(dl7M_tlf.a)]
    

    Do you have any idea about this?

Children
No Data
Related