using https://github.com/tenbaht/VirtualWire
Supposedly compatible with stm8 but it gives me an error of VirtualWire.c: 16: 26: fatal error: util / crc16.h: No such file or directory I'm missing some include ???? Thank you
VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di
- martinayotte
- Posts: 1265
- Joined: Mon Apr 27, 2015 1:45 pm
Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di
Most probably that this could be fixed by editing this line by adding some STM32 flag such __STM32F1__:
https://github.com/tenbaht/VirtualWire/ ... re.cpp#L12
This way, it will take the version provided here :
https://github.com/tenbaht/VirtualWire/ ... il/crc16.h
https://github.com/tenbaht/VirtualWire/ ... re.cpp#L12
This way, it will take the version provided here :
https://github.com/tenbaht/VirtualWire/ ... il/crc16.h
Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di
not working ... puff

someone knows some bookstore or code to handle a 433mhz module???

someone knows some bookstore or code to handle a 433mhz module???
Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di
The library was not designed for STM8 but tenbaht is the same author of the STM8 core so it's better to ask to him. You can open an issue on github.
- martinayotte
- Posts: 1265
- Joined: Mon Apr 27, 2015 1:45 pm
Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di
The issue is simple, the header util/crc16.h is not included because of wrong "if defined".
Either fix the define according to platform, or copy the header from VWutil/crc16.h into a newly created util folder.
Either fix the define according to platform, or copy the header from VWutil/crc16.h into a newly created util folder.
Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di
you have a commission with "san google" ??? hahahahaha look, I just found a version of RCSwitch.c and I fought with her to use it together the ide ---
https://github.com/andrevcn/STM8S-RF-Control