Posts: 16
Registered: ‎10-20-2016

# Error[Li005]: no definition for "halSpiMasterInit" [referenced from ... .o]

[ Edited ]

I am simply attempting to utilize the given halSpiMasterInit function which is defined in spi-master.h/spi-master.c. I have included spi-master correctly and this error only shows up during Linking and it says there is no definition for halSpiMasterInit in my object file. Any ideas?

I am using EM3588 with EmberZNET 5.7.4.0

Highlighted
Posts: 2,384
Registered: ‎10-14-2014

## Re: Error[Li005]: no definition for "halSpiMasterInit" [referenced from ... .o]

[ Edited ]

Do you missed to define some macro. I think you could try to drag and put the spi-master.c file into your project.

My views are my own and do not necessarily represent the views of Silicon Labs

WeiguoLu
Posts: 16
Registered: ‎10-20-2016

## Re: Error[Li005]: no definition for "halSpiMasterInit" [referenced from ... .o]

@delu The spi-master.c file is already in my project.

Posts: 2,384
Registered: ‎10-14-2014

## Re: Error[Li005]: no definition for "halSpiMasterInit" [referenced from ... .o]

do you mind uploading the project file that someone could reproduce the issue?
WeiguoLu