mysbootloader not working with nano? [solved]
-
Hello,
did anybody successfully get mysbootloader for fota get to work on a nano? i burned the bootloader via an uno (arduino as isp)... everything seemed to work fine...
but nothing changes actually - the log on myscontroller says nothing about a new bootloader whenever i try to click the node > settings > Board with mysbootloader i see the functions. when i click anything like "reassign ID" it just reboots with the old ID - when i try to load a new sketch via "assign firmware" it is the same. it just reboots and nothing changed.
i tried different gateways (rpi and nodemcu), i tried different mysbootloaders with different channels from the github repository, ... it seems to be the same everytime...
did anybody run into the same issues or has a hint - i tried now for 2 days without progress...
-
ok... i once again report back to my own entry since i became a little smarter.
i found out 2 things:
- in the boards.txt i have to set the right fuse-settings. for the 16mhz nano i used:
MYSBL.menu.frequency.MYSBL16.bootloader.low_fuses=0xFF MYSBL.menu.frequency.MYSBL16.bootloader.high_fuses=0xDA MYSBL.menu.frequency.MYSBL16.bootloader.extended_fuses=0xFD- i used a screw-terminal board where the ce and cs pins are switched. in the usual sketch i define
// Set custom pins for Nano-Radio-Board #define MY_RF24_CE_PIN 10 #define MY_RF24_CS_PIN 9i am sure the mysbootloader needs to know that too... so am i right that i have to compile a new bootloader where i have to put:
#define RF24_CE_PIN 10
#define RF24_CS_PIN 9
?i am really having a hard time compiling one since i have zero experience with that and eclipse doesn't seem of much help here. so if anybody can confirm this before i go through this fruitless struggle again i would be very glad...
-
ok... i once again report back to my own entry since i became a little smarter.
i found out 2 things:
- in the boards.txt i have to set the right fuse-settings. for the 16mhz nano i used:
MYSBL.menu.frequency.MYSBL16.bootloader.low_fuses=0xFF MYSBL.menu.frequency.MYSBL16.bootloader.high_fuses=0xDA MYSBL.menu.frequency.MYSBL16.bootloader.extended_fuses=0xFD- i used a screw-terminal board where the ce and cs pins are switched. in the usual sketch i define
// Set custom pins for Nano-Radio-Board #define MY_RF24_CE_PIN 10 #define MY_RF24_CS_PIN 9i am sure the mysbootloader needs to know that too... so am i right that i have to compile a new bootloader where i have to put:
#define RF24_CE_PIN 10
#define RF24_CS_PIN 9
?i am really having a hard time compiling one since i have zero experience with that and eclipse doesn't seem of much help here. so if anybody can confirm this before i go through this fruitless struggle again i would be very glad...
-
ok... i once again report back to my own entry since i became a little smarter.
i found out 2 things:
- in the boards.txt i have to set the right fuse-settings. for the 16mhz nano i used:
MYSBL.menu.frequency.MYSBL16.bootloader.low_fuses=0xFF MYSBL.menu.frequency.MYSBL16.bootloader.high_fuses=0xDA MYSBL.menu.frequency.MYSBL16.bootloader.extended_fuses=0xFD- i used a screw-terminal board where the ce and cs pins are switched. in the usual sketch i define
// Set custom pins for Nano-Radio-Board #define MY_RF24_CE_PIN 10 #define MY_RF24_CS_PIN 9i am sure the mysbootloader needs to know that too... so am i right that i have to compile a new bootloader where i have to put:
#define RF24_CE_PIN 10
#define RF24_CS_PIN 9
?i am really having a hard time compiling one since i have zero experience with that and eclipse doesn't seem of much help here. so if anybody can confirm this before i go through this fruitless struggle again i would be very glad...
-
ok... some success but not really. The bootloader does not seem to work using my custom-boards where the ce and cs pin are switched? where does one have to put something like:
#define RF24_CE_PIN 10
#define RF24_CS_PIN 9
?should it be in the mysbootloader.c? because this did not work... or somewhere else?
the line "#define SPI_PINS_CE9_CSN10" in the mysbootloader.c also worries me? but just switching the numbers does not work either and throws an error...
-
ok... some success but not really. The bootloader does not seem to work using my custom-boards where the ce and cs pin are switched? where does one have to put something like:
#define RF24_CE_PIN 10
#define RF24_CS_PIN 9
?should it be in the mysbootloader.c? because this did not work... or somewhere else?
the line "#define SPI_PINS_CE9_CSN10" in the mysbootloader.c also worries me? but just switching the numbers does not work either and throws an error...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login