Go Down

Topic: STM32F103C8T6 Board problem with Arduino Libraries (Read 1 time) previous topic - next topic

salaryunis

I have bought an STM32F103C8T6 board, because i heard that it is fasted and works with low power consumption, but i'm having troubles because it seems that the libraries i'm using is not compatible with this types of boards.

My project is to create a tracker using GPS and GPRS modules, and my code includes the libraries (NMEAGPS.h) & (stdlib.h) & (NeoSWSerial.h) & (NeoGPS.h).

(NMEAGPS.h) & (stdlib.h) seems to works fine and not giving any errors, but the (NeoSWSerial.h) & (NeoGPS.h) are giving the error that they are not compatible with the board or the processor architecture as shown below:

WARNING: library NeoGPS claims to run on (avr, samd, sam, esp8266, arc32, esp32) architecture(s) and may be incompatible with your current board which runs on (STM32F1) architecture(s).
WARNING: library NeoSWSerial claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (STM32F1) architecture(s).


Is there a way to make these libraries compatible with the STM32 board ? or if there is any suitable replacement for such a project ? Thank you in advance!

Juraj

you don't need software serial on STM32. it has more hardware serials configured. the NeoGPS should work. ask @-dev

DrAzzy

Library support on alternative architectures is much worse than on AVR. It's something you have to deal with if you use these less popular architectures (within arduino context) with arduino IDE. stm32duino has a forum - you might have more success there, as those people have been dealing with this and may be able to point you to alternative libraries.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

pert

Those warnings may or may not be correct. They simply mean that the architecture value of the board you're compiling for doesn't match the architectures listed in the library's library.properties metadata file. That metadata information may be incorrect or incomplete.

Here's an example:
https://github.com/JChristensen/Timezone/blob/master/library.properties#L9
The Timezone library is not AVR-specific. It will work fine on other architectures. The reason only avr is is on the list is that the author exclusively uses AVR microcontrollers and doesn't feel like providing support for other boards.

Go Up