View previous topic :: View next topic |
Author |
Message |
Alex20q90
Joined: 24 Sep 2007 Posts: 89
|
Posted: Sat Mar 10, 2018 12:02 pm Post subject: Starting Bootloader from Application |
|
|
Hello,
i have a new problem! I use a ATMega8u2 mit LUFA Bootloader. In Bascom i can flash my Application with Bascom over the "FLIP"-Programmer directly via USB. It works.
If i would flash again, i need to pull down the /RESET-Pin to low to start the Bootloader.
A Try to call the bootloader-Adress from my App wont work.
Sample code:
Code: | $regfile = "M8u2def.dat"
$crystal = 8000000
Switch Alias Pinc.2 ' Tasterabfrage an diesem Port
waitms 200
If Switch = 1 Then ' Call Bootloader if switch is pressing by power-on
goto &h1000 ' goto &h800 also wont work **
End If
do
' Here my Mainprogramm
loop |
I cant call the Bootloader! Also i tried to force a uC-Reset with WatchDog.
**In the BASCOM-Prog is the Bootloader at $800 (Fusebit High KL 00:Bootsize 2048 words at $800) but the Bootloader starts at &H1000.
FBH: 1: Reset vector is $0000
FBExt: 0:Hardwareboot enabled.
I Also tried Reset vector is bootloader
Hardwareboot disabled
(BASCOM-AVR version : 2.0.8.1 ) |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Sat Mar 10, 2018 1:31 pm Post subject: Re: Starting Bootloader from Application |
|
|
Alex20q90 wrote: | i have a new problem! | That was to expect.
I thought about helping you through, but considering your previous thread, your low discussion ability and low esteem about other discussion partners as devote helpsters, I do not think I would enjoy it much.
Also I regularly find it arrogant if persons formerly seeking help just leave after their question was answered, while giving a damn about others getting stuck by trying to find out the final result of a thread. You seem to be such a self-centered candidate.
Ok, ranted that, now just a hint:
Quote: | LUFA Bootloader
...
i tried to force a uC-Reset with WatchDog. |
That's the suggested process by the LUFA library for AVR.
It surly works, if not for you then because you did it wrong. |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
Posted: Sat Mar 10, 2018 3:59 pm Post subject: |
|
|
Hi,
Goto &Hxxx should work,
However &H1000 is not a valid Bootloader address, what is valid depends on how big your bootloader loader is, have a look at the datasheet page 239. _________________ www.evertdekker.com Bascom code vault |
|
Back to top |
|
|
Alex20q90
Joined: 24 Sep 2007 Posts: 89
|
|
Back to top |
|
|
|