Skip to content

Commit 35453be

Browse files
authored
Merge pull request #1807 from nanoframework/release-v1.6.0
Release release-v1.6.0
2 parents a08b438 + 3058154 commit 35453be

File tree

659 files changed

+84358
-35714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

659 files changed

+84358
-35714
lines changed

.vscode/cmake-variants.TEMPLATE.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,24 @@
3131
"TOOL_HEX2DFU_PREFIX": "<path-to-hex2dfu-utility-mind-the-forward-slash>",
3232
"ESP32_IDF_PATH": "<path-to-esp32-idf-mind-the-forward-slash>/esp-idf",
3333
"ESP32_LIBS_PATH": "<path-to-esp32-libraries-mind-the-forward-slash>/libs",
34-
"ESP32_BOARD": "ESP32_WROOM_32",
34+
"TARGET_BOARD": "<valid-board-name-from-platform-boards-collection>",
3535
"EXECUTABLE_OUTPUT_PATH": "${workspaceRoot}/build",
3636
"TARGET_SERIES": "<series-name-of-the-target-chip-STM32F0xx-STM32F4xx-STM32F7xx-ESP32-CC32xx>",
37+
"TARGET_SERIAL_BAUDRATE": "<baudrate-for-serial-comunication-only-required-to-target-default-override>",
38+
"TARGET_NAME": "<target-name-only-required-to-override-target-name>",
3739
"USE_RNG": "<ON-default-for-using-hardware-true-random-generator-unit>",
3840
"DP_FLOATINGPOINT": "<OFF-default-ON-for-adding-support-for-double-precision-floating-point>",
3941
"SUPPORT_ANY_BASE_CONVERSION": "<OFF-default-ON-for-adding-support-for-conversion-strings-to-values-on-any-base>",
4042
"RTOS": "<one-of-valid-rtos-options-CHIBIOS-FREERTOS-FREERTOS_ESP32-TI_SIMPLELINK>",
4143
"RTOS_SOURCE_FOLDER": "<path-to-RTOS-source-folder-if-supported-mind-the-forward-slash>",
4244
"CHIBIOS_CONTRIB_REQUIRED": "OFF-default-ON-to-include_ChibiOS-Contrib-repository-in-the-build",
4345
"CHIBIOS_CONTRIB_SOURCE": "<path-to-local-ChibiOS-contrib-source-mind-the-forward-slash>",
44-
"FREERTOS_BOARD": "<valid-freertos-board-name-from-boards-collection>",
4546
"RTOS_VERSION": "<valid-rtos-git-branch-if-empty-use-default-cmake-setting>",
4647
"RTOS_SOURCE": "<path-to-rtos-source-mind-the-forward-slash>",
4748
"CMSIS_SOURCE": "<path-to-cmsis-source-mind-the-forward-slash>",
4849
"CMSIS_VERSION": "<valid-cmsis-version-if-empty-use-default-set-cmake>",
49-
"CHIBIOS_BOARD": "<valid-chibios-board-name-from-boards-collection>",
5050
"STM32_CUBE_PACKAGE_REQUIRED": "<OFF-default-ON-to-include_STM-cube-package-in-the-build>",
5151
"STM32_CUBE_PACKAGE_SOURCE": "<path-to-stm32-cubemx-package-mind-the-forward-slash>",
52-
"TI_BOARD": "<valid-TI-board-name-from-boards-collection>",
5352
"TI_SL_CC32xx_SDK_SOURCE": "<path-to-local-TI-SimpleLink-CC32xx-SDK-source-mind-the-forward-slash>",
5453
"TI_SL_CC13x2_26x2_SDK_SOURCE": "<path-to-local-TI-SimpleLink-CC13x2_26x2-SDK-source-mind-the-forward-slash>",
5554
"TI_XDCTOOLS_SOURCE": "<path-to-local-TI-XDC-Tools-source-mind-the-forward-slash>",
@@ -60,6 +59,7 @@
6059
"FATFS_SOURCE": "<path-to-local-FATFS-source-mind-the-forward-slash>",
6160
"LWIP_VERSION": "<valid-lwip-version-if-empty-use-default-set-cmake>",
6261
"NF_BUILD_RTM": "OFF-default-ON-to-enable-RTM-build",
62+
"NF_TARGET_HAS_NANOBOOTER": "ON-default-OFF-to-signal-that-target-does-not-have-nanoBooter",
6363
"NF_WP_TRACE_ERRORS": "OFF-default-ON-to-enable-trace-error-messages-wire-protocol",
6464
"NF_WP_TRACE_HEADERS": "OFF-default-ON-to-enable-trace-header-messages-wire-protocol",
6565
"NF_WP_TRACE_STATE": "OFF-default-ON-to-enable-trace-state-messages-wire-protocol",
@@ -91,7 +91,9 @@
9191
"API_Windows.Devices.Adc": "OFF-default-ON-to-add-this-API",
9292
"API_System.Device.Dac": "OFF-default-ON-to-add-this-API",
9393
"API_Windows.Devices.Gpio": "OFF-default-ON-to-add-this-API",
94+
"API_System.Device.Gpio": "OFF-default-ON-to-add-this-API",
9495
"API_Windows.Devices.I2c": "OFF-default-ON-to-add-this-API",
96+
"API_System.Device.I2c": "OFF-default-ON-to-add-this-API",
9597
"API_Windows.Devices.Pwm": "OFF-default-ON-to-add-this-API",
9698
"API_Windows.Devices.SerialCommunication": "OFF-default-ON-to-add-this-API",
9799
"API_Windows.Devices.Spi": "OFF-default-ON-to-add-this-API",

