FNET for K60

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

FNET for K60

Jump to solution
14,812 Views
romano_r1
Contributor II

Hi.

 

I will have to take a decision about selection the microcontroller. I must choice between MCF52259 and K60. Very helpful for me will be the answer for the following question: 

- What is the estimated date when the FNET for K60 will appear?

1 Solution
7,296 Views
butok
NXP Employee
NXP Employee

Hi Gustavo,

 

>>are you intending to release a FNET demo for Codewarrior 10.1 (Kinetis K60N512)?

 

Yes, but I would wait for CW10.2.

 

Thank you,

Andrey Butok

View solution in original post

0 Kudos
97 Replies
1,226 Views
butok
NXP Employee
NXP Employee

Hi Nikhil,

You can use S-record file, CW  CodeWarrior binary file (bin) or Raw binary file (raw).

By default, all types are enabled. It is controlled  by "type" parameter of the boot-loader.

Embedded TCP/IP stack: FNET Bootloader Quick Start

Best regards,

Andrey Butok

0 Kudos
1,226 Views
logancheng
Contributor I

Hi Andrey,

it seems you are the author of FNet. On my custom K60N512 board, FNet 2.6.3 bootloader and my application can both be launched successfully with application image type S-Record. I would like to use "raw" image type, and my build tool is IAR which produces output file myApp.out. I set the image type to raw, set the raw to some value, tftp myApp.out to the flash, but myApp cannot be launched successfully, sometimes it showed the message "There is no code on user application startup vector." My questions here are:

1. Can myApp.out be used directly as FNet raw type image? Is any file format conversion necessary?

2. What are the correct steps to download raw type image to flash?

3. What value of the parameter "raw" should be set?

Logan Cheng

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

Hi Logan Cheng,

>What value of the parameter "raw" should be set?

This is the address where you want to write a raw data.

But I guess that you may not use IAR .out file as the FNET raw format. The IAR .out format is not supported.

You can create your parser for IAR .out file (contribution is welcome.) or use S-record file which is the recommended format and supported by all compilers.

Best regards,

Andrey Butok

0 Kudos
1,226 Views
nikhilsarnaik
Contributor III

Hi Andrey,

Is there any difference between .bin file of CW and .sim file of IAR or any of them can work?

Thanks and regards

Nikhil

0 Kudos
1,226 Views
nikhilsarnaik
Contributor III

Hi Andrey,

I tried to use binary file generated in IAR and the FNET bootloader gives following error

TFTP downloading 'image.bin' (bin) from 192.168.204.107 :  |

Writing 504 bytes to 0x2000fef0 failed!

TFTP Error: Code 512 "ðþ".

following are the steps i follow:

1. I change the output format from motorola to binary in output converter option in IAR to generate the .bin binary file

2. I put the image.bin file into the root folder of tftp server then

2. set image 'image.bin'

3. set type bin

4. tftp

Is there anything wrong in the steps i follow?

I am suspecting the bin file generated by IAR is not the same as bin file from CW, but since I do not have CW cannot confirm it.

Any ideas?

Nikhil

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

Most probably these formats are different (IAR and CW).

You should create own file-handler and add it to the TFTP boot-loader (use existing handlers as a reference).

0 Kudos
1,226 Views
nikhilsarnaik
Contributor III

I thought that might be the case

Anyways thanks for the info

Nikhil

0 Kudos
1,226 Views
julie
Contributor I

Hi,

I've been tyying to get FNET working on my TWR-K60F120M board by following Adding an Ethernet Bootloader to Freescale MQX™ How-To Guide V1.4

and have some difficuilites on getting tftp working. Below is the error from the HperTerminal. I have the TFTP flags( FNET_CFG_TFTP_CLN and FNET_CFG_TFTP_SRV) turned on in fnet_user_config.h. My compiler is CW 10.4. I am new to the whole environment, any suggestion/help would be really appreciated.  Julie

