Compile touchpad issues usnign STM32F411

General discussion on Visual TFT Software.
Post Reply
Author
Message
SeanH
Posts: 37
Joined: 10 Oct 2014 20:47

Compile touchpad issues usnign STM32F411

#1 Post by SeanH » 30 Jul 2016 17:12

Using Visual TFT to create code for a STM32F411 processor and TFT using ILI9341_8bit driver.

When I go to compile in MikroBasic for ARM I get the following errors.

68 438 Call signature does not match the function definition signature 'GPIO_Config' __Lib_TouchPanel_TFT.mpas


I have configured it for the following ports

Code: Select all

dim TFT_DataPort as word  at GPIOB_ODR 'Uses Port B for tft data
    TFT_RST as sbit  at GPIOB_ODR.B8
    TFT_RS as sbit  at GPIOB_ODR.B12
    TFT_CS as sbit  at GPIOB_ODR.B15
    TFT_RD as sbit  at GPIOB_ODR.B10
    TFT_WR as sbit  at GPIOB_ODR.B11
    TFT_BLED as sbit  at GPIOB_ODR.B9

' Touch Panel module connections
dim DriveX_Left as sbit at GPIOA_ODR.B0  'ADC1_IN0
dim DriveX_Right as sbit at GPIOA_ODR.B2 '
dim DriveY_Up as sbit at GPIOA_ODR.B3
dim DriveY_Down as sbit at GPIOA_ODR.B1 'ADC1_IN1
If I compile for a STM32F107VC processor and use Port E for Data port and Port B for the Touch, then all compiles fine, so code seems okay, just cannot get to compile on a different processor.

Any help appreciated.

Cheers

Sean.

User avatar
biljana.nedeljkovic
mikroElektronika team
Posts: 1043
Joined: 30 Jun 2015 15:15

Re: Compile touchpad issues usnign STM32F411

#2 Post by biljana.nedeljkovic » 01 Aug 2016 11:41

Hello,

It is possible you are using some earlier version of mikroBasic and newer version of Visual TFT. Please download the latest version 4.9.0 from our website:
http://www.mikroe.com/mikrobasic/arm/

I have tested some projects from STM M4 and compiled them successfully.

If you have more issues afterwards, let me know.

Kind regards,
Biljana

SeanH
Posts: 37
Joined: 10 Oct 2014 20:47

Re: Compile touchpad issues usnign STM32F411

#3 Post by SeanH » 01 Aug 2016 12:04

Hi Biljana

Thanks for the quick reply.

I purchased Visual TFT last week, so is the latest version.

Also I had version 4.9 of MiKroBasic installed, but removed this morning and re-installed.

Sorry to say I get the same errors and have attached screenshot.

Regards

Sean.
Attachments
touchpad-error.jpg
touchpad-error.jpg (124.36 KiB) Viewed 5082 times

SeanH
Posts: 37
Joined: 10 Oct 2014 20:47

Re: Compile touchpad issues usnign STM32F411

#4 Post by SeanH » 01 Aug 2016 12:56

I have setup the same settings on the Welcome World example that comes with Visual TFT

Same errors still and have attached project with STM32F411 GPIO settings I used in first post.

Does it compile okay your end ?

Regards

Sean
Attachments
Hello_world_STM32F411.zip
(395.55 KiB) Downloaded 136 times

User avatar
biljana.nedeljkovic
mikroElektronika team
Posts: 1043
Joined: 30 Jun 2015 15:15

Re: Compile touchpad issues usnign STM32F411

#5 Post by biljana.nedeljkovic » 03 Aug 2016 09:32

Hello Sean,

We have diagnosed the issue. Please download the attachment and replace the existing mcl files from the Uses folder with these.
I suggest to back up the existing files first just in case.

I have tested your project with them and I have been able to compile it successfully.

This has been reported to our Software developers, and we will make sure to fix it in the next release of the ARM compiler.
Thank you for submitting the issue and that way helped us improve our software.

If you have more problems, please let me know, I would gladly help.

Best regards,
Biljana
Attachments
GPIO_signature_fix_STM32F4x1.rar
(10.6 KiB) Downloaded 123 times

SeanH
Posts: 37
Joined: 10 Oct 2014 20:47

Re: Compile touchpad issues usnign STM32F411

#6 Post by SeanH » 03 Aug 2016 10:04

Hi Biljana

Just checked and all compiles now with no errors :)

Many thanks for this quick fix.

Regards

Sean

Post Reply

Return to “Visual TFT General”