资源简介
NXP LPC1768作为实验平台,方便各位在不同软件平台下测试使用网络,希望对于想要把lwip移植到stm32或其他平台的朋友有帮助哦。下面是我整理的三种平台下的网络AD检测例程
代码片段和文件信息
import os
# toolchains options
ARCH=‘arm‘
CPU=‘cortex-m3‘
CROSS_TOOL=‘keil‘
if os.getenv(‘RTT_CC‘):
CROSS_TOOL = os.getenv(‘RTT_CC‘)
if CROSS_TOOL == ‘gcc‘:
PLATFORM = ‘gcc‘
EXEC_PATH = ‘C:/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin‘
elif CROSS_TOOL == ‘keil‘:
PLATFORM = ‘armcc‘
EXEC_PATH = ‘C:/Keil‘
elif CROSS_TOOL == ‘iar‘:
PLATFORM = ‘iar‘
IAR_PATH = ‘C:/Program Files/IAR Systems/embedded Workbench 6.0 Evaluation‘
if os.getenv(‘RTT_EXEC_PATH‘):
EXEC_PATH = os.getenv(‘RTT_EXEC_PATH‘)
BUILD = ‘debug‘
if PLATFORM == ‘gcc‘:
# toolchains
PREFIX = ‘arm-none-eabi-‘
CC = PREFIX + ‘gcc‘
AS = PREFIX + ‘gcc‘
AR = PREFIX + ‘ar‘
link = PREFIX + ‘gcc‘
TARGET_EXT = ‘elf‘
SIZE = PREFIX + ‘size‘
OBJDUMP = PREFIX + ‘objdump‘
OBJCPY = PREFIX + ‘objcopy‘
DEVICE = ‘ -mcpu=cortex-m3 -mthumb‘
CFLAGS = DEVICE
AFLAGS = ‘ -c‘ + DEVICE + ‘ -x assembler-with-cpp‘
LFLAGS = DEVICE + ‘ -Wl--gc-sections-Map=rtthread-lpc17xx.map-cref-uReset_Handler -T rtthread-lpc17xx.ld‘
CPATH = ‘‘
LPATH = ‘‘
if BUILD == ‘debug‘:
CFLAGS += ‘ -O0 -gdwarf-2‘
AFLAGS += ‘ -gdwarf-2‘
else:
CFLAGS += ‘ -O2‘
POST_ACTION = OBJCPY + ‘ -O binary $TARGET rtthread.bin\n‘ + SIZE + ‘ $TARGET \n‘
elif PLATFORM == ‘armcc‘:
# toolchains
CC = ‘armcc‘
AS = ‘armasm‘
AR = ‘armar‘
link = ‘armlink‘
TARGET_EXT = ‘axf‘
DEVICE = ‘ --device DARMP1‘
CFLAGS = DEVICE + ‘ --apcs=interwork‘
AFLAGS = DEVICE
LFLAGS = DEVICE + ‘ --info sizes --info totals --info unused --info veneers --list rtthread-lpc17xx.map --scatter rtthread-lpc17xx.sct‘
CFLAGS += ‘ -I‘ + EXEC_PATH + ‘/ARM/RV31/INC‘
LFLAGS += ‘ --libpath ‘ + EXEC_PATH + ‘/ARM/RV31/LIB‘
EXEC_PATH += ‘/arm/bin40/‘
if BUILD == ‘debug‘:
CFLAGS += ‘ -g -O0‘
AFLAGS += ‘ -g‘
else:
CFLAGS += ‘ -O2‘
POST_ACTION = ‘fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET‘
elif PLATFORM == ‘iar‘:
# toolchains
CC = ‘iccarm‘
AS = ‘iasmarm‘
AR = ‘iarchive‘
link = ‘ilinkarm‘
TARGET_EXT = ‘out‘
DEVICE = ‘ --thumb‘
CFLAGS = DEVICE
CFLAGS += ‘ --diag_suppress Pa050‘
CFLAGS += ‘ --no_cse‘
CFLAGS += ‘ --no_unroll‘
CFLAGS += ‘ --no_inline‘
CFLAGS += ‘ --no_code_motion‘
CFLAGS += ‘ --no_tbaa‘
CFLAGS += ‘ --no_clustering‘
CFLAGS += ‘ --no_scheduling‘
CFLAGS += ‘ --debug‘
CFLAGS += ‘ --endian=little‘
CFLAGS += ‘ --cpu=Cortex-M3‘
CFLAGS += ‘ -e‘
CFLAGS += ‘ --fpu=None‘
CFLAGS += ‘ --dlib_config “‘ + IAR_PATH + ‘/arm/INC/c/DLib_Config_Normal.h“‘
CFLAGS += ‘ -Ol‘
CFLAGS += ‘ --use_c++_inline‘
AFLAGS = ‘‘
AFLAGS += ‘ -s+‘
AFLAGS += ‘ -w+‘
AFLAGS += ‘ -r‘
AFLAGS += ‘ --cpu Cortex-M3‘
AFLAGS += ‘ --fpu None‘
LFLAGS = ‘ --config rtthread-lpc17xx.icf‘
LFLAGS += ‘ --semihosting‘
LFLAGS += ‘ --entry
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1724 2014-04-24 17:15 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\applications\application.c
文件 769 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\applications\platform.c
文件 495 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\applications\platform.h
文件 192 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\applications\SConsc
文件 2654 2014-04-23 16:52 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\applications\startup.c
文件 16489 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\CoreSupport\core_cm3.c
文件 83896 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\CoreSupport\core_cm3.h
文件 34796 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\LPC17xx.h
文件 10410 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\startup\arm\startup_LPC17xx.s
文件 7586 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\startup\gcc\startup_LPC17xx.s
文件 9769 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\startup\iar\startup_LPC17xx.s
文件 22618 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\system_LPC17xx.c
文件 1750 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\system_LPC17xx.h
文件 39936 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\License.doc
文件 856 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\CMSIS\SConsc
文件 2036 2014-06-05 14:56 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\board.c
文件 529 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\board.h
文件 11393 2014-06-05 13:49 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\emac.c
文件 18241 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\emac.h
文件 666 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\led.c
文件 169 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\led.h
文件 328 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\SConsc
文件 14165 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\sd.c
文件 1393 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\sd.h
文件 6097 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\spi.c
文件 907 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\spi.h
文件 7638 2014-04-24 09:46 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\uart.c
文件 75 2014-01-06 22:38 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\uart.h
文件 1332 2014-06-05 16:42 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\drivers\webpage.h
文件 578 2014-04-23 14:10 【06】宝马1768_网页AD检测(2014.06.05)\bsp\lpc176x\Jli
............此处省略579个文件信息
相关资源
- STM32 LwIP UDP+Artnet
- STM32F107-lwip-UDP-client发送数据
- STM32_FreeRTOS+LwIP
- STM32F407+FreeRTOS+LAN8720+LWIP1.4.1+DHCP+UDP+标
- STM32F407+FreeRTOS+LAN8720+LWIP1.4.1+DHCP+标准
- STM32F4+ucosIII+LWIP+DP83848
- STM32F407+LWIP+DP83848移植例程
- STM32F4x7+freertos+lwip+ssl+MQTT完整代码
- stm32下的ftp服务器
- LWIP之TCP Client
- stm32f4xx+freeRTOS+LWIP移植
- lwip pppos拨号上网,通过串口ppp拨号上
- STM32407_UCOSIII_LWIP
- stm32+ lwip +dm9000 +tcpserver+client
- 基于stm32f407实现的modbus/tcp
- STM32F4x7+freertos+lwip+ssl+MQTT-(MDK5)稳定
- rtthread详解
- 嵌入式网络那些事:LwIP协议深度剖析
- stm32f407网络通讯工程 Freertos+lwip的t
- STM32F407+LAN8720+LWIP移植freemodbus TCP.zip
- STM32+FreeRtos+Lwip+ENC28J60
- STM32+LWIP+WEB_SSI_CGI
- stm32的bootloader及移植的rtthread
- lwip资料合集-嵌入式网络的那些事:
- GD32F4xx单片机-FreeRTOS10.2.0-LWIP2.0.2移植
- LWIP-freertos.rarSTM32F7芯片,lwip实现热插
- STM32F407+FREERTOS+LWIP+RMII_KSZ8031+SDIO_FATF
- STM32F4x7+freertos+lwip+ssl+MQTT(MDK5)源码
- lwip+ucosIII+stm32+keil
- 嵌入式网络那些事——LwIP开发基础与
评论
共有 条评论