搜索
bottom↓
回复: 6

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

[复制链接]

出0入0汤圆

发表于 2014-9-12 11:58:54 | 显示全部楼层 |阅读模式
本帖最后由 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





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

阿莫论坛20周年了!感谢大家的支持与爱护!!

曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……

出100入101汤圆

发表于 2014-9-12 12:24:01 | 显示全部楼层
是keil官方K70开发板配套例程?

出0入0汤圆

发表于 2014-9-12 12:51:28 | 显示全部楼层

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

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

出0入0汤圆

发表于 2014-9-12 13:02:06 | 显示全部楼层
学习一下

出0入0汤圆

 楼主| 发表于 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调试接口。

出0入0汤圆

发表于 2014-9-12 16:26:18 | 显示全部楼层
这么好的配置,搞什么裸机,必须uClinux啊,uboot放内部flash上,uImage和rootfs放nand上,内存又那么大,内部的sram作为高速缓冲区专用

出0入0汤圆

发表于 2014-9-12 22:50:26 | 显示全部楼层
还以为是基于lwip的,结果用的还是自己生成的lib文件
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-6-10 03:58

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表