Menu

#16 Support for MCF5372

open
nobody
None
5
2013-03-26
2013-03-26
No

Environment:
FNet 2.0.0 ported to MCF5372, without any OS
Cross compiled with gcc 4.2.3 (WinXP SP3 + Cygwin 1.7.17-1)

Used Protocols:
ARP, UDP with IP Fragmentation

Network Configuration:
One target (MCF5372) and one Windows Host, both configured with static IPs.

Attached You will find all files based on FNet 2.3.0 and the used fnet_user_config.h.

Changed files:
\fnet_stack\cpu\common\fnet_fec.c
\fnet_stack\cpu\mcf\fnet_mcf.h
\fnet_stack\cpu\mcf\fnet_mcf_config.h
\fnet_stack\cpu\mcf\fnet_mcf_eth.c
\fnet_stack\cpu\mcf\fnet_mcf_isr_inst.c
\fnet_stack\cpu\fnet_cpu.h
\fnet_stack\cpu\fnet_cpu_config.h

Unchanged files:
\fnet_stack\cpu\fnet_cpu.c
\fnet_stack\cpu\common\fnet_fec.h
\fnet_stack\cpu\mcf\fnet_mcf.c
\fnet_stack\cpu\mcf\fnet_mcf_stdlib.c

New files:
\fnet_stack\cpu\mcf\fnet_mcf_low.S
\fnet_stack\cpu\mcf\fnet_mcf_isr_inst.c

Not used files:
\fnet_stack\cpu\mcf\fnet_mcf_cache.c
\fnet_stack\cpu\mcf\fnet_mcf_flash.c
\fnet_stack\cpu\mcf\fnet_mcf_serial.c
\fnet_stack\cpu\mcf\fnet_mcf_checksum.asm Used fnet_checksum.c
\fnet_stack\cpu\mcf\fnet_mcf_low.asm See fnet_mcf_low.S
\fnet_stack\cpu\mcf\fnet_mcf51cn128_config.h
\fnet_stack\cpu\mcf\fnet_mcf52235_config.h
\fnet_stack\cpu\mcf\fnet_mcf52259_config.h
\fnet_stack\cpu\mcf\fnet_mcf5282_config.h

Not ported files:
\fnet_stack\cpu\mcf\fnet_mcf_timer.c Used from separate board support package
\fnet_stack\cpu\mcf\fnet_mcf_isr.asm See fnet_mcf_isr_inst.c

Open points:
CPU timer, flash, cache implementation
ISR: extract vector number to allow calling the timer handler

Discussion

  • Frank Glaser

    Frank Glaser - 2013-03-26
     
  • Andrej Butok

    Andrej Butok - 2013-03-29

    May not accept the changes:
    fnet_mcf.h - cause of used way of registers definitions. Should be used existing aproach.
    fnet_mcf_isr.c - assigned only to FEC interupt??? It MUST be interrupt independent.
    fnet_mcf_isr_inst.c - should be universal.
    fnet_mcf_config.h - may not be changed. All changes of default parameters must be in the fnet_mcf5372_config.h.