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 -
NODs stop responding, but ping works.
Troubleshooting • 25 days ago • Marcin 25 days ago -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 3 Mar 2025, 01:00 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 5 days ago -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58