Author Topic: === Microchip TCP/IP Stack V4.55 (and V5.20) ported for SBC83I ===  (Read 17188 times)

modtro2

  • Administrator
  • Hero Member
  • *****
  • Posts: 564
    • View Profile
We have ported the Microchip TCP/IP stack V4.55 to work with our SBC83I board with an in28J60 (Ethernet port), and im232M (RS-232 port) iMod module mounted. It can be downloaded here. When buying the SBC83I online, the in28J60 and im232M iMod modules can be included by selecting them right at the bottom of the page, in the "Available Options" section.

The ported TCP/IP stack stores it's web pages in the 4MByte Flash of the SBC83I, allowing many, many web pages to be stored! The mx_changes.txt file documents the changes that were made to the Microchip TCP/IP stack for it to work on the SBC83I board.

To compile the source code, the MPLAB IDE and Microchip MPLAB C18 C compiler have to be downloaded from www.microchip.com. After installing MPLAB and the C compiler, download the source code, unzip it on your harddrive, and open the "TCPIP Demo App-C18.mcw" MPLAB Workspace file in MPLAB. This will open the project in MPLAB, and can now be built with the "Build All" command. The resulting hex file is used to program the SBC83I board, as described here.

Also have a look at Stack V5.20 that has been ported by Marco Beulke, it is here.
« Last Edit: May 27, 2010, 05:51:17 PM by modtro2 »

jotavans

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 ported for SBC83I ===
« Reply #1 on: June 16, 2009, 10:17:16 AM »
Good afternoon from Spain.

I have reviewed the code for the external SPI flash and I see that is not like the file mx_changes.txt

I think it should be well:

===============================================================================   
Changed the following code in SPIFlash.h from:

#define SPI_FLASH_SPANSION
#define SPI_FLASH_SECTOR_SIZE      (65526ul)
//#define SPI_FLASH_SECTOR_SIZE      (262144ul)
//#define SPI_FLASH_SECTOR_SIZE      (524288ul)
#define SPI_FLASH_PAGE_SIZE         (256)

to:

//#define SPI_FLASH_SPANSION
//#define SPI_FLASH_SECTOR_SIZE      (65526ul)
//#define SPI_FLASH_SECTOR_SIZE      (262144ul)
//#define SPI_FLASH_SECTOR_SIZE      (524288ul)
//#define SPI_FLASH_PAGE_SIZE         (256)

#define SPI_FLASH_WINBOND
#define SPI_FLASH_SECTOR_SIZE      (4096ul)
#define SPI_FLASH_PAGE_SIZE         (256)


===============================================================================   
Changed the following line code in SPIFlashWriteArray(BYTE* vData, WORD wLen) function in SPIFlash.c from:

#elif defined(SPI_FLASH_SPANSION)

to:

#elif defined(SPI_FLASH_SPANSION) || defined(SPI_FLASH_WINBOND)


===============================================================================   

Changed the following line code in SPIFlashEraseSector(BYTE* vData, WORD wLen) function in SPIFlash.c from:

#if defined(SPI_FLASH_SST)

to:

#if defined(SPI_FLASH_SST) || defined(SPI_FLASH_WINBOND)


===============================================================================   
Changed the following 2 lines of code in SPIFlashInit() function in SPIFlash.c from:
   // Execute Enable-Write-Status-Register (EWSR) instruction
   _SendCmd(EWSR);
to:
    #if !defined(SPI_FLASH_WINBOND)
   // Execute Enable-Write-Status-Register (EWSR) instruction
   _SendCmd(EWSR);
    #endif
   
   

===============================================================================   
Change the following two lines of code (at end of function) in SPIFlashInit() function in SPIFlash.c from:
   // Restore SPI state
   SPIFLASH_SPICON1 = SPICON1Save;
to:
   #if defined(SPI_FLASH_WINBOND)
   // After writing to the status register, we have to wait for the write to complete
   _WaitWhileBusy();
    #endif
   
   // Restore SPI state
   SPIFLASH_SPICON1 = SPICON1Save;
===============================================================================   

For the rest everything is fine.

I am testing the TCPIP Stack v5.00 on SBC83I-J11 rev.2 for more than one months ago, and this everything works perfectly. To align the v5.00 just follow the changes of mx_changes.txt

Be Happy  :-D !!

MRroboto

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 ported for SBC83I ===
« Reply #2 on: February 23, 2010, 04:12:52 PM »
the best! party supplies

Marco_Beulke

  • Full Member
  • ***
  • Posts: 10
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 ported for SBC83I ===
« Reply #3 on: April 16, 2010, 09:28:43 AM »
Hello from Germany.
I have an SB83I R2 since 6 moth but had no time.
Now i want to test him with the TCPIP Demo App SBC83I-E2 but it displays no webpage.
Do I have to programm the webpage after I put in the stack, or
is it in the stack?
If I have to programm it extra how do I have to do that?

nikosxan

  • Sr. Member
  • ****
  • Posts: 28
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 ported for SBC83I ===
« Reply #4 on: April 17, 2010, 11:47:15 AM »
Web pages are loaded seperatelly...............(in NO case inside code........)

on the other hand if board has already a web page loaded from previous app it will work...

Marco_Beulke

  • Full Member
  • ***
  • Posts: 10
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 ported for SBC83I ===
« Reply #5 on: April 22, 2010, 11:44:32 AM »
 :?
how do i upload the webpage?
I think it is "MPFSImg.bin" is this right?
on the sbc65 with bootloader modtronix had a tool but how do I do that now????
Thanks for help.
Regards Marco

Marco_Beulke

  • Full Member
  • ***
  • Posts: 10
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 ported for SBC83I ===
« Reply #6 on: April 22, 2010, 11:51:22 AM »
 :roll:
ok thanks for help.
I found it in the doc of the stack.
open browser ans type: http://mchpboard/mpfsupload (or your ip adress if there is no dns)
Marco

Jan

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 (and V5.20) ported for SBC83I ===
« Reply #7 on: May 12, 2011, 05:54:03 AM »
Hi everyone,

I have the SBC83IL R2; does anybody has experience with the stack on this one?
There is something with the menory ofcourse, but I cant figure out what and how.

Thanks

Jan

Marco_Beulke

  • Full Member
  • ***
  • Posts: 10
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 (and V5.20) ported for SBC83I ===
« Reply #8 on: May 13, 2011, 12:21:56 AM »
Hello Jan

so here it is online again.
Im sorry that I have to say you that in the 5.20 stack is a big bug. If your network is halted for 1 second it is the stack.
You can download the new one 5.3 anything from microchip and change it in the folder microchip then will be everything ok.
Your older Question: Which board .. I have the big one with everyting & LAN & RS485
Regards Marco

Jan

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: === Microchip TCP/IP Stack V4.55 (and V5.20) ported for SBC83I ===
« Reply #9 on: May 13, 2011, 05:58:50 AM »
Thanks for warning me,

I have the presto board with only the PIC on it (The light version)

Thanks for posting your port!

Jan