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.


Topics - FrankD

Pages: [1]
1
Hello everyone.

First of all I would like to thank the uTasker Team for having academic licences available, this is a great incentive for me and my fellow classmates.

I've had a few problems with running the application correctly on my Olimex SAM7-EX256 Board with CrossStudio from Rowley Assosiates.

My question is: What should be configured in the source code so that it runs correctly for my Hardware?

I've already done the following:

In the config.h file I've changed the
Code: [Select]
#ifdef _HW_SAM7X
    #define SAM7X_EVAL                                                   // evaluation board from ATMEL
    //#define OLIMEX_EX256                                                 // Low cost evaluation board from Olimex[/quote]

To:
Code: [Select]
#ifdef _HW_SAM7X
    //#define SAM7X_EVAL                                                   // evaluation board from ATMEL
    #define OLIMEX_EX256                                                 // Low cost evaluation board from Olimex

This made the following errors appear in the following line of code (which I've commented just to be able to compile and run)
Code: [Select]
            http_session->ptrFileStart = (unsigned char*)cSuccessSW_HTML; BORRE
            http_session->FileLength = sizeof(cSuccessSW_HTML)-1;
Error:

Code: [Select]
In webInterface.c
'cSuccessSW_HTML' undeclared (first use in this function)
'BORRE' undeclared (first use in this function)


I've also changed the IP, submask, default gateway and DNS server parameters to fit my network (Im using a linksys WRT54GX2)

Code: [Select]
static const NETWORK_PARAMETERS network_default = {
    (AUTO_NEGOTIATE | FULL_DUPLEX | RX_FLOW_CONTROL),                    // usNetworkOptions - see driver.h for other possibilities
    {0x00, 0x00, 0x00, 0x00, 0x00, 0x00},                                // ucOurMAC - when no other value can be read from parameters this will be used
    { 192, 168, 1, 3 },                                                  // ucOurIP - our default IP address
    { 255, 255, 255, 0 },                                                // ucNetMask - Our default network mask
    { 192, 168, 1, 1 },                                                  // ucDefGW - Our default gateway
    { 192, 168, 1, 1 },                                                  // ucDNS_server - Our default DNS server
};

I also read on another forum post about the PHY controllers, and made the following changes from:
Code: [Select]
    #define DRIVE_PHY_OPTION_LINES() PIO_PER_B = (PCS_LPBK | ISOLATION_MODE | RMII_MODE | RMII_BACKTOBACK_MODE); \
                                     PIO_OER_B = (PCS_LPBK | ISOLATION_MODE | RMII_MODE | RMII_BACKTOBACK_MODE);

To:

Code: [Select]
    #define PHY_ADD_31              (PB05 | PB06 | PB13 | PB14)         

    // set the option lines as we would like them to be for the MICREL PHY
    // drive to zero (default after reset)
    // drive PHY address configuration lines to correct address value
    #define DRIVE_PHY_OPTION_LINES() PIO_PER_B = (PCS_LPBK | ISOLATION_MODE | RMII_MODE | RMII_BACKTOBACK_MODE | PHY_ADD_31); \
                                     PIO_OER_B = (PCS_LPBK | ISOLATION_MODE | RMII_MODE | RMII_BACKTOBACK_MODE | PHY_ADD_31); \
                                     PIO_SODR_B = (PHY_ADD_31);

Once loaded to my board, the LCD flashes every half a second or so, and the Ethernet Yellow status LED turns solid and and the green status LED blinks occasionally.

Any help would be greatly appreciated, I'll continue to read the documentation, but so far I've missed what else I must do.

The simulator so far was of no help, since I use windows Vista and visual studio 2008  and ir appears to have problems (for example, it never detects any NIC devices on my computer)

Thank you for your time.

Javier Diaz

Pages: [1]