Issue with FT800 visual TFT generated code
Posted: 30 May 2017 07:06
Hi,
I am using STM32F407 and FT800 driver for (480 * 272) pixels tft .
The source code i have generated from the visual TFT tool.While initializing (InitVTFTStack()) it hold inside the routine
FT800_Touch_Calibrate . so what will be the problem
Back light control is working fine with this code.
The code
Code: Select all
void Init_MCU() {
// Place your code here
SPI1_Init_Advanced(_SPI_FPCLK_DIV8,
_SPI_MASTER | _SPI_8_BIT |
_SPI_CLK_IDLE_LOW | _SPI_FIRST_CLK_EDGE_TRANSITION |
_SPI_MSB_FIRST | _SPI_SS_DISABLE |
_SPI_SSM_ENABLE | _SPI_SSI_1,
&_GPIO_MODULE_SPI1_PA56_PB5);
//RCC_APB2ENRbits.SPI1EN = 1 ;
}
void InitVTFTStack() {
int iret = -1 ;
Init_MCU();
SPI_Set_Active(SPI1_Read, SPI1_Write);
// Init FT800 controller core and library stack
FT800_Init();
FT800_Core_ClockSource(_FT800_CLK_SOURCE_EXTERNAL);
FT800_Core_ClockPLL(_FT800_CLK_PLL_48MHz);
// Internal modules setup
FT800_Display_SetConfig(&VTFT_FT800_CONFIG_DISPLAY);
FT800_Audio_SetConfig(&VTFT_FT800_CONFIG_AUDIO);
FT800_Sound_SetConfig(&VTFT_FT800_CONFIG_SOUND);
FT800_Interrupt_SetConfig(&VTFT_FT800_CONFIG_INTERRUPT);
FT800_PWM_SetConfig(&VTFT_FT800_CONFIG_PWM);
FT800_GPIO_SetConfig(&VTFT_FT800_CONFIG_GPIO);
FT800_Touch_SetConfig(&VTFT_FT800_CONFIG_TOUCH);
FT800_Touch_Calibrate(_FT800_FONT_ROBOTO_SIZE_10, "Touch blinking point on the screen!");
// Init all dynamic objects
InitObjects();
// Draw start screen
DrawScreen(&Screen1);
}
Regards & Thanks,
Rama subbu . V
I am using STM32F407 and FT800 driver for (480 * 272) pixels tft .
The source code i have generated from the visual TFT tool.While initializing (InitVTFTStack()) it hold inside the routine
FT800_Touch_Calibrate . so what will be the problem
Back light control is working fine with this code.
The code
Code: Select all
void Init_MCU() {
// Place your code here
SPI1_Init_Advanced(_SPI_FPCLK_DIV8,
_SPI_MASTER | _SPI_8_BIT |
_SPI_CLK_IDLE_LOW | _SPI_FIRST_CLK_EDGE_TRANSITION |
_SPI_MSB_FIRST | _SPI_SS_DISABLE |
_SPI_SSM_ENABLE | _SPI_SSI_1,
&_GPIO_MODULE_SPI1_PA56_PB5);
//RCC_APB2ENRbits.SPI1EN = 1 ;
}
void InitVTFTStack() {
int iret = -1 ;
Init_MCU();
SPI_Set_Active(SPI1_Read, SPI1_Write);
// Init FT800 controller core and library stack
FT800_Init();
FT800_Core_ClockSource(_FT800_CLK_SOURCE_EXTERNAL);
FT800_Core_ClockPLL(_FT800_CLK_PLL_48MHz);
// Internal modules setup
FT800_Display_SetConfig(&VTFT_FT800_CONFIG_DISPLAY);
FT800_Audio_SetConfig(&VTFT_FT800_CONFIG_AUDIO);
FT800_Sound_SetConfig(&VTFT_FT800_CONFIG_SOUND);
FT800_Interrupt_SetConfig(&VTFT_FT800_CONFIG_INTERRUPT);
FT800_PWM_SetConfig(&VTFT_FT800_CONFIG_PWM);
FT800_GPIO_SetConfig(&VTFT_FT800_CONFIG_GPIO);
FT800_Touch_SetConfig(&VTFT_FT800_CONFIG_TOUCH);
FT800_Touch_Calibrate(_FT800_FONT_ROBOTO_SIZE_10, "Touch blinking point on the screen!");
// Init all dynamic objects
InitObjects();
// Draw start screen
DrawScreen(&Screen1);
}
Regards & Thanks,
Rama subbu . V