Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Start Bascom with Profile?

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

Bascom Member



Joined: 20 Feb 2017
Posts: 7

blank.gif
PostPosted: Sat Feb 24, 2024 5:53 pm    Post subject: Start Bascom with Profile? Reply with quote

Hi All,

I am running Bascom 2.0.8.6 with two different target-MCU's attached via USB. They both have different COM-Port numbers.
The Options -> Programmer is the MCS Bootloader, which works fine.
BUT: I have to switch the COM-port every time I switch to the other target. And back!

Is there a way to start-up Bascom with a profile/config....., which includes the Programmer settings?

Thanks a lot
Felix

(BASCOM-AVR version : 2.0.8.6 )
Back to top
View user's profile
programmista123

Bascom Member



Joined: 31 Jan 2018
Posts: 141

poland.gif
PostPosted: Sat Feb 24, 2024 6:29 pm    Post subject: Reply with quote

Hello,

Is it maybe back to COM3 and 9600baud?

Regards,
Przemek
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Sat Feb 24, 2024 11:30 pm    Post subject: Reply with quote

Try out $PROGRAMMER
Back to top
View user's profile
Felice

Bascom Member



Joined: 20 Feb 2017
Posts: 7

blank.gif
PostPosted: Sun Feb 25, 2024 12:55 pm    Post subject: Reply with quote

Great, "$Programmer..." solves my problem perfectly, even better than with a profile.
Thank you, MWS
Felice
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5922
Location: Holland

blank.gif
PostPosted: Sun Feb 25, 2024 1:01 pm    Post subject: Reply with quote

yes, MWS is one of the few that read the help Very Happy

to use a 'profile' you can use Options, Select Settings file and create a copy. the copy can have different parameters.
when you specify the option file with the xml extension as a parameter like : bascavr somesettings.xml then these settings will be loaded.
it is merely intended for support to check problems with the same settings as a customer.

the $programmer option is indeed intended to switch programmer. and since 2086 also the COM port when specified.

_________________
Mark
Back to top
View user's profile Visit poster's website
Felice

Bascom Member



Joined: 20 Feb 2017
Posts: 7

blank.gif
PostPosted: Wed Feb 28, 2024 10:18 am    Post subject: Reply with quote

Thank you, albertsm, for the additional info.

With $Programmer, I am having the problem, that it doesn't select the COM-port.

In Options -> Programmer -> MCS Bootloader, COM-port is set to COM1.

In my code, I have the lines
$programmer = 13 , "COM3"
$regfile = "m328pdef.dat"
etc.

With <F4> the MCS Bootloader reports several times:
Log Window
Open COM1
Sending Init byte
Loader returned : 0

Am I missing any prerequisites for the COM-port to switch properly to COM3 ???

Thanks for help
Felice
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Wed Feb 28, 2024 11:13 am    Post subject: Reply with quote

Seems a bug, I can virtually write any nonsense behind $programmer without any change or complaint.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5922
Location: Holland

blank.gif
PostPosted: Wed Feb 28, 2024 8:37 pm    Post subject: Reply with quote

yes this is a bug for the mcs boot loader. for other serial based progs it will work. it will be addressed in the next release.
_________________
Mark
Back to top
View user's profile Visit poster's website
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