Skip to content

Commit 1da499b

Browse files
committed
Add ODINW2 target
1 parent 6b8e810 commit 1da499b

File tree

13 files changed

+459
-0
lines changed

13 files changed

+459
-0
lines changed

boards.txt

+32
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,36 @@ stm32f429.upload.use_1200bps_touch=false
3030
stm32f429.upload.wait_for_upload_port=false
3131
stm32f429.upload.native_usb=false
3232

33+
##############################################################
34+
35+
odinw2.name=ODINW2 Mbed target
36+
odinw2.build.core=arduino
37+
odinw2.build.crossprefix=arm-none-eabi-
38+
odinw2.build.compiler_path={runtime.tools.arm-none-eabi-gcc.path}/bin/
39+
40+
odinw2.build.variant=MTB_UBLOX_ODIN_W2
41+
odinw2.build.mcu=cortex-m4
42+
odinw2.build.extra_flags=
43+
odinw2.build.architecture=cortex-m4
44+
odinw2.build.board=MTB_UBLOX_ODIN_W2
45+
odinw2.build.ldscript=linker_script.ld
46+
odinw2.compiler.mbed.defines=@{build.variant.path}/defines.txt
47+
odinw2.compiler.mbed.ldflags=@{build.variant.path}/ldflags.txt
48+
odinw2.compiler.mbed.cflags=@{build.variant.path}/cflags.txt
49+
odinw2.compiler.mbed.cxxflags=@{build.variant.path}/cxxflags.txt
50+
odinw2.compiler.mbed.includes=${build.variant.path}/includes.txt
51+
odinw2.compiler.mbed.extra_ldflags=-Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
52+
odinw2.compiler.mbed={build.variant.path}/libs/libmbed.a
53+
odinw2.vid.0=0x8087
54+
odinw2.pid.0=0x101f
55+
56+
odinw2.upload.via_ssh=true
57+
odinw2.upload.tool=openocd
58+
odinw2.upload.config=-f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg
59+
odinw2.upload.protocol=sam-ba
60+
odinw2.upload.maximum_size=10000000
61+
odinw2.upload.use_1200bps_touch=false
62+
odinw2.upload.wait_for_upload_port=false
63+
odinw2.upload.native_usb=false
64+
3365
###############################################################
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name=WiFiODINW2
2+
version=1.0
3+
author=Arduino
4+
maintainer=Arduino <info@arduino.cc>
5+
sentence=WiFi wrapper for mbed ODINW2 class
6+
paragraph=
7+
category=Other
8+
url=http://www.arduino.cc/en/Reference/WiFi
9+
architectures=mbed,ArduinoCore-mbed
10+
precompiled=true
11+
ldflags=-lublox-odin-w2-driver
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "Arduino.h"
2+
#include "WiFi.h"
3+
4+
using namespace mbed;
5+
6+
#include "OdinWiFiInterface.h"
7+
8+
static OdinWiFiInterface wifi_if;
9+
arduino::WiFiClass WiFi(&wifi_if);

libraries/WiFiODINW2/src/WiFiODINW2.h

Whitespace-only changes.
Binary file not shown.

variants/MTB_UBLOX_ODIN_W2/cflags.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
-std=gnu99
2+
-DMBED_ROM_SIZE=0x200000
3+
-DMBED_ROM_START=0x8000000
4+
-Os
5+
-Wall
6+
-Wextra
7+
-Wno-missing-field-initializers
8+
-Wno-unused-parameter
9+
-c
10+
-fdata-sections
11+
-ffunction-sections
12+
-fmessage-length=0
13+
-fno-builtin
14+
-fno-delete-null-pointer-checks
15+
-fno-exceptions
16+
-fomit-frame-pointer
17+
-funsigned-char
18+
-g1
19+
-mcpu=cortex-m4
20+
-mfloat-abi=softfp
21+
-mfpu=fpv4-sp-d16
22+
-mthumb
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
-Wvla
2+
-fno-rtti
3+
-std=gnu++98
4+
-DMBED_ROM_SIZE=0x200000
5+
-DMBED_ROM_START=0x8000000
6+
-Os
7+
-Wall
8+
-Wextra
9+
-Wno-missing-field-initializers
10+
-Wno-unused-parameter
11+
-c
12+
-fdata-sections
13+
-ffunction-sections
14+
-fmessage-length=0
15+
-fno-builtin
16+
-fno-delete-null-pointer-checks
17+
-fno-exceptions
18+
-fomit-frame-pointer
19+
-funsigned-char
20+
-g1
21+
-mcpu=cortex-m4
22+
-mfloat-abi=softfp
23+
-mfpu=fpv4-sp-d16
24+
-mthumb
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DDEVICE_CAN=1 -DDEVICE_I2C=1 -DDEVICE_I2C_ASYNCH=1 -DTARGET_MTB_UBLOX_ODIN_W2 -DTARGET_STM -D__CMSIS_RTOS -DDEVICE_RTC=1 -D__CORTEX_M4 -DDEVICE_SLEEP=1 -DMBEDTLS_MD4_C -DTARGET_RTOS_M4_M7 -DDEVICE_SERIAL=1 -DTARGET_STM32F439 -DDEVICE_SPI_ASYNCH=1 -DARM_MATH_CM4 -DTARGET_RELEASE -DTARGET_STM_EMAC -DMBED_BUILD_TIMESTAMP=1542210412.83555 -DMBEDTLS_ARC4_C -DDEVICE_SERIAL_FC=1 -D__MBED_CMSIS_RTOS_CM -DTARGET_CORTEX -DDEVICE_WIFI=1 -DMBEDTLS_CONFIG_HW_SUPPORT -DTARGET_MODULE_UBLOX_ODIN_W2 -DDEVICE_EMAC=1 -DTARGET_CORDIO -D__MBED__=1 -DFEATURE_BLE=1 -DTOOLCHAIN_GCC -DCB_FEATURE_802DOT11W -DTARGET_CORDIO_ODIN_W2 -DWLAN_ENABLED -DHSE_VALUE=24000000 -DSUPPORT_80211D_ALWAYS -DCB_CHIP_WL18XX -DDEVICE_PORTINOUT=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_LPTICKER=1 -DHSE_STARTUP_TIMEOUT=5000 -DDEVICE_USTICKER=1 -DDEVICE_SPISLAVE=1 -DMBEDTLS_SHA1_C -DDEVICE_STDIO_MESSAGES=1 -DMBEDTLS_MD5_C -DDEVICE_INTERRUPTIN=1 -DMBEDTLS_DES_C -DCB_FEATURE_802DOT11R -DTARGET_STM32F439xx -DDEVICE_ANALOGIN=1 -DTARGET_FAMILY_STM32 -DTARGET_LIKE_MBED -DCB_INTERFACE_SDIO -DDEVICE_PORTIN=1 -D__FPU_PRESENT=1 -DDEVICE_TRNG=1 -DTARGET_M4 -DTARGET_STM32F439xI -DDEVICE_SPI=1 -DTARGET_STM32F4 -DDEVICE_PORTOUT=1 -DTARGET_STM32F439ZI -DTARGET_CORTEX_M -DDEVICE_PWMOUT=1 -DTARGET_LIKE_CORTEX_M4 -DTOOLCHAIN_GCC_ARM -DDEVICE_FLASH=1

