Note: build test program for mBed

python workspace_tools/make.py -m K64F -t GCC_ARM -p 47
Building project HELLO (K64F, GCC_ARM)
Compile: main.cpp
Compile: test_env.cpp
Link: hello
Elf2Bin: hello
Image: ${your mbed}/test/K64F/GCC_ARM/MBED_10/hello.bin

if you just run ‘python workspace_tools/make.py’, the script will show the below message
total provide125 items now (May 3, 2015)

———————————————————————————————
[ 0] MBED_A1: Basic
[ 1] MBED_A2: Semihost file system
[ 2] MBED_A3: C++ STL
[ 3] MBED_A4: I2C TMP102
[ 4] MBED_A5: DigitalIn DigitalOut
[ 5] MBED_A6: DigitalInOut
[ 6] MBED_A7: InterruptIn
[ 7] MBED_A8: Analog
[ 8] MBED_A9: Serial Echo at 115200
[ 9] MBED_A10: PortOut PortIn
[ 10] MBED_A11: PortInOut
[ 11] MBED_A12: SD File System
[ 12] MBED_A13: I2C MMA7660 accelerometer
[ 13] MBED_A14: I2C Master
[ 14] MBED_A15: I2C Slave
[ 15] MBED_A16: SPI Master
[ 16] MBED_A17: SPI Slave
[ 17] MBED_A18: Interrupt vector relocation
[ 18] MBED_A19: I2C EEPROM read/write test
[ 19] MBED_A20: I2C master/slave test
[ 20] MBED_A21: Call function before main (mbed_main)
[ 21] MBED_A22: SPIFI for LPC4088 (test 1)
[ 22] MBED_A23: SPIFI for LPC4088 (test 2)
[ 23] MBED_A24: Serial echo with RTS/CTS flow control
[ 24] MBED_A25: I2C EEPROM line read/write test
[ 25] MBED_A26: AnalogIn potentiometer test
[ 26] MBED_A27: CAN loopback test
[ 27] MBED_BLINKY: Blinky
[ 28] MBED_BUS: Blinky BUS
[ 29] MBED_BUSOUT: BusOut
[ 30] BENCHMARK_1: Size (c environment)
[ 31] BENCHMARK_2: Size (float math)
[ 32] BENCHMARK_3: Size (printf)
[ 33] BENCHMARK_4: Size (mbed libs)
[ 34] BENCHMARK_5: Size (all)
[ 35] PERF_1: SD Stdio R/W Speed
[ 36] PERF_2: SD FileHandle R/W Speed
[ 37] PERF_3: SD FatFS R/W Speed
[ 38] MBED_1: I2C SRF08
[ 39] MBED_2: stdio
[ 40] MBED_3: PortOut
[ 41] MBED_4: Sleep
[ 42] MBED_5: PWM
[ 43] MBED_6: SW Reset
[ 44] MBED_7: stdio benchmark
[ 45] MBED_8: SPI
[ 46] MBED_9: Sleep Timeout
[ 47] MBED_10: Hello World
[ 48] MBED_11: Ticker Int
[ 49] MBED_12: C++
[ 50] MBED_13: Heap & Stack
[ 51] MBED_14: Serial Interrupt
[ 52] MBED_15: RPC
[ 53] MBED_16: RTC
[ 54] MBED_17: Serial Interrupt 2
[ 55] MBED_18: Local FS Directory
[ 56] MBED_19: SD FS Directory
[ 57] MBED_20: InterruptIn 2
[ 58] MBED_21: freopen Stream
[ 59] MBED_22: Semihost
[ 60] MBED_23: Ticker Int us
[ 61] MBED_24: Timeout Int us
[ 62] MBED_25: Time us
[ 63] MBED_26: Integer constant division
[ 64] MBED_27: SPI ADXL345
[ 65] MBED_28: Interrupt chaining (InterruptManager)
[ 66] MBED_29: CAN network test
[ 67] MBED_30: CAN network test using interrupts
[ 68] MBED_31: PWM LED test
[ 69] MBED_32: Pin toggling
[ 70] MBED_33: C string operations
[ 71] MBED_34: Ticker Two callbacks
[ 72] CMSIS_RTOS_1: Basic
[ 73] CMSIS_RTOS_2: Mutex
[ 74] CMSIS_RTOS_3: Semaphore
[ 75] CMSIS_RTOS_4: Signals
[ 76] CMSIS_RTOS_5: Queue
[ 77] CMSIS_RTOS_6: Mail
[ 78] CMSIS_RTOS_7: Timer
[ 79] CMSIS_RTOS_8: ISR
[ 80] RTOS_1: Basic thread
[ 81] RTOS_2: Mutex resource lock
[ 82] RTOS_3: Semaphore resource lock
[ 83] RTOS_4: Signals messaging
[ 84] RTOS_5: Queue messaging
[ 85] RTOS_6: Mail messaging
[ 86] RTOS_7: Timer
[ 87] RTOS_8: ISR (Queue)
[ 88] RTOS_9: SD File write-read
[ 89] NET_1: TCP client hello world
[ 90] NET_2: NIST Internet Time Service
[ 91] NET_3: TCP echo server
[ 92] NET_4: TCP echo client
[ 93] NET_5: UDP echo server
[ 94] NET_6: UDP echo client
[ 95] NET_7: HTTP client hello world
[ 96] NET_8: NTP client
[ 97] NET_9: Multicast Send
[ 98] NET_10: Multicast Receive
[ 99] NET_11: Broadcast Send
[100] NET_12: Broadcast Receive
[101] NET_13: TCP client echo loop
[102] NET_14: UDP PHY/Data link layer
[103] UB_1: u-blox USB modem: HTTP client
[104] UB_2: u-blox USB modem: SMS test
[105] USB_1: Mouse
[106] USB_2: Keyboard
[107] USB_3: Mouse_Keyboard
[108] USB_4: Serial Port
[109] USB_5: Generic HID
[110] USB_6: MIDI
[111] USB_7: AUDIO
[112] CMSIS_DSP_1: FIR
[113] DSP_1: FIR
[114] KL25Z_1: LPTMR
[115] KL25Z_2: PIT
[116] KL25Z_3: TSI Touch Sensor
[117] KL25Z_4: RTC
[118] KL25Z_5: MMA8451Q accelerometer
[119] EXAMPLE_1: /dev/null
[120] EXAMPLE_2: FS + RTOS
[121] UT_1: Basic
[122] UT_2: Semihost file system
[123] UT_3: General tests
[124] UT_BUSIO: BusIn BusOut
[125] DTCT_1: Simple detect test
Usage: make.py [options]

