CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Webserver2 example (CCS 3.3v Ethernet development Board)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








Webserver2 example (CCS 3.3v Ethernet development Board)
PostPosted: Sun Sep 07, 2008 6:23 pm     Reply with quote

Has anyone got the webserver2 example to work with the files stored on an SD Card?

I am using PCHW V4.078 and the TCP/IP is 8/2007

I have 2 SD cards that I am trying
1. sandisk 1g this one is a microSD to SD adapter
2. patriot 2g SD card

Both formatted FAT32 with 512 block size

I think the code has the wrong defines for the SELECT line for one or both MMC or EEPROM

What is the correct select line for the EEPROM and the MMC slot

I see this #define in ex_st_webserver2.c
Code:

#if STACK_USE_CCS_PICEEC
 #define EXT_FLASH_PIN_SCL     PIN_C3 //o
 #define EXT_FLASH_PIN_SDI     PIN_C4 //i
 #define EXT_FLASH_PIN_SDA     PIN_C5 //o
 #define EXT_FLASH_PIN_SELECT  PIN_C2 //o
#endif


I this the EEPROM select line? the code hangs if

#define STACK_USE_FAT 1

without defining

STACK_USE_EEPROM FALSE

I could not get this this to work so trying to minimize code i tried the ex_fat.c

Code:

#define MMCSD_PIN_SCL     PIN_C3 //o
#define MMCSD_PIN_SDI     PIN_C4 //i
#define MMCSD_PIN_SDO     PIN_C5 //o
#define MMCSD_PIN_SELECT  PIN_C2 //o


which claims
//These settings are for the CCS PICEEC development kit which contains
//an MMC/SD connector.

I get no errors from ex_fat.c even without a MMC/SD card in the slot. If I do a dir cmd it is empty if I do make test.txt then dir that file now shows up in the dir.


So what is the Select pin for MMC/SD connecter and the 32k of eeprom on this board?

Any other ideas?
leejok2003
Guest







PostPosted: Wed Dec 17, 2008 10:23 am     Reply with quote

hi, may i know where can i get those examples?? thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Dec 17, 2008 1:08 pm     Reply with quote

This thread tells how to get the CCS TCP/IP source files:
http://www.ccsinfo.com/forum/viewtopic.php?t=34472&highlight=button
leejok2003
Guest







PostPosted: Wed Dec 24, 2008 3:14 am     Reply with quote

Hi, i tried to use that example to work with PIC 18F4620+enc28j60 with internal memory to store the web page. I faced problems such as slow respond from the board...did anyone try to with this package b4?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group