用于STM32F4的ILI9341 LCD

时间:2017-09-24 03:19:57

标签: c++ stm32 keil lcd stm32f4discovery

我正在尝试使用此site中的库将此LCD TFT显示屏(ILI9341)连接到我的STM32F4。

但是我一直在keil上得到符号未定义的错误,即使我已经定义了我使用extern调用的函数并添加了它们的标题并指定了它们的路径。请有人向我解释这样的错误的原因以及如何最好地解决类似的问题。

代码:

/*--------------------------------------------------------------------------    --
 * CMSIS-RTOS 'main' function template
 *---------------------------------------------------------------------------*/

#define osObjectsPublic                     // define objects in main module
#include "osObjects.h"                      // RTOS object definitions
#include "LCD_FUNCS.h"
#include "stm32f4xx_spi.h"
#include "tm_stm32f4_spi.h"

extern void TM_ILI9341_Init(void);
extern void TM_DELAY_Init(void);


/*
 * main: initialize and start the system
 */
int main (void) {
  osKernelInitialize ();                    // initialize CMSIS-RTOS

  // initialize peripherals here


    //Initialize system
    SystemInit();
    //Initialize delay
    TM_DELAY_Init();
    //Initialize ILI9341 with LTDC
    //By default layer 1 is used
    TM_ILI9341_Init();


  // create 'thread' functions that start executing,
  // example: tid_name = osThreadCreate (osThread(name), NULL);

  osKernelStart ();                         // start thread execution 
}

请注意,我还没有开始实现这些功能,我很想让它们进行编译。

错误讯息:

。\ Objects \ PROJECT1.axf:错误:L6218E:未定义的符号TM_ILI9341_Init(从main.o引用)。 。\ Objects \ PROJECT1.axf:错误:L6218E:未定义的符号TM_DELAY_Init(从main.o引用)。

0 个答案:

没有答案