compiling issue with MYSBootloader.
-
@tekka need your help here...
not sure i'm missing something. getting following error while compiling MYSBootloader. OTABootloader working fine for me..
Any idea what is the difference between two bootloaders.
make: [clean] Error 1 (ignored)
"avr-gcc" -x c -mno-interrupts -funsigned-char -funsigned-bitfields -DF_CPU=16000000L-Os -fno-inline-small-functions -fno-split-wide-types -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -Wall -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o" -I../libraries/MySensors MYSBootloader.c -o MYSBootloader.o
In file included from MYSBootloader.c:35:0:
MYSBootloader.h:11:18: fatal error: boot.h: No such file or directory
#include "boot.h"
^
compilation terminated.
make: *** [MYSBootloader.o] Error 1
-
-
-
@Dheeraj try changing in MYSBootloader.h
#include "boot.h"
to
#include <avr/boot.h>
that should eliminate the reported error.
-
By any chance, can we change the CE and CSN pins from 9-10 to 7-8 in the MYSBootloader safely and easily? I tried running through the code but stopped short at MYSBootloaderHW.h file where
#define SPI_CSN 2 // Arduino Pin 10 <-> Bit 2 of port B
#define SPI_CE 1 // Arduino Pin 9 <-> Bit 1 of port B
have been defined and since pins 7-8 change would mean the port change the operations may differ.
I am using the 9-10 pins elsewhere for their PWM.
-
@vikasjee Moving CSN and CE to PORTA should work - do not forget to set DDRA accordingly.
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Arduino nano and Uno in same My sensors network with NRF24L01+
Troubleshooting • 26 Jul 2024, 10:30 • DIY89 27 Aug 2024, 09:59 -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 9 days ago • bocalexandru 8 days ago -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47