Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Bootloader with BASCOM 2.0.8.3

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
dj_cyborg

Bascom Member



Joined: 25 Nov 2012
Posts: 7

PostPosted: Wed Aug 19, 2020 12:45 pm    Post subject: Bootloader with BASCOM 2.0.8.3 Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5071
Location: Holland

blank.gif
PostPosted: Wed Aug 19, 2020 1:03 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
dj_cyborg

Bascom Member



Joined: 25 Nov 2012
Posts: 7

PostPosted: Wed Aug 19, 2020 1:18 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5071
Location: Holland

blank.gif
PostPosted: Wed Aug 19, 2020 1:56 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
dj_cyborg

Bascom Member



Joined: 25 Nov 2012
Posts: 7

PostPosted: Wed Aug 19, 2020 2:03 pm    Post subject: Reply with quote

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
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 695

poland.gif
PostPosted: Wed Aug 19, 2020 6:40 pm    Post subject: Reply with quote

I test it today on 2083. Works like it should even over RS485.
Back to top
View user's profile Visit poster's website
dj_cyborg

Bascom Member



Joined: 25 Nov 2012
Posts: 7

PostPosted: Thu Aug 20, 2020 6:55 am    Post subject: Reply with quote

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
View user's profile
dj_cyborg

Bascom Member



Joined: 25 Nov 2012
Posts: 7

PostPosted: Thu Aug 20, 2020 6:57 am    Post subject: Reply with quote

Hi EDC,

thx for try this...

regards
Back to top
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 695

poland.gif
PostPosted: Thu Aug 20, 2020 7:38 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
dj_cyborg

Bascom Member



Joined: 25 Nov 2012
Posts: 7

PostPosted: Thu Aug 20, 2020 8:09 am    Post subject: Reply with quote

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
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 695

poland.gif
PostPosted: Thu Aug 20, 2020 8:32 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
dj_cyborg

Bascom Member



Joined: 25 Nov 2012
Posts: 7

PostPosted: Thu Aug 20, 2020 9:01 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum