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

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

$
0
0
Arera - you are correct in the way it works. Clearing the indicator byte as below will solve the problem you raise. [code:1:3fc26890a6] dim rbyte as byte readeeprom rbyte , 100 'bootloader sets this loc to 125 so that i know a bootloader is there. if rbyte <> 125 then rbyte = peek(0) 'no bootloader programmed. read R0 directly else readeeprom rbyte , 80 'bootloader writes R0 to this address end if rbyte = 00 writeeeprom rbyte,100 'clear the loc [/code:1:3fc26890a6]

Viewing all articles
Browse latest Browse all 21194

Trending Articles



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