跳线帽应该没有插错,程序可以成功下载,复位后还是没有反应,原本程序的功能是可以在LCD和串口输出温度值,可是现在LCD没反应,串口输出也没输出(参数设置正确)。
我最新的进展是发现将主函数的的I2C_LM75_Init();和 Thermometer_Temperature(buffer1[],buffer2[]);函数注释掉,LCD可以输出字符,当然不能输出温度值,初步怀疑是例程里的库函数过大(这种情况该不会导致stm32不够空间跑程序?)
下面是我的主函数:
void RCC_configuration(void);
void NVIC_congfiguration(void);
void GPIO_configuration(void);
void USART_configuration(void);
extern void I2C_LM75_Init(void);
extern u32 TemCelsius_Value;
extern u16 I2C_LM75_Temp_Read(void);
extern ErrorStatus I2C_LM75_Status(void);
extern void Thermometer_Temperature(char buffer1[],char buffer2[]);
int main()
{
#ifdef DUBEG
debug();
#endif
char buffer1[15];
char buffer2[15];
/*Configure the system clocks*/
RCC_Configuration();
/*NVIC Configuration*/
NVIC_Configuration();
/*Configure the systick*/
System_Config();
/*Configure the GPIOs*/
GPIO_Configuration();
/*Configure the USART*/
USART_Configuration();
//I2C_LM75_Init();
//Thermometer_Temperature(buffer1,buffer2); //注释掉可以LCD可以显示字符,不注释什么也不显示;
/*Initialize the LCD*/
下面是LCD显示的部分代码(省略)
}
|