I'm trying to compile the Adafruit_TFTLCD_8bit_STM32 library (from stevstrong) but I'm not able to. I have tried many times in many ways.
The procedure I follow is this:
- I delete any trace of Arduino from my system.
- I install Arduino ide 1.8.13 latest version for Windows from its website.
- I install Arduino_STM32. I download zip and copy hardware.
https://github.com/stevstrong/Arduino_STM32
- I install Arduino SAM boards (Cortex-M3) and Arduino SAMD boards (Cortex-M0 +). From card manager.
- I install Adafruit_TFTLCD_8bit_STM32. I download zip and copy library.
https://github.com/stevstrong/Adafruit_ ... 8bit_STM32
- I install Adafruit_GFX. I download zip and copy library.
https://github.com/adafruit/Adafruit-GFX-Library
- I install Adafruit_BusIO. I download zip and copy library.
https://github.com/adafruit/Adafruit_BusIO
I think it is well done and I am not missing anything. As much as I have read, I do not find that there is a missing library.
The goal of all this is to compile https://github.com/kennpie/Open-DSO-150 which is an open firmware for DSO-150 https://jyetech.com/dso-150-shell-oscilloscope/
DSO-150 is a cheap oscilloscope kit, which includes housing, ILI9341 display and STM32F103C8. I have bought it with the idea of using this set for other projects. I find it comfortable that it has a box, keyboard, folder, screen, etc.
I want to start working on open firmware. If I can show an example on the screen and have I / O pins configured I will have already gained a lot.
Although I have done many Arduino ATMEGA328 and ATMEGA2560 projects, I am not familiar with the STM32 family. I have only tried using STLINK to read and write as a test, and loaded a Blink example on a BluePill.
Code: Select all
C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp: In member function 'void Adafruit_SPIDevice::transfer(uint8_t*, size_t)':
C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:119:31: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, size_t&)'
_spi->transfer(buffer, len);
^
C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:119:31: note: candidate is:
In file included from C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:1:0,
from C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:1:
C:\Users\Airam\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src/SPI.h:285:11: note: uint8 SPIClass::transfer(uint8) const
uint8 transfer(uint8 data) const;
^
C:\Users\Airam\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src/SPI.h:285:11: note: candidate expects 1 argument, 2 provided
Se encontraron varias bibliotecas para "Wire.h"
Usado: C:\Users\Airam\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire
No usado: C:\Users\Airam\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\WireSlave
exit status 1
Error compilando para la tarjeta Generic STM32F103C series.
Code: Select all
C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp: In member function 'void Adafruit_SPIDevice::transfer(uint8_t*, size_t)':
C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:119:31: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, size_t&)'
_spi->transfer(buffer, len);
^
C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:119:31: note: candidate is:
In file included from C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:1:0,
from C:\Users\Airam\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:1:
C:\Users\Airam\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src/SPI.h:285:11: note: uint8 SPIClass::transfer(uint8) const
uint8 transfer(uint8 data) const;
^
C:\Users\Airam\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src/SPI.h:285:11: note: candidate expects 1 argument, 2 provided
exit status 1
Error compilando para la tarjeta Generic STM32F103C series.
PS: I know there is another open firmware
https://github.com/michar71/Open-DSO-150
It seems more reliable to me. But it is written for TrueAtollic, I have only used Arduino ide, and I have no idea how to use it ...
I hope you can help me. I will be very grateful to you and please do not hesitate to ask any questions you may have.
Thank you very much. Regards.