Bienvenido a los foros de FT81x Manía. Te invitamos a regístrate totalmente gratis. Disfruta de tu experiencia con un grandes amigos y Staff.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Thread Contributor: RndMnkIIIRepositorio libreria GD2UB e instrucciones instalación

#1
2
Better response on post Repositorio libreria GD2UB e instrucciones instalaciónA partir de ahora este es el repositorio oficial en github para descargar
la libreria GD2UB:

https://github.com/FT81xMania/GD2UB

Instalación:

1. Bajar archivo zip del repositorio pulsando en el botón que se muestra en la imagen:
?mage

2. Descomprimir el archivo bajado GD2UB-master.zip en la carpeta donde se encuentra la carpetas libs del core stm32generic y renombrar la carpeta resultante de GD2UB-master a GD2UB:

?mage

3. Cerrar y reiniciar el IDE Arduino si estuviese abierto y  abrir un ejemplo navegando por el menú:
   Archivo > Ejemplos > Examples for BLACK F407VE/... Boards > GD2UB > 1. Basics > helloworld
   ?mage
Para consultar como instalar el  core STM32GENERIC consultar este artículo del foro: https://ft81xmania.com/comunidad/Tema-In...IC-Windows
Saludos!
<<<RndMnkIII>>>
rndmnkiii@gmail.com
Reply
#2
1
18/Septiembre/2017

- Correcciones en la función printNfloat, para poder imprimir el punto decimal en proporción al tamaño de fuente empleada
- Corrección del llamado de librería GD2UB.h en el ejemplo F429_Blink_led_MILLIS.ino
Reply
#3
1
Hello,
I followed the instructions for installing STM32Generic boards installation and GD2UB library.
When I tried the example of HelloSTM32, I am getting the following errors:


In file included from C:\Rauf\development\Arduino\Arduino1.8.2\libraries\AT24Cxx\AT24Cxx.cpp:8:0:

C:\Users\AbdulRauf\Documents\Arduino\hardware\STM32GENERIC\STM32\libraries\Wire\src/Wire.h: In member function 'uint8_t AT24Cxx::read(uint16_t)':

C:\Users\AbdulRauf\Documents\Arduino\hardware\STM32GENERIC\STM32\libraries\Wire\src/Wire.h:77:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)

uint8_t requestFrom(int, int);

^

C:\Users\AbdulRauf\Documents\Arduino\hardware\STM32GENERIC\STM32\libraries\Wire\src/Wire.h:74:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)

uint8_t requestFrom(uint8_t, uint8_t);

^

C:\Users\AbdulRauf\Documents\Arduino\hardware\STM32GENERIC\STM32\libraries\Wire\src/Wire.h: In member function 'void AT24Cxx::update(uint16_t, uint8_t)':

C:\Users\AbdulRauf\Documents\Arduino\hardware\STM32GENERIC\STM32\libraries\Wire\src/Wire.h:77:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)

uint8_t requestFrom(int, int);

^

C:\Users\AbdulRauf\Documents\Arduino\hardware\STM32GENERIC\STM32\libraries\Wire\src/Wire.h:74:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)

uint8_t requestFrom(uint8_t, uint8_t);

^

c:/users/abdulrauf/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

c:/users/abdulrauf/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

c:/users/abdulrauf/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

Sketch uses 28152 bytes (21%) of program storage space. Maximum is 131072 bytes.
Global variables use 4308 bytes (21%) of dynamic memory, leaving 16172 bytes for local variables. Maximum is 20480 bytes.



I would appreciate your help in sorting this out.

Thanks,

Rauf
Reply
#4
0
Welcome Rauf.

Those lines only are warnings, if you can reach the last two lines, you can upload the sketch into your board through STLink V2 or serial interface.

Congratulations, your setup is correct, those warnings are normal.

Please tell us about of your hardware: screen, board, upload method for your STM-board.
Reply
#5
0
Hi Thank you for your quick reply.

I still could not get the LCD work. I have doubt about the connections between STM32 bluepill and the hotcpu's FT800CB 4.3" LCD. I am using that LCD with Arduino nano successfully. This is the first time I am trying this LCD with stm32.

The current pin configuration I am using is as follows:

FT800CB STM32bluepill
MISO PA6
SCK PA5
MOSI PA7
CS PA4
PD not connected
INT not connected

Can you guide me to some material where I can find the connections and function() informations.

I really appreciate what you people are doing. Thank you so much.

Rauf
Reply
#6
0
You are in the right place, be patient. Please could you up some pictures of your hardware?

Tell us which STM32buepill board and specific model you have. A link could be useful to help you.

Which screen?, Do you have a link?

First approach: use a short wires between 8 to 10 mm for each line SPI between the MCU and the screen
Reply
#7
0
Oh yah!, my mistake. First that all:

Steps to prepare the library for FT80X screens:

1 Open GD2UB.h

2 Locate this line:

#define TFT_FT81X_ENABLE   1  //             FT81x

3 Change the value to 0

#define TFT_FT81X_ENABLE   0  //             FT81x

4 Save the file

5 Restart the IDE and up again the sketch.

?mage

Note: 
The library GD2UB can handle FT80X and FT81X

0 it is for FT80X screens
1 it is for FT81X screens
Reply
#8
0
I have exact the same as shown here.

https://cdn.hackaday.io/images/1925191437063394286.png

I have 20cm wires. That screen is working perfect with Arduino nano with the same length of wires.

I forgot to tell you that I also have another Haoyu 5" LCD with Captouch. That is FT811CB. with 800x600 res. I never used that screen.

Would you prefer me to start with my current LCD which is with FT800 and Restouch 4.3" 480x272 or shall I start with FT811 with Captouch 5" 800x600?

I have no idea where to connect int pin and PD pin on STM32. In fact if I know the port number on STM32F103, I could figure it out.

Thanks,

Rauf
Reply
#9
0
Double check on your wires

Try first with the FT800 screen.
Reply
#10
0
(20-09-2017, 19:55 20)raufjay Wrote: FT800CB   STM32bluepill            
MISO           PA6              
SCK             PA5              
MOSI           PA7              
CS               PA4              
PD              not connected      
INT             not connected

Can you guide me to some material where I can find the connections and function() informations.

I really appreciate what you people are doing. Thank you so much.

Rauf

Hello  @ raufjay, please connect PD pin screen you  FT8xx on PB1 MCU. Is very important ! this pin is Power On Reset (POR). The library GD2UB on file GD2UB.h (line 13 defined)

Pin INT without connecting, not necessary. You try and be possible solution
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)