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 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
NODs stop responding, but ping works.
Troubleshooting • 8 Mar 2025, 19:47 • Marcin 8 Mar 2025, 19:47 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 21 days ago • bocalexandru 20 days ago -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 13 days ago -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20