zndz410 发表于 2014-9-12 11:58:54

【代码分亨】 【K70例程】011网络裸机程序webserver

本帖最后由 zndz410 于 2014-9-12 12:00 编辑

【K70例程】011网络裸机程序webserver

使用J-LinkV8
MDKKeil版本4.71
调试串口波特率:115200
基于MDKK70-EK_T43硬件平台
关键词: Freescale 飞思卡尔 Kinetis Cortex-M4 K70 MDKK70 核心板 开发板 例程 网络 webserver 以太网

实验现象:
编译并下载程序,路由器通过网线连接K70EK_T43开发板的网线接口,在PC上打开IE输入http://twr_k70f120m/
默认用户名: admin
默认密码: <空>。

This is a HTTP Server example. It shows you how to use the
Web Server CGI interface as well.

Use this example to connect TWR-K70F120M Board to a LAN with DHCP
server (most LANs have this). This example will configure the
LAN network parameters automatically using a DHCP protocol.

You may connect TWR-K70F120M Board to PC directly over a crosslink
network cable. In this case configure a PC to use a static
IP address 192.168.0.101

If after a timeout of 5 seconds DHCP did not obtain an IP address,
this example will use a static IP address 192.168.0.100

The WEB pages are included into the project under HTTP Files
group. You can simply add or remove a page or image. Web files
which are compiled into the project are added to the 'Web.inp'
Web Converter input file.

To test this example, open your web browser and enter the
address http://twr_k70f120m/ or http://<boards IP address>

Default user    : admin
Default password: <none>

You can change the password at runtime on page 'system'

The HTTP_demo example is available for several targets:

MK70F120M:
    Standalone (no RTX Kernel) application.
    Program code is loaded into on-chip flash.

MK70F120M Debug:
    Standalone (no RTX Kernel) with debug output.
    Debug level configured in Net_Debug.c configuration file.
    Connect a serial cable to RS232 UART1 port using
    HyperTerminal at 115200 baud, 8-bits, no parity,
    1 stop bit, flowcontrol none.

MK70F120M RTX:
    The same example configured for RTX Kernel.
此K70_http例子基于Keil的RL_ARM





fengyunyu 发表于 2014-9-12 12:24:01

是keil官方K70开发板配套例程?

步之道 发表于 2014-9-12 12:51:28


这个web服务器支持外网访问吗?如果可以是怎么做的?还有怎么解决MAC地址的。以前用STM32做了一个web服务器,但是不能连接外网访问。

看楼主发的这一批帖子,明明可以放在一起发的,为什么要区分开发呢?资料也不好搜集。

WaterToSea 发表于 2014-9-12 13:02:06

学习一下

zndz410 发表于 2014-9-12 15:42:29

fengyunyu 发表于 2014-9-12 12:24
是keil官方K70开发板配套例程?

这个是安米电子的MDKK70-EK_T43开发板的配套例程。

该板采用K70核心板,CPU具备1MB片上FLASH,128KB SRAM,同时核心板板载128MB DDR2,256MB NAND。底板具备USB OTG,ADC/DAC,Key/LED,串口,TF卡座,10/100M以太网,电容触摸按键,温度传感器,4.3寸480272 TFTLCD带电阻触摸屏,JTAG/SWD调试接口。

bbstr 发表于 2014-9-12 16:26:18

这么好的配置,搞什么裸机,必须uClinux啊,uboot放内部flash上,uImage和rootfs放nand上,内存又那么大,内部的sram作为高速缓冲区专用

ysyt_3 发表于 2014-9-12 22:50:26

还以为是基于lwip的,结果用的还是自己生成的lib文件
页: [1]
查看完整版本: 【代码分亨】 【K70例程】011网络裸机程序webserver