************************************************
FNET Bootloader
************************************************
FNET TCP/IP Stack for MK60FN1
Version 2.6.0
Built Aug 20 2013 at 15:49:48 by CW
Copyright by FNET Community
GNU LGPLv3
************************************************
Interface        : eth0
IPv4 Address     : 10.0.110.42 <manual>
IPv4 Subnet mask : 255.255.0.0
IPv4 Gateway     : 10.0.110.1
MAC Address      : 00:04:9f:15:37:48
Link Status      : connected
TX Packets       : 2
RX Packets       : 0
Free Heap        : 14064
DHCP Client      : disabled
TFTP Server      : disabled
Enter 'help' for command list.
************************************************

Startup script: tftps
Error: TFTP Server initialization is failed!
BOOT>

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

The AN is very old - some settings can be obsolete or renamed.

So just use configuration parameters from current FNET release: \fnet\fnet_demos\<cpu>\boot\<compiler>\sources\xxx_user_config.h

0 Kudos
1,226 Views
julie
Contributor I

Andrey,

Thank you for pointing me to the right direction. I found that the UDP flag was set to 0. After I got the tftp running, now I have a new  problem "default_isr entered on vector 3".  Do you have any suggestion for that?  Thank you.

BOOT> erase all

Erasing...

0x00000000 to 0x0000bfff skipped

0x0000c000 to 0x000fefff erased

0x000ff000 to 0x000fffff skipped

BOOT>tftp

Press [Ctr+C] to cancel.

TFTP downloading 'mytest.afx.S19' (srec) from 10.0.110.59 : |

****default_isr entered on vector 3*****

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

On TWR-K60N512 it works => not reproduced.

There is no  official  port to TWR-K60F120M,  so not able to run FNET on it.

So you should step in a  bugger to the problematic place and find a source of problem.

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

