Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jotavans

Pages: [1]
1
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 !!

2
Attachments TCP/IP Stack Microchip modified

3
Attachment files: SBC83I with WEB HTTP2, SPI FLASH, SNTP client with RTC M41T82

4
Hello again.

I will include the SNTP client changed without DNS. This also implies the use of the chip M41T82 RTC available to the sbc83I.
Using this client without DNS because I do not have a network with DNS server. You can activate the DNS uncomment the comments "INI with DNS" of file sntp.c

The parameters can be configured on the Web of the sbc83I.

For this I used the library i2c of Modtronix TCP/IP Stack. To handle the RTC M41T82 I helped the driver DS1307 from OmarZucchiatti.

Files modified:
-MainDemo.c : Settings SNTP by defect
-i2c.h, i2c.c : dirver Modtronix I2C
-rtc.h, rtc.c : driver M41T82
-CustomHTTPApp.c : SNTP configurations via web

I also modified some files of the TCP/IP stack of Microchip.

Regards, Jota.

5
Presto Modules and SBC Boards / Re: samples
« on: November 07, 2008, 03:36:55 AM »
im interested in this board, do have any code samples to test it, or may be a sdk? 8-)

Look http://forum.modtronix.com/index.php?topic=1038.msg3384#msg3384

Regards, Jota.

6
Hello everyone.

Surely there are people like me who need to use this SBC in ethernet.

You have offered the possibility of working based on the Microchip TCP/IP Stack, with the option of replacing the SPIFlash by a SPIEEPROM.
But I needed the SPIFlash storage site, so I adapted the Microchip TCP/IP Stack v4.51 for SBC83i-J10.   
You can get the TCP/IP Stack v4.51 of Microchip in http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2680&dDocName=en537041

-To set the settings of SBC83i-J10 in this TCP/IP Stack V4.51 ought to include "HardwareProfile.h" that attached.
-In this version of Stack is possible to find a BUG in her memory usage SPIFlash that is resolved. This fix is in the file "SPIFlash.c", I modified the function "SPIFlashWriteArray" which gave problems. Attached the new "SPIFlash.c".
Only with these two steps the SBC83i behaves correctly in ethernet with Web server(MPFS Classic), TFTP server, ping, UDP...

On the other hand I met some difficulties in working with the Web Server MPFS v2.  I decided to modify a possible BUG handling pointers in "HTTPPostConfig" file "CustomHTTPApp.c". With that I have fixed the problem, and SBC83i behaves properly in all applications.

This new version of Stack has two powerful utilities:
  - "TCPIPConfig.exe" changes the file "TCPIPConfig.h" which sets out the general values of the application, as well as the corportamiento of SBC83.
  - "MPFS2.exe" generates the images with the Web pages to load into memory.

For example, the file "TCPIPConfig.h" that the attachment is generated with the aplición TCPIPConfig.exe. This was generated with the following options:
-Use MPFSv2
-Use SPIFlash
-Reserved the first 4096 bytes of SPIFlash for aplication
-HostName, IP, MAC, MASK IP, GATEWAY, DNS Servers
-Use external SRAM for save the aplications buffers

I used the file linker "18f87j10i.lkr" of the tcp/ip stack v4.18 because in examples v4.51 are not include.

Now I'm working on creating a bootloader and updating the RTC by SNTP client. I hope posting in the near future.

I hope this serves as some help and forgive my poor English.
Regards, Jota.

7
Presto Modules and SBC Boards / Re: samples
« on: October 07, 2008, 09:56:30 AM »
Hello.

I have a SBC83I-J10 but these examples do not run correctly. The main problem is that the execution of the program is very slow. After hours of reviewing, I came to a fatal conclusion. Where is the crystal clock?  :-o

Is this normal? Should this card include the crystal? Is it not true?  :?

I attach photos of the problem.

Pages: [1]