View previous topic :: View next topic |
Author |
Message |
Felice
Joined: 20 Feb 2017 Posts: 7
|
Posted: Sat Feb 24, 2024 5:53 pm Post subject: Start Bascom with Profile? |
|
|
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 |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 141
|
Posted: Sat Feb 24, 2024 6:29 pm Post subject: |
|
|
Hello,
Is it maybe back to COM3 and 9600baud?
Regards,
Przemek |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Sat Feb 24, 2024 11:30 pm Post subject: |
|
|
Try out $PROGRAMMER |
|
Back to top |
|
|
Felice
Joined: 20 Feb 2017 Posts: 7
|
Posted: Sun Feb 25, 2024 12:55 pm Post subject: |
|
|
Great, "$Programmer..." solves my problem perfectly, even better than with a profile.
Thank you, MWS
Felice |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5922 Location: Holland
|
Posted: Sun Feb 25, 2024 1:01 pm Post subject: |
|
|
yes, MWS is one of the few that read the help
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 |
|
|
Felice
Joined: 20 Feb 2017 Posts: 7
|
Posted: Wed Feb 28, 2024 10:18 am Post subject: |
|
|
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 |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Wed Feb 28, 2024 11:13 am Post subject: |
|
|
Seems a bug, I can virtually write any nonsense behind $programmer without any change or complaint. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5922 Location: Holland
|
Posted: Wed Feb 28, 2024 8:37 pm Post subject: |
|
|
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 |
|
|
|