BASCOM 2.0.7.5.003
AVR-DOS license purchased.
Hi everybody,
after flashing my program to the ATMega2561, the controller still starts with the bootloader, not running the program.
Since a bunch of hours, i worked out all the hints, related to using the bootloader DOS_BOOT2.bas.
It doesn' matter where the BOOTRST Fuse is yes or no, always the bootloader starts.
The bootload procedure with my boot.hex seems to be running successful, with the feedback BDCFRPM
while power on the controller, always M is running in the terminal program.
I tried all suggestions found here in the threats related, but now i am stuck. :( Any ideas :idea: are more than welcome. :D
best regards
Ingolf
here the facts:
i modified the bootloader to work with ATMega 2561 on 14,745600MHz ( only modified lines here:)
$regfile = "m2561def.dat"
const loaderchip = 2561
#if loaderchip = 2561
$loader = &HF000 ' 4096 words, matching the data of ATMega2561 datasheet about bootloader mem config.
Const Maxwordbit = 7
Const oadsize = &HF000 *2
#endif
disable interrupts
$baud=115200
include "config_compact_flash_M128.bas"
include "config_AVR-DOS_boot.bas
do_spm:
# if romsize > 65536
The ATMega fuses are set to
Boot Flash Size = 4096 words start adress = $1F000
BOOTRST = yes
↧