FNET 2.3.0 released (http://fnet.sourceforge.net):

- Passed the "IPv6 Ready Logo" Phase-2 IPv6 Core Protocols Conformance Tests, for host: IPv6 Ready Logo Phase-1/Phase-2 Self-Test Report
- Added the Path MTU Discovery for IPv6, which is disabled /enabled by FNET_CFG_IP6_PMTU_DISCOVERY.
- Other minor changes.

FNET 2.2.1 released:

- Fixed data corruption bug, that can occur using UDP services (e.g. DHCP) with enabled both IP4 and IPv6.
- Updated FreeRTOS specific code. Thanks to Christophe Graulle.
- Added basic BOOTP protocol support, as special mode of DHCP client service. Thanks to Peter Baertschi.
- New configuration parameters:
    - FNET_CFG_DHCP_BOOTP defines DHCP or BOOTP protocol to be used.
    - FNET_CFG_DHCP_PORT_CLIENT defines DHCP client port number.
    - FNET_CFG_DHCP_PORT_SERVER defines DHCP server port number.

Best regards,
Andrey Butok

FNET Community

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

FNET 2.6.0 released (http://fnet.sourceforge.net):

- Added Multicast Listener Discovery Version 1 (MLDv1), enabled by FNET_CFG_MLD.

- New IPv6 socket options:

     - IPV6_MULTICAST_HOPS changes the hop limit to use for outgoing multicast IPv6 packets.

     - IPV6_JOIN_GROUP joins a multicast group on a specified local interface.

     - IPV6_LEAVE_GROUP leaves a multicast group on a specified interface.

- Other minor changes.

Best regards,
Andrey Butok

FNET Community

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

FNET 2.4.0 released (http://fnet.sourceforge.net):

- Added multiple-session support to the HTTP server.
- Added HW Checksum Calculation support by ENET module (for K60).
- New configuration parameters:
    - FNET_CFG_HTTP_SESSION_MAX defines maximum number of simultaneous user-session that can be handled by the HTTP server.
    - FNET_CFG_CPU_ETH_HW_TX_PROTOCOL_CHECKSUM enables/disables insertion of protocol checksum by Ethernet-module.
    - FNET_CFG_CPU_ETH_HW_TX_IP_CHECKSUM enables/disables insertion of IPv4 header checksum by Ethernet-module.
    - FNET_CFG_CPU_ETH_HW_RX_PROTOCOL_CHECKSUM enables/disables discard of frames with wrong protocol checksum by Ethernet-module.
    - FNET_CFG_CPU_ETH_HW_RX_IP_CHECKSUM enables/disables discard of frames with wrong IPv4 header checksum by Ethernet-module.
    - FNET_CFG_CPU_ETH_HW_RX_MAC_ERR enables/disables discard of frames with MAC layer errors by Ethernet-module.
- Other minor changes.

Best regards,
Andrey Butok

FNET Community

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

FNET 2.5.0 released (http://fnet.sourceforge.net):

- Added support of Kinetis K70FN1M0 (TWR-K70F120M board).

- Added support of Modelo MCF54418 (TWR-MCF5441x board).

- Added support of two MAC/Ethernet modules by FEC driver (for MCF54418).

- Added support of uCOS-III, thanks to Jon Elliott.

- Added "bind/unbind" IPv6 address commands to the Shell Demo.

- Added "cookie" parameter to interrupt handlers.

- New/renamed configuration parameters:

    - FNET_CFG_CPU_ETH_RMII enables/disables RMII mode.

    - FNET_CFG_CPU_ETH_RMII_10T sets 10Mbps or 100Mbps in RMII mode.

    - FNET_CFG_CPU_ETHx enables/disables Externet-x module.

    - FNET_CFG_CPU_ETHx_MAC_ADDR defines default MAC address of Externet-x module.

    - FNET_CFG_CPU_ETHx_MTU defines default MTU of Externet-x module.

    - FNET_CFG_CPU_ETHx_PHY_ADDR defines default PHY address used by Ethernet-x module.

    - FNET_CFG_CPU_ETH_PHY_ADDR_DISCOVER enables/disables PHY addresses discover.

    - FNET_CFG_DEFAULT_IF defines default interface.

    - FNET_CFG_OS_TIMER enables/disables OS-specific timer initialization/release.

    - Others.

- Other internal changes.

Andrey Butok

FNET Community

0 Kudos
1,226 Views
OliverSedlacek
Contributor III

Andrey, can I download FNET 2.5 from freescale? The zoom downloader on sourceforge is blocked by corporate policy and I can't get the direct download links to bypass it.

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

Hi Oliver,

FNET is not supported by Freescale, even it is not allowed to put link to the FNET home page.

It is developed and supported by personal initiative (let say "FNET community").

So you do not have any chance to download it from Freescale web-site.

The only source is fnet.sf.net.

Best regards,

Andrey Butok

0 Kudos
1,226 Views
OliverSedlacek
Contributor III

Andrey, I downloaded FNET from http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4367SW.zip?fsrch=1&sr=1 . I don't know why the corporate Mordacs block the sourceforge FNET download page, but I'll try getting the latest version downloaded.

Oliver

0 Kudos
1,226 Views
butok
NXP Employee
NXP Employee

Hi Oliver,

This version is very old one - do not use it (it is funny, all FNET names were deleted from the AN).

I have put it to my DropBox for you. Take it here:

https://dl.dropboxusercontent.com/u/36074424/FNET-2.5.0-Setup.exe

Best regards,

Andrey Butok

0 Kudos
1,225 Views
OliverSedlacek
Contributor III

Thank you

0 Kudos
1,225 Views
butok
NXP Employee
NXP Employee

FNET 2.2.0 released (http://fnet.sourceforge.net):

- Added support of the Qorivva Power Architecture:

    - Added support of MPC5668G.

    - Added support of CodeWarrior Development Studio for MPC55xx/MPC56xx Ver. 2.10.

    - Added Shell and Benchmark demo-applications for MPC5668GKIT. Without on-chip flash driver.

- Other minor changes.

FNET 2.1.1 released:
- Improved IPv6 support. Passed 80% of the "IPv6 Ready Logo" Phase-2 (Golden) Tests.
- Fixed wrong IPv4 group address mapping to Ethernet multicast address, for little-endian platform (Kinetis).


Merry Christmas and Happy New Year,
Andrey Butok

FNET Community