Skip to content

Commit 7934736

Browse files
committed
initial: boards: add nicla sense ME
1 parent aa1d349 commit 7934736

File tree

4 files changed

+142
-1
lines changed

4 files changed

+142
-1
lines changed

boards.txt

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,4 +396,79 @@ frdm_rw612.upload.maximum_data_size=523624
396396
frdm_rw612.bootloader.tool=pyocd
397397
frdm_rw612.bootloader.tool.default=pyocd
398398
frdm_rw612.bootloader.file=zephyr-frdm_rw612.elf
399-
frdm_rw612.bootloader.target=rw612
399+
frdm_rw612.bootloader.target=rw612
400+
401+
##########################################################################################
402+
403+
niclasense.name=Arduino Nicla Sense ME
404+
niclasense.build.core=arduino
405+
niclasense.build.crossprefix=arm-zephyr-eabi-
406+
niclasense.build.compiler_path={runtime.tools.arm-zephyr-eabi-0.16.8.path}/bin/
407+
408+
niclasense.menu.debug.false=Standard
409+
niclasense.menu.debug.true=Debug
410+
411+
niclasense.menu.debug.false.post_build_arg=
412+
niclasense.menu.debug.true.post_build_arg=debug
413+
414+
niclasense.build.variant=arduino_nicla_sense_me
415+
niclasense.build.mcu=cortex-m4
416+
niclasense.build.fpu=-mfpu=fpv4-sp-d16
417+
niclasense.build.architecture=cortex-m4
418+
niclasense.compiler.zephyr.arch.define=
419+
420+
niclasense.build.board={build.variant}
421+
422+
niclasense.build.float-abi=-mfloat-abi=hard
423+
niclasense.build.extra_flags=
424+
niclasense.build.postbuild.cmd="{tools.imgtool.path}/{tools.imgtool.cmd}" exit
425+
niclasense.build.architecture=cortex-m4
426+
niclasense.build.board=ARDUINO_NICLA_SENSE_ME
427+
niclasense.build.extra_ldflags=
428+
niclasense.compiler.zephyr.defines=-DLL_EXTENSION_BUILD -DCONFIG_ARDUINO_API_SERIAL_BUFFER_SIZE=256 -DNRF52832_XXAA -DK_HEAP_MEM_POOL_SIZE=1024 -DKERNEL -DPICOLIBC_LONG_LONG_PRINTF_SCANF -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -imacros{build.variant.path}/llext-edk/include/zephyr/include/generated/zephyr/autoconf.h -imacros{build.variant.path}/llext-edk/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h
429+
niclasense.compiler.zephyr.ldflags=-fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-unwind-tables -fno-use-cxa-atexit
430+
niclasense.compiler.zephyr.cflags=-fno-strict-aliasing -fno-printf-return-value -fno-common -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop --specs=picolibc.specs -D_POSIX_THREADS -mlong-calls -nodefaultlibs
431+
niclasense.compiler.zephyr.cxxflags={compiler.zephyr.ldflags} -fdata-sections -ffunction-sections -fno-unwind-tables -fno-strict-aliasing -fno-printf-return-value -fno-common -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop --specs=picolibc.specs -D_POSIX_THREADS -mlong-calls -nodefaultlibs
432+
niclasense.compiler.zephyr.includes={build.variant.path}/includes.txt
433+
niclasense.compiler.zephyr.extra_ldflags=-lstdc++ -lsupc++ -lnosys -nostdlib
434+
niclasense.compiler.zephyr=
435+
niclasense.vid.0=0x2341
436+
niclasense.pid.0=0x0360
437+
niclasense.upload_port.0.vid=0x2341
438+
niclasense.upload_port.0.pid=0x0060
439+
440+
#niclasense.upload.tool=openocd
441+
#niclasense.upload.tool.default=openocd
442+
niclasense.upload.tool=pyocd
443+
niclasense.upload.tool.default=pyocd
444+
niclasense.upload.protocol=
445+
niclasense.upload.transport=
446+
niclasense.upload.vid=0x2341
447+
niclasense.upload.pid=0x0060
448+
niclasense.upload.interface=0
449+
niclasense.upload.use_1200bps_touch=false
450+
niclasense.upload.wait_for_upload_port=false
451+
niclasense.upload.native_usb=false
452+
niclasense.upload.maximum_size=1966080
453+
niclasense.upload.maximum_data_size=523624
454+
niclasense.upload.address=0x70000
455+
niclasense.upload.target=nrf52
456+
457+
niclasense.upload.maximum_size=786432
458+
niclasense.upload.maximum_data_size=523624
459+
460+
#niclasense.bootloader.tool=openocd
461+
#niclasense.bootloader.tool.default=openocd
462+
niclasense.bootloader.tool=pyocd
463+
niclasense.bootloader.tool.default=pyocd
464+
niclasense.bootloader.vid=0x2341
465+
niclasense.bootloader.pid=0x0360
466+
niclasense.bootloader.interface=0
467+
niclasense.bootloader.file=zephyr-arduino_nicla_sense_me.hex
468+
niclasense.bootloader.target=nrf52
469+
470+
niclasense.debug.tool=gdb
471+
niclasense.debug.server.openocd.scripts.0=interface/{programmer.protocol}.cfg
472+
niclasense.debug.server.openocd.scripts.1={programmer.transport_script}
473+
niclasense.debug.server.openocd.scripts.2=target/nrf52.cfg
474+
niclasense.debug.cortex-debug.custom.request=attach
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
CONFIG_BT=y
2+
3+
CONFIG_BT_HCI_RAW=y
4+
CONFIG_BT_HCI_RAW_H4=y
5+
CONFIG_BT_HCI_RAW_H4_ENABLE=y
6+
CONFIG_BT_BUF_ACL_RX_SIZE=255
7+
CONFIG_BT_BUF_CMD_TX_SIZE=255
8+
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
9+
CONFIG_BT_MAX_CONN=4
10+
CONFIG_BT_CTLR_ADV_EXT=y
11+
CONFIG_BT_CTLR_ADV_PERIODIC=y
12+
13+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
14+
15+
# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
16+
# Host number of completed commands does not follow normal flow control.
17+
CONFIG_BT_BUF_CMD_TX_COUNT=10
18+
19+
#CONFIG_ADC=y
20+
#CONFIG_PWM=y
21+
22+
CONFIG_LLEXT_STORAGE_WRITABLE=n
23+
CONFIG_SHELL_STACK_SIZE=1024
24+
CONFIG_HEAP_MEM_POOL_SIZE=1024
25+
CONFIG_LLEXT_HEAP_SIZE=16
26+
CONFIG_MAIN_STACK_SIZE=1024
27+
28+
CONFIG_BT_RX_STACK_SIZE=1024
29+
CONFIG_BT_HCI_TX_STACK_SIZE=1024
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
&flash0 {
2+
partitions {
3+
user_sketch: partition@70000 {
4+
label = "user";
5+
reg = <0x070000 0x10000>;
6+
};
7+
};
8+
};
9+
10+
/ {
11+
zephyr,user {
12+
digital-pin-gpios = <&gpio0 10 0>, // 0: GPIO3
13+
<&gpio0 9 0>, // 1: GPIO2/RX
14+
<&gpio0 20 0>, // 2: GPIO1/TX
15+
<&gpio0 23 0>, // 3: SCL1
16+
<&gpio0 22 0>, // 4: SDA1
17+
<&gpio0 24 0>, // 5: GPIO0
18+
<&gpio0 29 0>, // 6: CS
19+
<&gpio0 28 0>, // 7: CIPO
20+
<&gpio0 27 0>, // 8: COPI
21+
<&gpio0 11 0>, // 9: SCLK
22+
<&gpio0 2 0>, // 10: A0
23+
<&gpio0 30 0>, // 11: A1
24+
<&gpio0 19 0>, // 12: INT ESLOV
25+
<&gpio0 18 0>, // 13: Reset BHI260
26+
<&gpio0 14 0>, // 14: INT BHI260
27+
<&gpio0 25 0>, // 15: BQ25120 CD
28+
<&gpio0 26 0>, // 16: CS FLASH
29+
<&gpio0 31 0>; // 17: CS BHI260
30+
31+
builtin-led-gpios = <&gpio0 10 0>; // TODO: fixme: use real i2c led (will need some magic like PureAnalog)
32+
33+
serials = <&uart0>;
34+
i2cs = <&i2c1>;
35+
spis = <&spi1>;
36+
};
37+
};

variants/arduino_nicla_sense_me/variant.h

Whitespace-only changes.

0 commit comments

Comments
 (0)