FNET for K60

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

FNET for K60

Jump to solution
15,335 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,819 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,484 Views
Mohsin455
Contributor IV

Hi Andrey,

              I am using FNET stack 1.2.2 and it works fine. I found that the optimization is set to "-Ol" and would like to use "-Oh". Is there any reason not to use high optimization and to what extent it has been tested using high optimization ?

Thanks,

Mohsin

0 Kudos
1,484 Views
butok
NXP Employee
NXP Employee

Hi Mohsin,

Only for CW10.2 K60 projects the optimization level is set to 1. Just because of issue in this compiler.

I am going to recheck it with the latest CW10.3, during nearest FNET release. If it will be OK, the optimization level will be increased.

All other compilers (IAR, Keil, CW) and platforms,  except CW10.2-K60, use highest optimization level for release targets.

Best regards,

Andrey Butok

FNET Community

0 Kudos
1,484 Views
Mohsin455
Contributor IV

Hi Andrey,

               Thanks for your reply. I want to know how to select the release build for version 1.2.2 using IAR. There is only one build and it uses "-Ol". I just want to make sure I use all the same flags as you have done during your testing.

Thanks,

Mohsin

0 Kudos
1,484 Views
butok
NXP Employee
NXP Employee

Hi Mohsin,

Just set the optimization level to High, in Project settings. I guess all other parameters are default (I use IAR 6.5.2.).

Best regards,

Andrey

0 Kudos
1,484 Views
butok
NXP Employee
NXP Employee

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

- Improved IPv6 support. Passing 65% of the "IPv6 Ready Logo" Phase-2 (Golden) Tests.

- Added RAW socket support.

- Added PING service, using RAW sockets and supporting both IPv4 and IPv6.

- Added ping command to the FNET demo applications.

- Added basic FreeRTOS support, contributed by Christophe Graulle.

- Added the IPV6_UNICAST_HOPS socket option.

- Added multiple-session support to the TELNET server.

- Added possibility to set the socket-listen backlog to zero value.

- Added new configuration parameters:

   - FNET_CFG_RAW enables/disables RAW socket support.

   - FNET_CFG_PING enables/disables PING service.

   - FNET_CFG_TELNET_SESSION_MAX defines maximum number of simultaneous user-session that can be handled by the Telnet server.

- Fixed some bugs.


Any contribution to the FNET project is appreciated.:smileyhappy:

Future plans:

- Continue improvement of the IPv6 support. "IPv6 Ready Logo" Phase II (Golden) certification, during 2013.

- Add new platforms. K70 and MPC are top candidates.


Thank you,
     Andrey Butok

     FNET Community

0 Kudos
1,484 Views
butok
NXP Employee
NXP Employee

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

- Added IPv6 support:

    - Passed the legacy "IPv6 Ready" Phase I (Silver) Tests.

    - Added IPv6, ICMPv6, Stateless address autoconfiguration, Neighbor Discovery.

    - Added IPv6 address support to TCP, UDP, Sockets, TFTP, HTTP and Telnet.

    - All Demo applications is able to work with IPv6. Where it was possible, both IPv4 and IPv6 are enabled.

- Added support of uVision 4.5 Keil compiler for K60N512.

- Added events (rebranded SW interrupts).

- New configuration parameters:

    - FNET_CFG_CPU_ETH_ATONEGOTIATION_TIMEOUT defines Ethernet Autonegotiation Timeout.

    - FNET_CFG_OS_ISR allows usage of an OS-specific ISR handler.

    - FNET_CFG_OS_EVENT enables generation OS-specific event.

    - FNET_CFG_IP6 enables/disables IPv6.

    - FNET_CFG_IP4 enables/disables IPv4.

    - FNET_CFG_ND6_NEIGHBOR_CACHE_SIZE defines the maximum number of entries in neighbor cache.

    - FNET_CFG_ND6_PREFIX_LIST_SIZE defines the aximum number of entries in the Prefix list.

    - FNET_CFG_ND6_ROUTER_LIST_SIZE defines the maximum number of entries in the Default Router list.

    - FNET_CFG_ND6_DAD_TRANSMITS defines the number of consecutive Neighbor Solicitation messages sent while performing Duplicate Address Detection.

    - FNET_CFG_NETIF_IP6_ADDR_MAX defines the maximum number of IPv6 addresses per interface.

    - FNET_CFG_IP6_FRAGMENTATION enables/disables IPv6 fragmentation.

    - others.

