Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Binary file compiled with older version Bascom (quite old ac

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

Bascom Member



Joined: 16 Jul 2004
Posts: 471

blank.gif
PostPosted: Sat Oct 19, 2019 6:38 pm    Post subject: Binary file compiled with older version Bascom (quite old ac Reply with quote

If I ISP program (using Bascom 2.0.8.2) an old binary file that was compiled with a very old version of Bascom (oh, let's say 2.0.7.1), but haven't recompiled it in 2.0.8.2, there is nothing changed in the binary, correct? It should be loaded into the programmed processor exactly the same as it was compiled years ago, correct?

I ask because if I try doing the above, the loaded binary doesn't seem to run properly

(BASCOM-AVR version : 2.0.8.2 )
Back to top
View user's profile
i.dobson

Bascom Expert



Joined: 05 Jan 2006
Posts: 1529
Location: Basel, Switzerland

switzerland.gif
PostPosted: Sat Oct 19, 2019 8:54 pm    Post subject: Reply with quote

Hi,

What do mean with " doesn't seem to run properly"?

If the code that you write verifies than it's exactly the same code. The only Thing could be a small Change to the Hardware or maybe the fuse bits aren't being set correctly. Without more Information it's impossible to help more than this.

I have a 7 year old hex file that I can load onto the PCB and it works exactly the same (Compiled with 7.8? downloaded with 8.2)

Regards
Ian Dobson

_________________
Home of AVRTimer, the Bascom timer value calculator.
http://www.planet-ian.com

Walking on water and writing software to specification is easy if they're frozen.
Back to top
View user's profile Visit poster's website
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 621

poland.gif
PostPosted: Sun Oct 20, 2019 4:30 pm    Post subject: Re: Binary file compiled with older version Bascom (quite ol Reply with quote

KenHorse wrote:
It should be loaded into the programmed processor exactly the same as it was compiled years ago, correct?


No. That`s why sometimes you should comment in the source code last version where code compiles properly.

One time I compile code on the new Bascom that time and program have strange issues so I wrote to support. I got answear that words Hbyte and Lbyte are now reserved words but compiler dont warn about that...so in the next Bascom version Mark implement that warnings Very Happy

Maybe you use some registers manually and dont save them first then something in Bascom is changed and those registers are needed now for some purose.
Causes can be many - some code can be simply fix. Some needs a (!) exclamation mark before asm mnemonic etc...

(BASCOM-AVR version : 2.0.8.2 )
Back to top
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 871
Location: France

france.gif
PostPosted: Sun Oct 20, 2019 4:37 pm    Post subject: Reply with quote

hi
I had some surprises when I picked up old programs with new versions
for example Lbyte
I usually name some generic variables with a letter and type: Jbyte jword... it makes searching easier

but Mark had the same idea and since a few versions

see the help for reserved words
Additional, there are also these reserved words :

LBYTE , HBYTE, TYPE


what do you mean by binary file? the.bin generated by the compiler?
in this case take over the project and rebuild it with the new version
JP

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 871
Location: France

france.gif
PostPosted: Sun Oct 20, 2019 4:40 pm    Post subject: Reply with quote

funny EDC I did the same comments !

Edc have you seen the comments in the forum "varius" on the HMI screens?
JP

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
JC

Bascom Member



Joined: 15 Dec 2007
Posts: 459
Location: Cleveland, OH

usa.gif
PostPosted: Sun Oct 20, 2019 5:47 pm    Post subject: Reply with quote

I think Ken is not talking about re-compiling his program.

He has the compiled program and is just downloading it to the micro, and now it doesn't work as it previously did.

As Dobson said, it is likely the Fuses are not configured as they were on the original board.

What one uses for an ISP programmer should make no difference at all.

JC
Back to top
View user's profile Visit poster's website
richhbd

Bascom Member



Joined: 03 Feb 2006
Posts: 52

blank.gif
PostPosted: Tue Nov 05, 2019 12:42 am    Post subject: Reply with quote

Hi all, @KenHorse, can you tell us a bit more about the programmer you are using and other details of the binary you are having problems with - in particular its filesize and the specific micro you're trying to program, and what OS you're running?

I've discovered what I think is a bug in 2.0.8.2's programmer. The symptoms you are reporting are superficially consistent with the same problem. Rather than assume and reply here, I'll post a separate thread for the time being - but if you can answer the questions above that will help us help you - and also support (or disprove) the hypothesis that we are seeing the same problem.
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