.vscode/tasks.TEMPLATE.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{
1919
"label": "Flash nanoCLR to ESP32",
2020
"type": "shell",
21-
"command": "python <absolute-path-to-the-IDF-folder-mind-the-forward-slashes>/components/esptool_py/esptool/esptool.py --chip esp32 --port \"${input:comPort}\" --baud 921600 --before \"default_reset\" --after \"hard_reset\" write_flash -z --flash_mode \"dio\" --flash_freq \"40m\" --flash_size detect 0x1000 <absolute-path-to-the-esp32-bootloader-folder-mind-the-forward-slashes>/bootloader.bin 0x10000 <absolute-path-to-the-build-folder-mind-the-forward-slashes>/nanoCLR.bin 0x8000 <absolute-path-to-the-build-folder-mind-the-forward-slashes>/partitions_4mb.bin",
21+
"command": "python <absolute-path-to-the-IDF-folder-mind-the-forward-slashes>/components/esptool_py/esptool/esptool.py --chip esp32 --port \"${input:comPort}\" --baud 1500000 --before \"default_reset\" --after \"hard_reset\" write_flash -z --flash_mode \"dio\" --flash_freq \"40m\" --flash_size detect 0x1000 <absolute-path-to-the-esp32-bootloader-folder-mind-the-forward-slashes>/bootloader.bin 0x10000 <absolute-path-to-the-build-folder-mind-the-forward-slashes>/nanoCLR.bin 0x8000 <absolute-path-to-the-build-folder-mind-the-forward-slashes>/partitions_${input:esp32Partitions}.bin",
2222
"presentation": {
2323
"reveal": "always",
2424
"panel": "shared"
@@ -28,7 +28,7 @@
2828
{
2929
"label": "Erase ESP32 flash",
3030
"type": "shell",
31-
"command": "python <absolute-path-to-the-IDF-folder-mind-the-forward-slashes>/components/esptool_py/esptool/esptool.py --chip esp32 --port \"${input:comPort}\" --baud 921600 --before \"default_reset\" --after \"hard_reset\" erase_flash",
31+
"command": "python <absolute-path-to-the-IDF-folder-mind-the-forward-slashes>/components/esptool_py/esptool/esptool.py --chip esp32 --port \"${input:comPort}\" --baud 1500000 --before \"default_reset\" --after \"hard_reset\" erase_flash",
3232
"presentation": {
3333
"reveal": "always",
3434
"panel": "shared"
@@ -80,6 +80,18 @@
8080
"type": "promptString",
8181
"default": "COM1",
8282
"description": "COM port of the ESP32 device."
83+
},
84+
{
85+
"id": "esp32Partitions",
86+
"type": "pickString",
87+
"description": "Partition to flash to ESP32.",
88+
"default": "4mb",
89+
"options": [
90+
"2mb",
91+
"4mb",
92+
"8mb",
93+
"16mb"
94+
]
8395
}
8496
]
8597
}

CMake/ChibiOS_target_os.h.in

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,24 @@
1111
#include <chversion.h>
1212

1313
#ifndef _TARGET_OS_H_
14-
#define _TARGET_OS_H_
14+
#define _TARGET_OS_H_ 1
1515

1616
#define STR_HELPER(x) #x
17-
#define STR(x) STR_HELPER(x)
17+
#define STR(x) STR_HELPER(x)
1818

19-
#define VERSION_MAJOR @nanoFramework_VERSION_MAJOR@U
20-
#define VERSION_MINOR @nanoFramework_VERSION_MINOR@U
21-
#define VERSION_BUILD @nanoFramework_VERSION_PATCH@U
19+
#define VERSION_MAJOR @nanoFramework_VERSION_MAJOR@U
20+
#define VERSION_MINOR @nanoFramework_VERSION_MINOR@U
21+
#define VERSION_BUILD @nanoFramework_VERSION_PATCH@U
2222
#define VERSION_REVISION @nanoFramework_VERSION_TWEAK@U
2323

2424
#define TARGETINFOSTRING "@CMAKE_BUILD_TYPE@ build with ChibiOS v" CH_VERSION "." STR(CH_VERSION_MONTH)
2525

26-
#define NANOCLR_LIGHT_MATH @TARGET_LIGHT_MATH@
27-
#define DP_FLOATINGPOINT @TARGET_DP_FLOATINGPOINT@
28-
26+
#define NANOCLR_LIGHT_MATH @TARGET_LIGHT_MATH@
27+
#define DP_FLOATINGPOINT @TARGET_DP_FLOATINGPOINT@
2928
#define SUPPORT_ANY_BASE_CONVERSION @TARGET_SUPPORT_ANY_BASE_CONVERSION@
30-
31-
#define HAS_CONFIG_BLOCK @TARGET_HAS_CONFIG_BLOCK@
32-
33-
#define NANOCLR_REFLECTION @TARGET_NANOCLR_REFLECTION@
34-
35-
#define NANOCLR_SYSTEM_COLLECTIONS @TARGET_SYSTEM_COLLECTIONS@
29+
#define HAS_CONFIG_BLOCK @TARGET_HAS_CONFIG_BLOCK@
30+
#define NANOCLR_REFLECTION @TARGET_NANOCLR_REFLECTION@
31+
#define NANOCLR_SYSTEM_COLLECTIONS @TARGET_SYSTEM_COLLECTIONS@
32+
#define TARGET_HAS_NANOBOOTER @TARGET_HAS_NANOBOOTER@
3633

3734
#endif /* _TARGET_OS_H_ */

CMake/ESP32_target_os.h.in

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,22 @@
99
//////////////////////////////////////////////////////////////////////////////
1010

1111
#ifndef _TARGET_OS_H_
12-
#define _TARGET_OS_H_
12+
#define _TARGET_OS_H_ 1
1313

14-
#define VERSION_MAJOR @nanoFramework_VERSION_MAJOR@U
15-
#define VERSION_MINOR @nanoFramework_VERSION_MINOR@U
16-
#define VERSION_BUILD @nanoFramework_VERSION_PATCH@U
14+
#define VERSION_MAJOR @nanoFramework_VERSION_MAJOR@U
15+
#define VERSION_MINOR @nanoFramework_VERSION_MINOR@U
16+
#define VERSION_BUILD @nanoFramework_VERSION_PATCH@U
1717
#define VERSION_REVISION @nanoFramework_VERSION_TWEAK@U
1818

1919
#define TARGETINFOSTRING "@CMAKE_BUILD_TYPE@ build with IDF v3.3.1"
2020

21-
#define NANOCLR_LIGHT_MATH @TARGET_LIGHT_MATH@
22-
#define DP_FLOATINGPOINT @TARGET_DP_FLOATINGPOINT@
23-
21+
#define NANOCLR_LIGHT_MATH @TARGET_LIGHT_MATH@
22+
#define DP_FLOATINGPOINT @TARGET_DP_FLOATINGPOINT@
2423
#define SUPPORT_ANY_BASE_CONVERSION @TARGET_SUPPORT_ANY_BASE_CONVERSION@
25-
26-
#define HAS_CONFIG_BLOCK @TARGET_HAS_CONFIG_BLOCK@
27-
28-
#define NANOCLR_REFLECTION @TARGET_NANOCLR_REFLECTION@
29-
30-
#define NANOCLR_SYSTEM_COLLECTIONS @TARGET_SYSTEM_COLLECTIONS@
24+
#define HAS_CONFIG_BLOCK @TARGET_HAS_CONFIG_BLOCK@
25+
#define NANOCLR_REFLECTION @TARGET_NANOCLR_REFLECTION@
26+
#define NANOCLR_SYSTEM_COLLECTIONS @TARGET_SYSTEM_COLLECTIONS@
27+
#define TARGET_HAS_NANOBOOTER FALSE
28+
#cmakedefine TARGET_SERIAL_BAUDRATE @TARGET_SERIAL_BAUDRATE@
3129

3230
#endif /* _TARGET_OS_H_ */

CMake/FatFS.CMakeLists.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ExternalProject_Add(
1919
GIT_SHALLOW 1 # download only the tip of the branch, not the complete history
2020
TIMEOUT 10
2121
LOG_DOWNLOAD 1
22-
INSTALL_COMMAND "${CMAKE_COMMAND}" -E remove "${PROJECT_BINARY_DIR}/FatFS_Source/source/ffconf.h"
22+
INSTALL_COMMAND "${CMAKE_COMMAND}" -E remove "${CMAKE_BINARY_DIR}/FatFS_Source/source/ffconf.h"
2323

2424
# Disable all other steps
2525
CONFIGURE_COMMAND ""

CMake/FreeRTOS_target_os.h.in

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,24 @@
99
//////////////////////////////////////////////////////////////////////////////
1010

1111
#ifndef _TARGET_OS_H_
12-
#define _TARGET_OS_H_
12+
#define _TARGET_OS_H_ 1
1313

1414
#define STR_HELPER(x) #x
15-
#define STR(x) STR_HELPER(x)
15+
#define STR(x) STR_HELPER(x)
1616

17-
#define VERSION_MAJOR @nanoFramework_VERSION_MAJOR@U
18-
#define VERSION_MINOR @nanoFramework_VERSION_MINOR@U
19-
#define VERSION_BUILD @nanoFramework_VERSION_PATCH@U
17+
#define VERSION_MAJOR @nanoFramework_VERSION_MAJOR@U
18+
#define VERSION_MINOR @nanoFramework_VERSION_MINOR@U
19+
#define VERSION_BUILD @nanoFramework_VERSION_PATCH@U
2020
#define VERSION_REVISION @nanoFramework_VERSION_TWEAK@U
2121

22-
#define TARGETINFOSTRING "@CMAKE_BUILD_TYPE@ build with FREERTOS @FREERTOS_VERSION@"
22+
#define TARGETINFOSTRING "@CMAKE_BUILD_TYPE@ build with FREERTOS @RTOS_VERSION@"
2323

24-
#define DP_FLOATINGPOINT @TARGET_DP_FLOATINGPOINT@
25-
26-
#define SUPPORT_ANY_BASE_CONVERSION @TARGET_SUPPORT_ANY_BASE_CONVERSION@
27-
28-
#define HAS_CONFIG_BLOCK @TARGET_HAS_CONFIG_BLOCK@
29-
30-
#define NANOCLR_REFLECTION @TARGET_NANOCLR_REFLECTION@
31-
32-
#define NANOCLR_SYSTEM_COLLECTIONS @TARGET_SYSTEM_COLLECTIONS@
24+
#define NANOCLR_LIGHT_MATH @TARGET_LIGHT_MATH@
25+
#define DP_FLOATINGPOINT @TARGET_DP_FLOATINGPOINT@
26+
#define SUPPORT_ANY_BASE_CONVERSION @TARGET_SUPPORT_ANY_BASE_CONVERSION@
27+
#define HAS_CONFIG_BLOCK @TARGET_HAS_CONFIG_BLOCK@
28+
#define NANOCLR_REFLECTION @TARGET_NANOCLR_REFLECTION@
29+
#define NANOCLR_SYSTEM_COLLECTIONS @TARGET_SYSTEM_COLLECTIONS@
30+
#define TARGET_HAS_NANOBOOTER @TARGET_HAS_NANOBOOTER@
3331

3432
#endif /* _TARGET_OS_H_ */

CMake/Modules/CHIBIOS_STM32F0xx_GCC_options.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ set(CMAKE_EXE_LINKER_FLAGS " -Wl,--gc-sections -Wl,--no-wchar-size-warning -Wl,-
1717
function(NF_SET_COMPILER_OPTIONS TARGET)
1818

1919
# include any extra options coming from any extra args?
20-
target_compile_options(${TARGET} PUBLIC ${ARGN} -mthumb -mcpu=cortex-m0 -mabi=aapcs -nostdlib -Wall -Wextra -Werror -fshort-wchar -fno-builtin -fno-common -mno-long-calls -fno-exceptions -fcheck-new )
20+
target_compile_options(${TARGET} PUBLIC ${ARGN} -mthumb -mcpu=cortex-m0 -mabi=aapcs -nostdlib -Wall -Wextra -Werror -Wundef -fshort-wchar -fno-builtin -fno-common -mno-long-calls -fno-exceptions -fcheck-new )
2121

2222
# this series doesn't have FPU
23-
target_compile_definitions(${TARGET} PUBLIC -DCORTEX_USE_FPU=FALSE)
23+
target_compile_definitions(${TARGET} PUBLIC -DCORTEX_USE_FPU=FALSE -DUSE_FPU=TRUE)
2424

2525
endfunction()
2626

0 commit comments

Comments
 (0)