Issue with FT800 visual TFT generated code

Post your requests and ideas on the future development of mikroC PRO for ARM.
Post Reply
Author
Message
RAMASUBBU
Posts: 58
Joined: 19 Nov 2016 06:26

Issue with FT800 visual TFT generated code

#1 Post by RAMASUBBU » 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
Thanks & Regards,
Ramasubbu.V:)

lejeff
Posts: 218
Joined: 04 Dec 2011 16:10
Location: France

Re: Issue with FT800 visual TFT generated code

#2 Post by lejeff » 31 May 2017 06:05

It seems that a line is missing in your code (Internal modules setup)

is :
....
FT800_Touch_SetConfig(&VTFT_FT800_CONFIG_TOUCH);

FT800_Touch_Calibrate(_FT800_FONT_ROBOTO_SIZE_10, "Touch blinking point on the screen!");
....

should be :
....
FT800_Touch_SetConfig(&VTFT_FT800_CONFIG_TOUCH);

FT800_Touch_Mode(_FT800_TOUCH_SMPL_MODE_CONTINUOUS, _FT800_TOUCH_OP_MODE_COMPATIBILITY);
(or something like that depending of your settings in VTFT)

FT800_Touch_Calibrate(_FT800_FONT_ROBOTO_SIZE_10, "Touch blinking point on the screen!");
....

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: Issue with FT800 visual TFT generated code

#3 Post by dusan.poluga » 01 Jun 2017 16:56

Hi,

Can you zip and attach your Visual TFT project ?
So we can try to reproduce this error.

Best Regards,
Dusan Poluga.

Post Reply

Return to “mikroC PRO for ARM Wish List”