no definition error SPI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-03-19 1:31 PM
When I compile my code it says everything is ok. But when I try to download and debug i get the error no definition for SPI_I2S_SendData, SPI_Init, and SPI_Cmd. I've included the ''stm32lxx_spi.h'' file and still am having problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-03-19 1:53 PM
You'll need to pull the library code itself into the project, ie stm32lxx_spi.c
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-03-19 2:06 PM
I pulled the stm32l1xx_spi.c file into the user folder where my main.c is and when I compile it gives me 47 errors due to the stm32l1xx_spi.c file. I'm sorry I'm fairly new to all of this but it seems like using a .c library file shouldn't give me any errors at all?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-03-19 3:24 PM
No, but it's a sign you don't have the paths to the libraries, includes, or the project set up in a manner consistent with the other examples in the firmware library.
Normally one would ADD library files into the project tree from within the library tree, as uposed to copying the actual files into your own source directory. There might also be a stm32L1xx_conf.h that pulls in the required include files.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-03-19 8:03 PM
I have included the stm32l1_conf.h and it didn't fix the problem. I'm not sure I'm fully understanding how I should deal with this stm32l1_spi.c file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-03-20 10:33 AM
Also it claims for example Error[Li005]: no definition for ''SPI_I2S_SendData'' but if I go to the main.c file and right click show definition it takes me to the correct definition.
