VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di

Arduino on the STM8 (8 bit processor)
Post Reply
icelon
Posts: 14
Joined: Fri Apr 08, 2016 2:31 pm

VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di

Post by icelon » Mon Mar 19, 2018 2:15 pm

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

User avatar
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

Post by martinayotte » Mon Mar 19, 2018 6:44 pm

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

icelon
Posts: 14
Joined: Fri Apr 08, 2016 2:31 pm

Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di

Post by icelon » Mon Mar 19, 2018 8:54 pm

not working ... puff

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

User avatar
zoomx
Posts: 835
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di

Post by zoomx » Thu Mar 22, 2018 1:40 pm

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.

zmemw16
Posts: 1808
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di

Post by zmemw16 » Thu Mar 22, 2018 2:02 pm

icelon wrote:
Mon Mar 19, 2018 8:54 pm
not working ... puff

:(
someone knows some bookstore or code to handle a 433mhz module???
google in conjunction with instructables and github

it's not what you know, it's knowing how to find it.

stephen

User avatar
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

Post by martinayotte » Fri Mar 23, 2018 5:51 pm

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.

icelon
Posts: 14
Joined: Fri Apr 08, 2016 2:31 pm

Re: VirtualWire/VirtualWire.c:16:26: fatal error: util/crc16.h: No such file or di

Post by icelon » Sun Mar 25, 2018 11:21 am

zmemw16 wrote:
Thu Mar 22, 2018 2:02 pm
icelon wrote:
Mon Mar 19, 2018 8:54 pm
not working ... puff

:(
someone knows some bookstore or code to handle a 433mhz module???
google in conjunction with instructables and github

it's not what you know, it's knowing how to find it.

stephen
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

Post Reply