Options:
-h, –help show this help message and exit
-m MCU, –mcu=MCU build for the given MCU (APPNEARME_MICRONFCBOARD,
ARCH_BLE, ARCH_GPRS, ARCH_MAX, ARCH_PRO, ARM_MPS2,
ARM_MPS2_M0, ARM_MPS2_M0P, ARM_MPS2_M1, ARM_MPS2_M3,
ARM_MPS2_M4, ARM_MPS2_M7, DELTA_DFCM_NNN40,
DELTA_DFCM_NNN40_OTA, DISCO_F051R8, DISCO_F100RB,
DISCO_F303VC, DISCO_F334C8, DISCO_F401VC,
DISCO_F407VG, DISCO_F429ZI, DISCO_L053C8,
EFM32GG_STK3700, EFM32HG_STK3400, EFM32LG_STK3600,
EFM32WG_STK3800, EFM32ZG_STK3200, HRM1017, K20D50M,
K22F, K64F, KL05Z, KL25Z, KL43Z, KL46Z, LPC1114,
LPC11C24, LPC11U24, LPC11U24_301, LPC11U34_421,
LPC11U35_401, LPC11U35_501, LPC11U35_Y5_MBUG,
LPC11U37H_401, LPC11U37_501, LPC11U68, LPC1347,
LPC1549, LPC1768, LPC2368, LPC4088, LPC4088_DM,
LPC4330_M0, LPC4330_M4, LPC4337, LPC810, LPC812,
LPC824, LPCCAPPUCCINO, MAX32600MBED, MAXWSNENV,
MOTE_L152RC, MTS_DRAGONFLY_F411RE, MTS_GAMBIT,
MTS_MDOT_F405RG, MTS_MDOT_F411RE, NRF51822,
NRF51822_BOOT, NRF51822_OTA, NRF51822_Y5_MBUG,
NRF51_DK, NRF51_DK_BOOT, NRF51_DK_OTA, NRF51_DONGLE,
NUCLEO_F030R8, NUCLEO_F070RB, NUCLEO_F072RB,
NUCLEO_F091RC, NUCLEO_F103RB, NUCLEO_F302R8,
NUCLEO_F303RE, NUCLEO_F334R8, NUCLEO_F401RE,
NUCLEO_F411RE, NUCLEO_L053R8, NUCLEO_L073RZ,
NUCLEO_L152RE, OC_MBUINO, RBLAB_BLENANO,
RBLAB_NRF51822, RZ_A1H, SEEED_TINY_BLE,
SEEED_TINY_BLE_BOOT, SEEED_TINY_BLE_OTA, SSCI824,
STM32F3XX, STM32F407, TEENSY3_1, UBLOX_C027,
UBLOX_C029, WALLBOT_BLE, XADOW_M0, XBED_LPC1768)
-t TOOLCHAIN, –tool=TOOLCHAIN
build using the given TOOLCHAIN (ARM, GCC_ARM, GCC_CR,
GCC_CS, GCC_CW_EWL, GCC_CW_NEWLIB, IAR, uARM)
-c, –clean clean the build directory
-o OPTIONS, –options=OPTIONS
Add a build option (“save-asm": save the asm generated
by the compiler, “debug-info": generate debugging
information, “analyze": run Goanna static code
analyzer")
-p PROGRAM The index of the desired test program: [0-125]
-n PROGRAM_NAME The name of the desired test program
-j JOBS, –jobs=JOBS Number of concurrent jobs (default 1). Use 0 for auto
based on host machine’s number of CPUs
-v, –verbose Verbose diagnostic output
–silent Silent diagnostic output (no copy, compile
notification)
-D MACROS Add a macro definition
–automated Automated test
–host=HOST_TEST Host test
–extra=EXTRA Extra files
–peripherals=PERIPHERALS
Required peripherals
–dep=DEPENDENCIES Dependencies
–source=SOURCE_DIR The source (input) directory
–duration=DURATION Duration of the test
–build=BUILD_DIR The build (output) directory
-d DISK, –disk=DISK The mbed disk
-s SERIAL, –serial=SERIAL
The mbed serial port
-b BAUD, –baud=BAUD The mbed serial baud rate
-L, –list-tests List available tests in order and exit
–rtos Link with RTOS library
–eth Link with Ethernet library
–usb_host Link with USB Host library
–usb Link with USB Device library
–dsp Link with DSP library
–fat Link with FS ad SD card file system library
–ublox Link with U-Blox library
–testlib Link with mbed test library
-l LINKER_SCRIPT, –linker=LINKER_SCRIPT
use the specified linker script

廣告

一個回應 to “Note: build test program for mBed”

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: