Skip to content

Commit 7c0d9df

Browse files
authored
Renesas RSK-RX65N-2MB support
1 parent 3fe16e5 commit 7c0d9df

File tree

164 files changed

+66272
-100
lines changed

Some content is hidden

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

164 files changed

+66272
-100
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"ms-vscode.cpptools",
88
"ms-vscode.cmake-tools",
99
"marus25.cortex-debug",
10-
"vsciot-vscode.vscode-iot-workbench",
1110
"vsciot-vscode.vscode-dtdl",
1211
"xaver.clang-format",
1312
"ms-azuretools.vscode-docker"

MXChip/AZ3166/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
4+
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
55
set(CMAKE_C_STANDARD 99)
66

77
set(GSG_BASE_DIR ${CMAKE_SOURCE_DIR}/../..)

MXChip/AZ3166/app/wwd_networking.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
194194
&nx_pool[0], "NetX Main TX Packet Pool", SAMPLE_PACKET_SIZE, sample_tx_pool_stack, SAMPLE_TX_POOL_SIZE);
195195
if (status != NX_SUCCESS)
196196
{
197-
printf("Sample platform initialize fail: PACKET POOL CREATE FAIL.");
197+
printf("Platform initialize fail: PACKET POOL CREATE FAIL.");
198198
return status;
199199
}
200200

@@ -204,7 +204,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
204204
if (status != NX_SUCCESS)
205205
{
206206
nx_packet_pool_delete(&nx_pool[0]);
207-
printf("Sample platform initialize fail: PACKET POOL CREATE FAIL.\r\n");
207+
printf("Platform initialize fail: PACKET POOL CREATE FAIL.\r\n");
208208
return status;
209209
}
210210

@@ -214,7 +214,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
214214
{
215215
nx_packet_pool_delete(&nx_pool[0]);
216216
nx_packet_pool_delete(&nx_pool[1]);
217-
printf("Sample platform initialize fail: WiFi JOIN FAIL.\r\n");
217+
printf("Platform initialize fail: WiFi JOIN FAIL.\r\n");
218218
return status;
219219
}
220220

@@ -233,7 +233,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
233233
{
234234
nx_packet_pool_delete(&nx_pool[0]);
235235
nx_packet_pool_delete(&nx_pool[1]);
236-
printf("Sample platform initialize fail: IP CREATE FAIL.\r\n");
236+
printf("Platform initialize fail: IP CREATE FAIL.\r\n");
237237
return status;
238238
}
239239

@@ -244,7 +244,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
244244
nx_ip_delete(&nx_ip);
245245
nx_packet_pool_delete(&nx_pool[0]);
246246
nx_packet_pool_delete(&nx_pool[1]);
247-
printf("Sample platform initialize fail: ARP ENABLE FAIL.\r\n");
247+
printf("Platform initialize fail: ARP ENABLE FAIL.\r\n");
248248
return status;
249249
}
250250

@@ -255,7 +255,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
255255
nx_ip_delete(&nx_ip);
256256
nx_packet_pool_delete(&nx_pool[0]);
257257
nx_packet_pool_delete(&nx_pool[1]);
258-
printf("Sample platform initialize fail: ICMP ENABLE FAIL.\r\n");
258+
printf("Platform initialize fail: ICMP ENABLE FAIL.\r\n");
259259
return status;
260260
}
261261

@@ -267,7 +267,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
267267
nx_packet_pool_delete(&nx_pool[0]);
268268
nx_packet_pool_delete(&nx_pool[1]);
269269
/* LogError */
270-
printf("Sample platform initialize fail: TCP ENABLE FAIL.\r\n");
270+
printf("Platform initialize fail: TCP ENABLE FAIL.\r\n");
271271
return status;
272272
}
273273

@@ -278,7 +278,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
278278
nx_ip_delete(&nx_ip);
279279
nx_packet_pool_delete(&nx_pool[0]);
280280
nx_packet_pool_delete(&nx_pool[1]);
281-
printf("Sample platform initialize fail: UDP ENABLE FAIL.\r\n");
281+
printf("Platform initialize fail: UDP ENABLE FAIL.\r\n");
282282
return status;
283283
}
284284

@@ -292,7 +292,7 @@ int platform_init(CHAR* ssid, CHAR* password, WiFi_Mode mode)
292292
nx_ip_delete(&nx_ip);
293293
nx_packet_pool_delete(&nx_pool[0]);
294294
nx_packet_pool_delete(&nx_pool[1]);
295-
printf("Sample platform initialize fail: %u\r\n", status);
295+
printf("Platform initialize fail: %u\r\n", status);
296296
return status;
297297
}
298298

MXChip/AZ3166/lib/wiced_sdk/binary_build/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10)
1+
cmake_minimum_required(VERSION 3.13)
22