- New user API functions:

    - fnet_inet_ntop().

    - fnet_inet_pton().

    - fnet_netif_get_by_number().

    - fnet_timer_seconds().

    - fnet_timer_ms().

    - fnet_netif_get_ip6_addr().

    - Many IPv6 specific functions and types.

- A lot of existing API functions and definitions renamed to differentiate IPv4 and IPv6 functionality.

- Added BRTOS support (http://code.google.com/p/brtos/).

- Removed support of IAR Compiler for ColdFire.

- Many other internal changes.

- FBENCH 2.0.1 released (http://fbench.sourceforge.net):

Future plans:

  - "IPv6 Ready" Phase II (Golden) certification, during 2013.

Thank you,
Andrey Butok

0 Kudos
1,484 Views
c_o
Contributor I

Hi all,

Maybe this is not the right place (I'm sorry if it did) but I try to explain my question: I want to use FNET as a bootloader in a project of mine; I need to control some output in the bootloader execution time (some are critical). I'm using K60 on my own board. In my project I use MQX to initialize and control the output in a easy way and I do not have much experience on I/O on K60. Now I'm not able to find the right way to do this simple task. Can anyone help me to point out the right direction?

Thank you very much.

Claudio

0 Kudos
1,484 Views
J2MEJediMaster
Specialist I

Look at this forum thread, which has a bunch of Kinetis-specific application notes. Several of them concern bootloaders. Hopefully one of these notes will give you some example code to guide you.

 

---Tom

 

Postscript: I have set the thread to float to the top of the board, so that people will see it immediately.

 

0 Kudos
1,487 Views
butok
NXP Employee
NXP Employee

Hi Romano,

 

I am working now on Kinetis (K60N512) support.

I cannot promise to you any concrete date for release, as it hardly depends on my workload and interruption by other projects.

 

Thanks,

Andrey Butok

0 Kudos
1,487 Views
romano_r1
Contributor II

Hi Andrey Butok,

Thank You for replay, because I need the bootloader fo K60 I will ask again in August.

 

Regards

Romano

0 Kudos
1,487 Views
butok
NXP Employee
NXP Employee

Hi Roman,

 

You are right (about August).

I am going to release it during this summer.

 

Thanks,

Andrey Butok

0 Kudos
1,487 Views
butok
NXP Employee
NXP Employee

 FNET version 1.0.0 released (http://fnet.sourceforge.net):

- Added Kinetis (ARM Cortex-M4) - MK60N512 support.

- Added support of the IAR Embedded Workbench for ARM compiler, version 6.1.

- Added standard FNET demo applications for the TWR-K60N512 board, including the FNET on-chip Bootloader.

- Added support of little-endian platforms, defined by FNET_CFG_CPU_LITTLE_ENDIAN.

- Added set of functions and macroses that convert values between host and network byte order (like fnet_ntohs(), fnet_htonl() and etc. ).

- Added common on-chip Flash memory driver for Kinetis (FTFL) and ColdFire (CFM) modules.

- Added support of 16 bits and 24 bits addressing in the S-record file format for the FNET Bootloader.

- Added common FEC driver for Kinetis and ColdFire platform.- Improved response of the Telnet server.

- Added the fnet_telnet_close_session() function, which closes the currently active session of the Telnet Server.

- Added the fnet_println() function that prints formatted text to the stream and terminates it by line separator string.

- Added fnet_serial_flush() function that sends/flushes data from the internal stream buffer to the stream client, it has meaning only for buffered streams.

- Applied optimized version of the IP checksum calculation and the fnet_memcpy() function.

- A lot of the FNET_CFG_MCF_xxxx parameters, which are common to all platforms, were renamed to FNET_CFG_CPU_xxxx.

- Many other changes and fixes.

 

Best regards,

Andrey Butok

0 Kudos
1,484 Views
butok
NXP Employee
NXP Employee

 FNET version 1.1.2  released (http://fnet.sourceforge.net):

- FNET Throughput Benchmark tool:  

    * Added "IP Don`t Fragment" option.

    * Added "IP Time to Live" option.

    * Added "Timeout" option (in seconds) for sending.

      User is able to choose to stop the sending after the number of sent

      messages or after the timeout.

    * Added possibility of joining of a UDP Multicast group by the receiver.

    * Added "refresh" button that updates "Local IP address" combo-box,

       in case a network interface enabled/disabled during work of application.  

    * Added acknowledge packet, at the end of UDP data transfer session,

       which contains amount of received data. It helps to determine the amount

       of data was received and lost during UDP transfer.

    * Throughout value in Bytes/sec was replaced by Kbits/sec.

    * Other minor improvements in user interface.

- Added the FNET_CPU_INSTRUCTION_ADDR() macro that sets Thumb bit

  of an address for Kinetis entry point (and does nothing for ColdFire).

   It is used by the FNET boot-loader and fixes issue caused by SREC files

   generated by CodeWarrior for Kinetis.

- Fixed issue in MCF52235 initialization for UART number 2.

- Fixed potential issue in initialization of the DNS client application.

- Fixed potential issue in the fnet_str_to_mac() function.

- Fixed the "strict ANSI C" CW compiler errors.

- Fixed some GCC compiler errors and warnings (even if GCC is not supported).

- Other minor changes/fixes.

 

Thank you,

Andrey Butok

0 Kudos
1,484 Views
butok
NXP Employee
NXP Employee

FYI:

New AN “Ethernet Bootloader for MCU”:

http://www.freescale.com/files/microcontrollers/doc/app_note/AN4367.pdf

 

I have not found any reference to FNET in the text,

but based on source code examples, it is used the FNET Bootloader :smileywink:

 

Best regards,

Andrey Butok

0 Kudos
1,484 Views
romano_r1
Contributor II

Hi Andrey,

 

I am very nice surprised You did FNET so quick (I expected the solution in August). In two days I'm going for vacation, but after that I try to use new version FNET for Kinetis. Thank You very much again for your solution, It will be very helpful for me.

 

Best regards

Romano

0 Kudos
1,487 Views
gustavod
Contributor III

Hi Andrey,

 

Congrats for the great project. Are you intending to release a FNET demo for Codewarrior 10.1 (Kinetis K60N512)?

 

Regards,

Gustavo

0 Kudos
7,820 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

0 Kudos
1,487 Views
hmhr
Contributor I

Hi Andrey, any chance we could see this for CW 10.1?

At the moment I"m struggling to get this going with CW - trying to port from the IAR example (due to the fact I'm a novice on the field!) but it would help a lot my MSc project if I could start with a working demo project for Kinetis in CW 10.1

 

Thanks

 

Hector

0 Kudos
1,487 Views
butok
NXP Employee
NXP Employee

Hi Hector,

 

Yes. The CW10.x support by FNET is very critical and very wanted.

So I have tried to use this fact for creation of outside/customer pressure on FSL BU. It was useful, but official resources for FNET-development are not allocated.

 

In any case, I am going to find time and will add official CW10.x support (and other features) to FNET.
>> any chance we could see this for CW 10.1?

Yes. You will see it but not very soon.

 

BTW:

1) If it is needed something ASAP - to add new feature/protocol, to improve something

or to add support of new compiler, you should ask/push Freescale (your FAE or other valuable contact you have).

2) Any contribution to the FNET project is appreciated.

 

 

Thanks.

Andrey Butok

0 Kudos
1,487 Views
Mohsin455
Contributor IV

Hi Butok,

 

                  I am also interested in FNET bootloader for CW10.x. Can you please let me know when this will be availiable ?

If its going to take long, can you please advise some steps in order to add it to CW10.x.

 

Thanks,

Mohsin

0 Kudos
1,487 Views
Mohsin455
Contributor IV

Anyone from freescale listening please ?

 

We really need some advise to get the FNET working for TWRK60N512 working with CW10.x. At present it only supports iararm6.1 (fnet_demos\mk60n512\boot\iararm6.1).

 

Please help.

 

Thanks,

Mohsin

0 Kudos