Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20606

BASCOM-AVR : Find out if bootloader is present in flash : REPLY

$
0
0
I have just installed my bootloader into a 1284P. Here is a snippet of the code:[code:1:b10d6004fb] $regfile = "m1284pdef.dat" Const Loaderchip = 1284 $loader = &HF000 ' 4096 words, starts at HF000 Const Maxwordbit = 7 ' Z7 is maximum bit ' Const Loadsize = &HF000 * 2 ' highest Number of bytes to load $crystal = 9830400 $hwstack = 128 $swstack = 128 $framesize = 128 Const Filenamehex = "Boot.hex" Const Filenamehexdone = "BootDone.hex"[/code:1:b10d6004fb] But when i pull the EEPROM code from the chip into a file and look at it with PSPAD, the program occupies 00000 to 11AF0 the there is a section of FFFF FFFF and the bootloader starts at 1E000 and finishes at 1FF60. I don't understand this at all and I dont understand the 5 digit addressing. I thought the BL should start at F000 ??????? Here is what pspad shows for the start and end of the bootloader section.[quote:b10d6004fb] 1DFF0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 1E000 8FEF 8DBF C0E8 E8E9 FFFF FFFF FFFF . . . 1FF60 0000 3032 0000 FFFF FFFF FFFF FFFF FFFF [/quote:b10d6004fb]

Viewing all articles
Browse latest Browse all 20606

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>