For me only possible values are: F8/F9/FA/FB/FC/FD/FE/FF (this is probably not the problem because this only sets brown-out bits, just curious) It says in the make file on github (MYSbootloader): "ISP_EFUSE = 06" but I cant seem to set the E fuse like this. Where the bootloaders compiled with the standard spi pins, being: "#define SPI_PINS_CE9_CSN10" are there any other defines i should add to the I have some more questions for you: Added "#define MY_OTA_FIRMWARE_FEATURE" for both node and GW (even though i think its not nessecairy for the GW). I have the node programmed with mysensors sketch on RFchannel 5 and GW with mqtt client on RF-channel 5. It looks like the bootloader is working and detects the GW comming online, but for some reason it doesnt jump on to the programmemory. If i unpower the GW at this point the node onboard led stays on until i reset node. So as long as GW is not online the led stays on for long period then goes off for very short period (i think its looking for the gateway), once GW comes online the onboard led of the node stays on (node has seen gateway online). Now i used the 8MHz external Xtal bootloader for RFchannel 5 (GW is on channel 5) that i got from (thanks again) to flash onto my arduino pro mini using avrdudess (less hassle with editing boards.txt file of arduinoIDE), but still same result. rwxrwxr-x+ 1 Micke None 2480 Jan 24 21:59 MYSBootloader.elf MYSBootloader.elf: ELF 32-bit LSB executable, Atmel AVR 8-bit, version 1 (SYSV), statically linked, stripped Micke Quasi ~/workspace/MySensorsBootloaderRF24 development "/cygdrive/c/Program Files (x86)/Arduino/hardware/tools/avr/bin/avr-size" MYSBootloader.elf eeprom MYSBootloader.elf MYSBootloader.hex "/cygdrive/c/Program Files (x86)/Arduino/hardware/tools/avr/bin/avr-objcopy" -O ihex -R. "/cygdrive/c/Program Files (x86)/Arduino/hardware/tools/avr/bin/avr-gcc" -nostartfiles -Wl,-s -Wl,-static -Wl,-Map=".map" -Wl,-start-group -Wl,-end-group -Wl,-gc-sections -mrelax -Wl,-section-start=.text=0x7800 -mmcu=atmega328p -o MYSBootloader.elf MYSBootloader.o -lm MySensorsBootloader.h:59:1: warning: 'inline' is not at beginning of declaration HW.h:51:4: warning: #warning BAUD_RATE error greater than 2% HW.h:51:4: warning: #warning is a GCC extension "/cygdrive/c/Program Files (x86)/Arduino/hardware/tools/avr/bin/avr-gcc" -I"/cygdrive/c/Program Files (x86)/Arduino/hardware/tools/avr/avr/include/avr" -funsigned-char -funsigned-bitfields -DF_CPU=16000000L -DBAUD_RATE=115200 -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -Wall -Wextra -Wundef -pedantic -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o" MYSBootloader.c -o MYSBootloader.o Rm: cannot remove '*.hex': No such file or directory Rm: cannot remove '*.elf': No such file or directory Rm: cannot remove '*.o': No such file or directory This was the result I got: Micke Quasi ~/workspace/MySensorsBootloaderRF24 development I did a quick test, and it seems running make all is sufficient, provided that all tools are in the "right" place. I am curious myself and would like to try, and I've seen some questions in the forum earlier so it seems more people are interested. If you get enough help from people to manage building the bootloader, it would be fantastic if you could take some notes and share so we can publish a first version of a guide.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |