• AVR Freaks

Issue on migration

Author
tpicon
Senior Member
  • Total Posts : 177
  • Reward points : 0
  • Joined: 2007/07/18 07:59:12
  • Location: Brazil
  • Status: offline
2020/09/22 10:33:47 (permalink)
0

Issue on migration

Hi folks
I have an old code compiled in XC8 1.36
Now I have the version 2.05
 
When I try to compile, I got an error on this line
 
extern persistent BYTE statusWatchdog[MAX_STATUS_WATCHDOG] __at(0x3E6);
 
If I remove the __at(0x3E6) in the "extern" declarion and leave the address only in the original file ti works..
But I would like to know If it's right, because I didn't see this in the changeLog
 
Does anybody know this or at least point me to the right file to figure out?
 
Tks in advance
#1

2 Replies Related Threads

    du00000001
    Just Some Member
    • Total Posts : 3972
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: offline
    Re: Issue on migration 2020/09/22 13:51:07 (permalink)
    +3 (3)
    XC8 2.x is C99 by default. And in C99 some "special attributes" (like __at()) have changed.
    The "right file" would be the compiler's manual.
     
    The fast solution: change the compiler's mode to C90 (somewhere in the project properties).

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #2
    tpicon
    Senior Member
    • Total Posts : 177
    • Reward points : 0
    • Joined: 2007/07/18 07:59:12
    • Location: Brazil
    • Status: offline
    Re: Issue on migration 2020/09/22 14:02:19 (permalink)
    0
    Good to know!
    Tks a lot!
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5