It is currently 22 Nov 2017 16:34

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 27 May 2017 14:10 
Offline

Joined: 19 Nov 2016 06:26
Posts: 40
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
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:)


Top
 Profile  
 
PostPosted: 29 May 2017 10:41 
Offline
mikroElektronika team
User avatar

Joined: 05 Dec 2016 14:59
Posts: 501
Hi,

what hardware are you using? Can you send me whole project folder in .zip archive so I can try to reproduce the issue?

Also when opening new topics please look on what subforum are you currently, you've opened topic for ARM on AVR sbf.

Regards,

Danilo


Top
 Profile  
 
PostPosted: 29 May 2017 12:55 
Offline

Joined: 19 Nov 2016 06:26
Posts: 40
Hi ,

I have a custom board for TFT driver to connect with (ST - > NUCLEO_F412ZG) kit (In the kit i have replaced that controller with STM32F407ZG)

The project ZIP file i have attached here ...

Thanks & Regards,
Ramasubbu.V :)


Attachments:
TFT_Sample.rar [413.84 KiB]
Downloaded 38 times

_________________
Thanks & Regards,
Ramasubbu.V:)
Top
 Profile  
 
PostPosted: 30 May 2017 15:00 
Offline
mikroElektronika team
User avatar

Joined: 05 Dec 2016 14:59
Posts: 501
Hi,

in your driver.c file you neeed to change this declaration
Quote:
const TFT800Touch VTFT_FT800_CONFIG_TOUCH =
{
3, // TouchMode = touch screen mode (2 bits): 0 - off, 1 - oneshot, 2 - frame, 3 - continuous <- here you have 1
1, // TouchADCMode = touch screen adc mode (1 bit): 0 - singleended, 1 - differential <- here you have 0
3, // TouchSettle = touch screen settle time - 4 bits
7, // TouchOversample = touch screen oversample - 4 bits
2000, // TouchRZThreshold = Touchscreen resistance threshold
};


so that's why the code is stuck at FT800_Touch_Calibrate function

Regards,

Danilo


Top
 Profile  
 
PostPosted: 31 May 2017 10:49 
Offline

Joined: 19 Nov 2016 06:26
Posts: 40
Hi,

Still am facing that issue.
Have you test my code with any board of yours ?
Is there any possibility in the hardware side ?



Regards & Thanks,
Ramasubbu . V :D

_________________
Thanks & Regards,
Ramasubbu.V:)


Top
 Profile  
 
PostPosted: 31 May 2017 15:45 
Offline
mikroElektronika team
User avatar

Joined: 05 Dec 2016 14:59
Posts: 501
Hi,

yes I've tested the code, although I've used different pins for SPI.

What do you get on the screen? Does the dot for calibration appears?

Regards,

Danilo


Top
 Profile  
 
PostPosted: 16 Jun 2017 14:20 
Offline

Joined: 19 Nov 2016 06:26
Posts: 40
Hi,

The white screen is coming or nothing it's there

How to check the hardware

I have adjust the back light intensity i can able to see the variation in the TFT contrast.so it means SPI interface with controller is working
How to check the other side of FT800 interface (with TFT)


Regards & Thanks ,
Ramasubbu.V

_________________
Thanks & Regards,
Ramasubbu.V:)


Top
 Profile  
 
PostPosted: 19 Jun 2017 12:13 
Offline
mikroElektronika team
User avatar

Joined: 05 Dec 2016 14:59
Posts: 501
Hi,

I've tested your code on EasyMxPro v7 board, and it's working.

Therefore I can only assume that your problem lies somewhere in the hardware connection, you should double check the SPI lines perhaps there lies the issue.

Regards,

Danilo


Top
 Profile  
 
PostPosted: 20 Jun 2017 08:57 
Offline

Joined: 19 Nov 2016 06:26
Posts: 40
Hi,

Thanks for your responses,

Problem was solved.The issue with the hardware



Thanks & Regards,
Ramasubbu .V :)

_________________
Thanks & Regards,
Ramasubbu.V:)


Top
 Profile  
 
PostPosted: 20 Jun 2017 11:47 
Offline
mikroElektronika team
User avatar

Joined: 05 Dec 2016 14:59
Posts: 501
Hi,

I'm glad the problem was solved. :)

Regards,

Danilo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: