MicroX and Presto Range (8-Bit PIC board, mixed 3.3/5V) > Presto Modules and SBC Boards

=== Microchip TCP/IP Stack V4.55 (and V5.20) ported for SBC83I ===

(1/2) > >>

modtro2:
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.

jotavans:
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:
the best! party supplies

Marco_Beulke:
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:
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...

Navigation

[0] Message Index

[#] Next page

Go to full version