Ethernet Implementation using Processor Expert and FNET 2.1.1 on K60

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet Implementation using Processor Expert and FNET 2.1.1 on K60

1,008 Views
Arun_bel
Contributor I

I am using K60N512 TWR Board for the application development.  I have created a project using Processor Expert from CW 10.2 and since , I need to have Ethernet support for my application, so I have downloaded FNET 2.1.1 and copied "fnet_stack" folder to Sources directory of the project and added "fnet_user_config.h" file and configured it also.

So now my application will have fnet_stack and there was no errors while building. But the problem now is the Linker fails to create .afx file because of the

conflicting issues in "Processor.Expert.lcf" file. So I changed MEMORY config of "processor_expert.lcf" file as below

 

  cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

  vectorrom   (RX) : ORIGIN = 0x0000C000, LENGTH = 0x00000400

 

  interrupts  (RX) : ORIGIN = 0x1FFF0000, LENGTH = 0x000001E0

  code        (RX) : ORIGIN = 0x1FFF01E0, LENGTH = 0x00015220

 

 

  fnet_params (RW)  : ORIGIN = 0x0007F000, LENGTH = 0x00001000 # 4Kbytes (Last logical-block reserved for parameters)

  vectorram   (RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400 # 64KB SRAM

  userram     (RWX) : ORIGIN = 0x20000400, LENGTH = 0x0000FC00

  data        (RW) : ORIGIN = 0x20005400, LENGTH = 0x0000AC00



And added

    __VECTOR_RAM    = ADDR(.interrupts);

At the end of SECTIONS.

 

Now I am able to build the project but, the program goes to PEDEBUG_HALT() due to some error.

 

I have attached "the project files" for reference.

 

Please suggest where may be the problem?

 

Thanks and Regards

Arun


Original Attachment has been moved to: TEST_LAN_EVALBOARD_ver02.zip

Labels (1)
0 Kudos
1 Reply

386 Views
albertolubeiro
Contributor III

Hi Arun,

I have added FNET 2.1.1 to my proyect. I have also changed the .lcg file as follows:

MEMORY {

m_interrupts  (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0

m_text        (RX) : ORIGIN = 0x00000800, LENGTH = 0x00040000-0x00000800

m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

I have added:

vectorram     (RWX) : ORIGIN = 0x1FFF0000, LENGTH = 0x000001E0

And i have moved m_data at the end of vectorram.

m_data        (RW) : ORIGIN = 0x1FFF01E0, LENGTH = 0x00010000

}

KEEP_SECTION { .vectortable }

KEEP_SECTION { .cfmconfig }

SECTIONS {

ThenI have added _VECTOR_RAM in order to make a copy of vector table to RAM at start_up code.

.vectorram : {

__VECTOR_RAM = .;

} > vectorram



Certainly, I am trying to view the RAM memory on debugging mode. Do you know how to do this?

I want to check if the copy is well done.


Thanks and regards


A. Lubeiro

0 Kudos