View previous topic :: View next topic |
Author |
Message |
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Sat Oct 19, 2019 6:38 pm Post subject: Binary file compiled with older version Bascom (quite old ac |
|
|
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 |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sat Oct 19, 2019 8:54 pm Post subject: |
|
|
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 _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Sun Oct 20, 2019 4:30 pm Post subject: Re: Binary file compiled with older version Bascom (quite ol |
|
|
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
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 |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sun Oct 20, 2019 4:37 pm Post subject: |
|
|
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 |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sun Oct 20, 2019 4:40 pm Post subject: |
|
|
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 |
|
|
JC
Joined: 15 Dec 2007 Posts: 585 Location: Cleveland, OH
|
Posted: Sun Oct 20, 2019 5:47 pm Post subject: |
|
|
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 |
|
|
richhbd
Joined: 03 Feb 2006 Posts: 52
|
Posted: Tue Nov 05, 2019 12:42 am Post subject: |
|
|
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 |
|
|
|