• AVR Freaks

Hot!Code configurator PIC24FJ and enc28j60 tcp/ip

Author
Rickyz
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2013/10/18 04:52:48
  • Location: 0
  • Status: offline
2019/09/11 04:50:43 (permalink)
0

Code configurator PIC24FJ and enc28j60 tcp/ip

I know the MLA has library's (but they are bloaty and take ages to unpick)...
Are there plans to incorporate the TCP/IP + MAC into the 24F range of PIC's like 16F and 18F?
 
 
#1

8 Replies Related Threads

    katela
    Super Member
    • Total Posts : 1412
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/11 05:48:17 (permalink)
    0
    There is TCP/IP Lite Stack that works with those chips.
    You can read the Microchip TCP/IP Lite Stack AN1921 for more information.

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #2
    Rickyz
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2013/10/18 04:52:48
    • Location: 0
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/11 07:29:32 (permalink)
    0
    Hi Katela
    Thank you for responding.
    I have MPLAB X IDE V5.25
    I have TCP/IP Lite stack V 2.2.12
    I am using Code Configurator Version 3
    I am using PIC24FJ1024GB606
     
    I do not have a Device Resource for TCP/IP.
     
    I read the documentation you sent, I do not know what else to look for it just looks like it is not supported.
    Thanks
    Rick
    #3
    Rickyz
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2013/10/18 04:52:48
    • Location: 0
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/11 07:39:01 (permalink)
    0
    Hi Katela,
    Additional information... I have started new projects with PIC18F and I get the library, however I have not found any PIC24F processors that support it.
    Hope this helps
    Rick
    #4
    katela
    Super Member
    • Total Posts : 1412
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/11 07:50:36 (permalink)
    0
    Not all MCUs are supported by MCC, so the first thing if you want to use this TCP/IP lite stack is to make sure your chip is supported by MCC, which currency support relatively newer chips.
    You can check if your chip is supported by MCC by reading the PIC24 / dsPIC33 / PIC32MM MCUs release note. If your chip is not in that list then it's not supported.

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #5
    Rickyz
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2013/10/18 04:52:48
    • Location: 0
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/12 00:40:21 (permalink)
    0
     
    I have checked my library version is 1.135.0
    I have Checked the list, PIC24FJ1024GB610 is listed as supported.  I started a new project with MCC and do not get TCP/IP as a Library design resource.
    I have tried another in the list PIC24FJ256DA210.  I started a new project with MCC and do not get TCP/IP as a Library design resource.
    I went to the first processor listed PIC24F16KM204.  I started a new project with MCC and do not get TCP/IP as a Library design resource.
     
    I would truly love this to work but it looks like the TCP/IP Lite library is not supported by PIC24.
     
    Any thing else that I could try? Thanks

    Attached Image(s)

    #6
    katela
    Super Member
    • Total Posts : 1412
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/12 03:23:27 (permalink)
    0
    It seems like the PIC24 is not supported.
    In the release note:
    2 System Recommendations • MPLAB® X IDE 5.05 or later • XC8 compiler v2.00 • MCC Version v3.66 or later • Foundation Services Library v0.1.30

    8 Supported Families The MCC TCP/IP Lite Library v2.2.12 is designed to be platform independent and expected to run on all devices supported by MCC.
    However:
    Currently for PIC16 and PIC18 devices, the rtcc.c file supports the following MCC generated function call: INTERRUPT_GlobalInterruptDisable(). Using other devices may result in a build error. To resolve the error, the user will have to modify the INTERRUPT_GlobalInterruptDisable() call in rtcc.c file.

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #7
    Rickyz
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2013/10/18 04:52:48
    • Location: 0
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/13 07:28:39 (permalink)
    0
    If only it was that easy.
     
    I have been creating projects all day with different configurations.  I think it broke a while back an no one has tested it.
    #8
    Rickyz
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2013/10/18 04:52:48
    • Location: 0
    • Status: offline
    Re: Code configurator PIC24FJ and enc28j60 tcp/ip 2019/09/15 03:21:19 (permalink)
    5 (1)
    In the end I just started from scratch and wrote it myself.  If anyone says that the MCC is easy to use and generates nice code they need shooting.  I have produced hundreds of PIC projects using millions of PICS each year.  MCC is a mess.  The Library code is a mess.  If you break it heaven help you trying to debug it...
     
    If you have to support it my advice is write it yourself.  If you can not write it yourself you should not be working in this job, just contact us we will write it for you (not for free though).
     
    Thanks anyway for wasting a couple of weeks.
     
    #9
    Jump to:
    © 2019 APG vNext Commercial Version 4.5