variants/MTB_UBLOX_ODIN_W2/includes.txt

+253
Large diffs are not rendered by default.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-Wl,--gc-sections
2+
-Wl,--wrap,_calloc_r
3+
-Wl,--wrap,_free_r
4+
-Wl,--wrap,_malloc_r
5+
-Wl,--wrap,_memalign_r
6+
-Wl,--wrap,_realloc_r
7+
-Wl,--wrap,atexit
8+
-Wl,--wrap,exit
9+
-Wl,--wrap,main
10+
-Wl,-n
11+
-mcpu=cortex-m4
12+
-mfloat-abi=softfp
13+
-mfpu=fpv4-sp-d16
14+
-mthumb
10.7 MB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
MEMORY
2+
{
3+
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048k
4+
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
5+
RAM (rwx) : ORIGIN = 0x200001B0, LENGTH = 192k - (0x1AC+0x4)
6+
}
7+
ENTRY(Reset_Handler)
8+
SECTIONS
9+
{
10+
.text :
11+
{
12+
KEEP(*(.isr_vector))
13+
*(.text*)
14+
KEEP(*(.init))
15+
KEEP(*(.fini))
16+
*crtbegin.o(.ctors)
17+
*crtbegin?.o(.ctors)
18+
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
19+
*(SORT(.ctors.*))
20+
*(.ctors)
21+
*crtbegin.o(.dtors)
22+
*crtbegin?.o(.dtors)
23+
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
24+
*(SORT(.dtors.*))
25+
*(.dtors)
26+
*(.rodata*)
27+
KEEP(*(.eh_frame*))
28+
} > FLASH
29+
.ARM.extab :
30+
{
31+
*(.ARM.extab* .gnu.linkonce.armextab.*)
32+
} > FLASH
33+
__exidx_start = .;
34+
.ARM.exidx :
35+
{
36+
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
37+
} > FLASH
38+
__exidx_end = .;
39+
__etext = .;
40+
_sidata = .;
41+
.data : AT (__etext)
42+
{
43+
__data_start__ = .;
44+
_sdata = .;
45+
*(vtable)
46+
*(.data*)
47+
. = ALIGN(8);
48+
PROVIDE_HIDDEN (__preinit_array_start = .);
49+
KEEP(*(.preinit_array))
50+
PROVIDE_HIDDEN (__preinit_array_end = .);
51+
. = ALIGN(8);
52+
PROVIDE_HIDDEN (__init_array_start = .);
53+
KEEP(*(SORT(.init_array.*)))
54+
KEEP(*(.init_array))
55+
PROVIDE_HIDDEN (__init_array_end = .);
56+
. = ALIGN(8);
57+
PROVIDE_HIDDEN (__fini_array_start = .);
58+
KEEP(*(SORT(.fini_array.*)))
59+
KEEP(*(.fini_array))
60+
PROVIDE_HIDDEN (__fini_array_end = .);
61+
KEEP(*(.jcr*))
62+
. = ALIGN(8);
63+
__data_end__ = .;
64+
_edata = .;
65+
} > RAM
66+
.bss :
67+
{
68+
. = ALIGN(8);
69+
__bss_start__ = .;
70+
_sbss = .;
71+
*(.bss*)
72+
*(COMMON)
73+
. = ALIGN(8);
74+
__bss_end__ = .;
75+
_ebss = .;
76+
} > RAM
77+
.heap (COPY):
78+
{
79+
__end__ = .;
80+
end = __end__;
81+
*(.heap*)
82+
__HeapLimit = .;
83+
} > RAM
84+
.stack_dummy (COPY):
85+
{
86+
*(.stack*)
87+
} > RAM
88+
__StackTop = ORIGIN(RAM) + LENGTH(RAM);
89+
_estack = __StackTop;
90+
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
91+
PROVIDE(__stack = __StackTop);
92+
ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
93+
}

variants/MTB_UBLOX_ODIN_W2/pins_arduino.h

Whitespace-only changes.

0 commit comments

Comments
 (0)