View previous topic :: View next topic |
Author |
Message |
dj_cyborg
Joined: 25 Nov 2012 Posts: 7
|
Posted: Wed Aug 19, 2020 12:45 pm Post subject: Bootloader with BASCOM 2.0.8.3 |
|
|
Hello,
does the MSC-Bootloader Sample works with the New Bascom Version.
Has anyone ever tested this?
I get some Errors while compile. (HWstack, SWStack, $asm, $end Asm)
I would use this sample for the Atmega328P.
sry for my bad english...
THX
(BASCOM-AVR version : 2.0.8.3 , Latest : 2.0.8.3 ) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Aug 19, 2020 1:03 pm Post subject: |
|
|
Quote: | Has anyone ever tested this? |
what do you think?
of course we test the samples before we release a new version.
- did you use the sample that came with 2083?
- or did you use an old sample?
- please make sure you read the history.txt notes too.
when you compile old samples from older versions it can be the case you get an error.
it is good practice to post the code that gives the problem. this way the readers do not have to guess. _________________ Mark |
|
Back to top |
|
|
dj_cyborg
Joined: 25 Nov 2012 Posts: 7
|
Posted: Wed Aug 19, 2020 1:18 pm Post subject: |
|
|
thanks for your answer.
I copy the Bootloader Code from your Online Help Site ($LOADER ).
I tryed also a old sample, thats run with an old BASCOM-Version.
thx |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Aug 19, 2020 1:56 pm Post subject: |
|
|
samples can best be loaded from the new installation SAMPLES folder.
The samples in the distribution are updated when required.
The samples from the help/web are very hard to update. The help tool does not allow to do it automatically which makes in a manual process. For that reason we advise in the help to use the samples from the installation.
but when you encounter a sample that does not work send an email to support with the link and we change it. For 2083 the samples from the help were checked. but obvious one or more were not modified. _________________ Mark |
|
Back to top |
|
|
dj_cyborg
Joined: 25 Nov 2012 Posts: 7
|
Posted: Wed Aug 19, 2020 2:03 pm Post subject: |
|
|
ok, i will try this..
Quote: |
Has anyone ever tested this?
what do you think?
of course we test the samples before we release a new version.
|
was not meant badly... was badly expressed by me... sry
thx for your help |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Wed Aug 19, 2020 6:40 pm Post subject: |
|
|
I test it today on 2083. Works like it should even over RS485.
|
|
Back to top |
|
|
dj_cyborg
Joined: 25 Nov 2012 Posts: 7
|
Posted: Thu Aug 20, 2020 6:55 am Post subject: |
|
|
Hi,
i try the Bootloader with the code from the Sample folder. I added the 328p chip, Baud and Crystal. And it works...thx
I flashed the chip via Bluethooth Modul (HC-06) and a Softwre Reset with Uart Interrupt. I had increase the Servertime out and decrease the baudrate (9600).
The Software Reset works with my Notebook bluetooth but not with my PC-Station bluetooth. What could be the problem?
More Time for Servertimeout? Reduce the Baudrate to 4800?
Thx |
|
Back to top |
|
|
dj_cyborg
Joined: 25 Nov 2012 Posts: 7
|
Posted: Thu Aug 20, 2020 6:57 am Post subject: |
|
|
Hi EDC,
thx for try this...
regards |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Thu Aug 20, 2020 7:38 am Post subject: |
|
|
Baudrate is not the problem. Im flashing via HC-05 with Baudrate 115200 @16MHz.
Better set longer Timeout for opening port (see pic) or check service settings if your Bluetooth for PC is a USB dongle.
|
|
Back to top |
|
|
dj_cyborg
Joined: 25 Nov 2012 Posts: 7
|
Posted: Thu Aug 20, 2020 8:09 am Post subject: |
|
|
ok, thx
I will change the Port Timeout today.
It is a USB-dongle... what kind of Settings do you mean?
thx |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Thu Aug 20, 2020 8:32 am Post subject: |
|
|
One more thing but maybe this is not the case here because you can reset with notebook BT.
Pay attention that brackets for special characters must be this type {}.
My device did not want to reboot because I make mistake and overlooked that one bracket was "]".
I spy what magic word is sent with Realterm because it can show special characters like Cr and Lf and I found that only Lf was sent without Cr...after change uC reboot properly.
|
|
Back to top |
|
|
dj_cyborg
Joined: 25 Nov 2012 Posts: 7
|
Posted: Thu Aug 20, 2020 9:01 am Post subject: |
|
|
i dont send anything with this "Soft" Value.
I only wait in Uart Interrupt until "123" from Bootloader recived, then i jump to the loader adress. |
|
Back to top |
|
|
|