33
project(wiced_sdk C)
44

MXChip/AZ3166/readme.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,10 @@ To use Azure CLI to call a method:
361361
1. View the Termite terminal to confirm the output messages:
362362

363363
```output
364-
Received direct method=setLedState, id=1, message=true
364+
Received direct method call: setLedState
365+
Payload: true
365366
LED is turned ON
366-
Sending device twin update with bool value
367-
Sending message {"ledState":true}
368-
Direct method=setLedState invoked
367+
Device twin property sent: {"ledState":true}
369368
```
370369

371370
## Debugging

Microchip/ATSAME54-XPRO/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
4+
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
55
set(CMAKE_C_STANDARD 99)
66

77
set(GSG_BASE_DIR ${CMAKE_SOURCE_DIR}/../..)

Microchip/ATSAME54-XPRO/readme.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ To install the tools:
8181

8282
To install the remaining tools:
8383

84-
1. Install [Atmel Studio 7](https://www.microchip.com/mplab/avr-support/atmel-studio-7). Atmel Studio is a device development environment that includes the tools to program and flash program the Microchip E54. For this tutorial, you use Atmel Studio only to flash the Microchip E54. The installation takes several minutes, and prompts you several times to approve the installation of components.
84+
1. Install [Atmel Studio 7](https://www.microchip.com/mplab/avr-support/atmel-studio-7). Atmel Studio is a device development environment that includes the tools to program and flash the Microchip E54. For this tutorial, you use Atmel Studio only to flash the Microchip E54. The installation takes several minutes, and prompts you several times to approve the installation of components.
8585

8686
### Create an IoT hub
8787

@@ -232,10 +232,6 @@ You can use the **Termite** utility to monitor communication and confirm that yo
232232
```output
233233
Starting Azure thread
234234
235-
Initializing WiFi
236-
Connecting to SSID 'iot'
237-
SUCCESS: WiFi connected to iot
238-
239235
Initializing DHCP
240236
IP address: 10.0.0.123
241237
Mask: 255.255.255.0
@@ -388,12 +384,12 @@ To use Azure CLI to call a method:
388384
1. View the Termite terminal to confirm the output messages:
389385
390386
```output
391-
Received direct method=setLedState, id=1, message=true
387+
Received direct method call: setLedState
388+
Payload: true
392389
LED is turned ON
393-
Sending device twin update with bool value
394-
Sending message {"ledState":true}
395-
Direct method=setLedState invoked
390+
Device twin property sent: {"ledState":true}
396391
```
392+
397393
## Debugging
398394
399395
For debugging the application, see [Debugging with Visual Studio Code](../../docs/debugging.md).

NXP/MIMXRT1050-EVKB/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
4+
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
55
set(CMAKE_C_STANDARD 99)
66

77
set(GSG_BASE_DIR ${CMAKE_SOURCE_DIR}/../..)
@@ -26,4 +26,3 @@ project(mimxrt1050_azure_iot C ASM)
2626
add_subdirectory(${CORE_SRC_DIR} core_src)
2727
add_subdirectory(lib)
2828
add_subdirectory(app)
29-

NXP/MIMXRT1050-EVKB/app/board_init.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#ifndef _BOARD_INIT_H
55
#define _BOARD_INIT_H
66

7-
#include "nx_api.h"
8-
97
void board_init();
108

119
#endif // _BOARD_INIT_H

NXP/MIMXRT1050-EVKB/readme.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ You can use the **Termite** utility to monitor communication and confirm that yo
191191
```output
192192
Starting Azure thread
193193
194-
Initializing WiFi
195-
Connecting to SSID 'iot'
196-
SUCCESS: WiFi connected to iot
197-
198194
Initializing DHCP
199195
IP address: 10.0.0.123
200196
Mask: 255.255.255.0
@@ -347,11 +343,10 @@ To use Azure CLI to call a method:
347343
1. View the Termite terminal to confirm the output messages:
348344

349345
```output
350-
Received direct method=setLedState, id=1, message=true
346+
Received direct method call: setLedState
347+
Payload: true
351348
LED is turned ON
352-
Sending device twin update with bool value
353-
Sending message {"ledState":true}
354-
Direct method=setLedState invoked
349+
Device twin property sent: {"ledState":true}
355350
```
356351

357352
## Debugging

NXP/MIMXRT1060-EVK/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
4+
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
55
set(CMAKE_C_STANDARD 99)
66

77
set(GSG_BASE_DIR ${CMAKE_SOURCE_DIR}/../..)

NXP/MIMXRT1060-EVK/app/board_init.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#ifndef _BOARD_INIT_H
55
#define _BOARD_INIT_H
66

7-
#include "nx_api.h"
8-
97
void board_init();
108

119
#endif // _BOARD_INIT_H

NXP/MIMXRT1060-EVK/readme.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,6 @@ You can use the **Termite** utility to monitor communication and confirm that yo
190190
```output
191191
Starting Azure thread
192192
193-
Initializing WiFi
194-
Connecting to SSID 'iot'
195-
SUCCESS: WiFi connected to iot
196-
197193
Initializing DHCP
198194
IP address: 10.0.0.123
199195
Mask: 255.255.255.0
@@ -347,11 +343,10 @@ To use Azure CLI to call a method:
347343
1. View the Termite terminal to confirm the output messages:
348344

349345
```output
350-
Received direct method=setLedState, id=1, message=true
346+
Received direct method call: setLedState
347+
Payload: true
351348
LED is turned ON
352-
Sending device twin update with bool value
353-
Sending message {"ledState":true}
354-
Direct method=setLedState invoked
349+
Device twin property sent: {"ledState":true}
355350
```
356351

357352
## Debugging

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The following board specific guides will get you started with Azure RTOS and Azu
2626
* [MIMXRT1060-EVK](NXP/MIMXRT1060-EVK)
2727
* Renesas:
2828
* [AE-Cloud2](Renesas/Synergy)
29+
* [RSK+RX65N-2MB](Renesas/RSK_RX65N_2MB)
2930
* STMicroelectronics:
3031
* [B-L475E-IOT01A](STMicroelectronics/STM32L4_L4+)
3132
* [B-L4S5I-IOT01A](STMicroelectronics/STM32L4_L4+)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"name": "Renesas RX65N GCC",
4+
"toolchainFile": "${workspaceFolder}/../../cmake/renesas-rx-gcc-rx65n.cmake"
5+
}
6+
]

Renesas/RSK_RX65N_2MB/CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
5+
set(CMAKE_C_STANDARD 99)
6+
7+
set(GSG_BASE_DIR ${CMAKE_SOURCE_DIR}/../..)
8+
set(CORE_SRC_DIR ${GSG_BASE_DIR}/core/src)
9+
set(CORE_LIB_DIR ${GSG_BASE_DIR}/core/lib)
10+
11+
# use the repo version of ninja on Windows as there is no Ninja installer
12+
if(WIN32)
13+
set(CMAKE_MAKE_PROGRAM ${GSG_BASE_DIR}/cmake/ninja CACHE STRING "Ninja location")
14+
endif()
15+
16+
# Set the toolchain if not defined
17+
if(NOT CMAKE_TOOLCHAIN_FILE)
18+
set(CMAKE_TOOLCHAIN_FILE "${GSG_BASE_DIR}/cmake/renesas-rx-gcc-rx65n.cmake")
19+
endif()
20+
21+
include(${GSG_BASE_DIR}/cmake/utilities.cmake)
22+
23+
# Define the Project
24+
project(rx65n_azure_iot C ASM)
25+
26+
set(DISABLE_NEWLIB_STUB true)
27+
28+
add_subdirectory(${CORE_SRC_DIR} core_src)
29+
add_subdirectory(lib)
30+
add_subdirectory(app)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"name": "Renesas RX65N GCC",
4+
"toolchainFile": "${workspaceFolder}/../../cmake/renesas-rx-gcc-rx65n.cmake"
5+
}
6+
]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
set(LINKER_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/startup/linker_script.ld")
5+
6+
set(SOURCES
7+
# startup/startup_MIMXRT1062.S
8+
startup/tx_initialize_low_level.S
9+
10+
legacy/mqtt.c
11+
azure_config.h
12+
nx_client.c
13+
board_init.c
14+
console.c
15+
main.c
16+
)
17+
18+
add_executable(${PROJECT_NAME} ${SOURCES})
19+
20+
target_link_libraries(${PROJECT_NAME}
21+
PUBLIC
22+
azrtos::threadx
23+
azrtos::netxduo
24+
25+
app_common
26+
jsmn
27+
rx_driver_package
28+
netx_driver
29+
)
30+
31+
target_link_options(${PROJECT_NAME}
32+
PRIVATE
33+
-T${LINKER_SCRIPT}
34+
-Wl,-Map=${PROJECT_NAME}.map
35+
-Wl,-e_PowerON_Reset
36+
)
37+
38+
set_target_properties(${PROJECT_NAME}
39+
PROPERTIES
40+
LINK_DEPENDS ${LINKER_SCRIPT}
41+
SUFFIX ".elf"
42+
)
43+
44+
target_include_directories(${PROJECT_NAME}
45+
PUBLIC
46+
.
47+
)
48+
49+
create_bin_output(${PROJECT_NAME})
50+
firmware_size(${PROJECT_NAME})

0 commit comments

Comments
 (0)