• AVR Freaks

Issue compiling example (18F46K20 / Explorer 8 / IDE 3.51 / XC8 1.41)

Author
blinde
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2013/02/11 12:32:40
  • Location: 0
  • Status: offline
2017/01/30 06:45:54 (permalink)
0

Issue compiling example (18F46K20 / Explorer 8 / IDE 3.51 / XC8 1.41)

Hi
 
I am trying to compile example for Explorer 8 Board.
http://www.microchip.com/design-centers/8-bit/development-boards/explorer-8-development-board
I managed to compile and run it for 16F1719
 
I am  now trying to build it for 18F46K20 bit it fails.
Error 500 undefined symbol. _write_b_eep _Busy_eep _Read_b_eep
 
Error in the example ?
Issue with my install ?
 
Thanks
 
 
 
#1

4 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 18053
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: Issue compiling example (18F46K20 / Explorer 8 / IDE 3.51 / XC8 1.41) 2017/01/30 06:57:25 (permalink)
    +1 (1)
    My guess is you need to install the legacy peripheral libraries. Assuming they support that pic
    #2
    CinziaG
    die fucking humans
    • Total Posts : 3145
    • Reward points : 0
    • Joined: 2016/12/07 14:20:36
    • Location: Wien
    • Status: online
    Re: Issue compiling example (18F46K20 / Explorer 8 / IDE 3.51 / XC8 1.41) 2017/01/30 07:01:13 (permalink)
    +1 (1)
    It would look like the "empty stub" that used to be provided in older times, now has gone (luckily!)

    in 2018 you signed for your annihilation. in 2019 it will come ;) I promise
    my most wonderful creations here
    https://www.youtube.com/c...dPFRvtwsbSTXp6Sk6azGOQ
    #3
    marivarosa
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2015/11/07 03:50:41
    • Location: 0
    • Status: offline
    Re: Issue compiling example (18F46K20 / Explorer 8 / IDE 3.51 / XC8 1.41) 2017/01/31 23:45:36 (permalink)
    +1 (1)
    Hi,
     
    Based on the XC8 release notes, under Migration Issues, (http://ww1.microchip.com/downloads/en/DeviceDoc/Readme_XC8v141.htm)
     
    Removal of legacy EEPROM function calls (XC8E-118) Calls to the legacy EEPROM functions, eeprom_read() and eeprom_write() were previously mapped to the equivalent PIC18 peripheral library functions if EEPROM was supported by the device and that library was installed. If the library was not installed, these calls were removed. The compiler now always maps these functions to the peripheral library. If the library is not installed when you build, an error will be triggered.
     
    This began on v1.40. The explorer8 examples on the web were on v1.34.
     
    You can either:
    a. Install the legacy library (as suggested by NKurzman) 
    b. Use an xc8 compiler version prior to v1.40
    c. Use the memory peripheral from MCC - however, since the samples were done on an older version of MCC (v2.25), you'll have to start from scratch for all the peripheral settings.
     
    Regards.
    #4
    Dhivakar RS
    Super Member
    • Total Posts : 213
    • Reward points : 0
    • Joined: 2016/10/15 03:44:54
    • Location: Coimbatore
    • Status: offline
    Re: Issue compiling example (18F46K20 / Explorer 8 / IDE 3.51 / XC8 1.41) 2017/09/28 00:23:00 (permalink)
    0
    From v1.35 upwards, The peripheral is no longer included in the installation file, you have to download and install them separately. You can install them into your compiler. In project Properties, select XC8 linker and select Link in Peripheral Library to use the Peripheral Library. Source: @katela
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5