Skip to content

Commit 80b89de

Browse files
authored
Renesas RX65N Cloud Kit (#198)
* initial rx65n cloud kit commit * more rx65n updates * add build action * update rx65n cloud wifi driver * fix accidental delete of sntp * update renesas nx_wifi.c to save socket id * Updated for working IoT connection * update pnp device info * disable LED's, they arent initialized * add additional pictures for flash process * Update cloud readme and main readme * remove extern lnker * add linker externs * add rx65n e2studio project * updat rx_driver_package, remove timestamp * dont migrate template, bug fix * remove unused image * Add new rx65n cloud kit sensors * add smart configuration update * Delete RX65N_Cloud_Kit.scfg * formatting fixes * add default case to switch * remove unused define * remove return check * update serial output * kill sntp thread once time has synced * stop the sntp thread once time has synced * add IAR scripts * fix return error * add cloud kit model * Update to rx65n specific model * remove ununused direct command * submodule update * update about box * update rtos 6.1.6 * update images and console text * small typos, print model id
1 parent 2ce1862 commit 80b89de

File tree

307 files changed

+114007
-34
lines changed

Some content is hidden

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

307 files changed

+114007
-34
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: RX65N-Cloud-Kit
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
defaults:
10+
run:
11+
working-directory: Renesas/RX65N_Cloud_Kit
12+
13+
jobs:
14+
build:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
with:
24+
submodules: recursive
25+
26+
- name: rx-elf-gcc
27+
uses: ryanwinter/rx-elf-gcc@main
28+
with:
29+
release: '8.3.0.202004'
30+
31+
- name: Install Ninja
32+
uses: seanmiddleditch/gha-setup-ninja@v3
33+
34+
- name: Build project
35+
run: |
36+
cmake -Bbuild -GNinja -DCMAKE_TOOLCHAIN_FILE="../../cmake/renesas-rx-gcc-rx65n.cmake"
37+
cmake --build build

MXChip/AZ3166/app/nx_client.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ typedef enum TELEMETRY_STATE_ENUM
4848
TELEMETRY_STATE_DEFAULT,
4949
TELEMETRY_STATE_MAGNETOMETER,
5050
TELEMETRY_STATE_ACCELEROMETER,
51-
TELEMETRY_STATE_GYROSCOPE
51+
TELEMETRY_STATE_GYROSCOPE,
52+
TELEMETRY_STATE_END
5253
} TELEMETRY_STATE;
5354

5455
static AZURE_IOT_NX_CONTEXT azure_iot_nx_client;
@@ -398,9 +399,12 @@ UINT azure_iot_nx_client_entry(
398399
case TELEMETRY_STATE_GYROSCOPE:
399400
azure_iot_nx_client_publish_telemetry(&azure_iot_nx_client, append_device_telemetry_gyroscope);
400401
break;
402+
403+
default:
404+
break;
401405
}
402406

403-
telemetry_state = (telemetry_state + 1) % 4;
407+
telemetry_state = (telemetry_state + 1) % TELEMETRY_STATE_END;
404408
}
405409

406410
return NX_SUCCESS;

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
![](https://github.com/azure-rtos/getting-started/workflows/AZ3166/badge.svg)
66
![](https://github.com/azure-rtos/getting-started/workflows/MIMXRT1050-EVKB/badge.svg)
77
![](https://github.com/azure-rtos/getting-started/workflows/MIMXRT1060-EVK/badge.svg)
8+
![](https://github.com/azure-rtos/getting-started/workflows/RX65N-Cloud-Kit/badge.svg)
89
![](https://github.com/azure-rtos/getting-started/workflows/RSK-RX65N-2MB/badge.svg)
910
![](https://github.com/azure-rtos/getting-started/workflows/STM32L4_L4+/badge.svg)
1011

@@ -34,7 +35,8 @@ The following board specific guides will get you started with Azure RTOS and Azu
3435
* [MIMXRT1060-EVK](NXP/MIMXRT1060-EVK)
3536
* Renesas:
3637
* [AE-Cloud2](Renesas/Synergy)
37-
* [RSK+RX65N-2MB](Renesas/RSK_RX65N_2MB)
38+
* [RX65N Cloud Kit](Renesas/RX65N_Cloud_Kit)
39+
* * [RSK+RX65N-2MB](Renesas/RSK_RX65N_2MB)
3840
* STMicroelectronics:
3941
* [B-L475E-IOT01A](STMicroelectronics/STM32L4_L4+)
4042
* [B-L4S5I-IOT01A](STMicroelectronics/STM32L4_L4+)

Renesas/RSK_RX65N_2MB/lib/rx_driver_package/src/smc_gen/Config_SCI8/Config_SCI8_user.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ extern volatile uint16_t g_sci8_rx_length; /* SCI8 receive dat
6161
void R_Config_SCI8_Create_UserInit(void)
6262
{
6363
/* Start user code for user init. Do not edit comment generated here */
64-
void printf_init(void);
65-
printf_init();
6664
/* End user code. Do not edit comment generated here */
6765
}
6866

Renesas/RSK_RX65N_2MB/lib/threadx/tx_user.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
#ifndef TX_USER_H
5252
#define TX_USER_H
5353

54-
#define TX_ENABLE_FPU_SUPPORT
55-
5654
/* Define various build options for the ThreadX port. The application should either make changes
5755
here by commenting or un-commenting the conditional compilation defined OR supply the defines
5856
though the compiler's equivalent of the -D option.

Renesas/RSK_RX65N_2MB/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ To create a device:
127127
128128
## Prepare the device
129129
130-
To connect the STM DevKit to Azure, you'll modify a configuration file for Wi-Fi and Azure IoT settings, rebuild the image, and flash the image to the device.
130+
To connect the Renesas RX65N to Azure, you'll modify a configuration file for Wi-Fi and Azure IoT settings, rebuild the image, and flash the image to the device.
131131

132132
### Add configuration
133133

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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
# Disable common networking component, Cloud kit has it's own
27+
set(DISABLE_COMMON_NETWORK true)
28+
29+
add_subdirectory(${CORE_SRC_DIR} core_src)
30+
add_subdirectory(lib)
31+
add_subdirectory(app)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"path": "..\\.."
8+
}
9+
],
10+
"settings": {
11+
"git.ignoreLimitWarning": true,
12+
"git.autofetch": true,
13+
"git.confirmSync": false,
14+
"cmake.configureOnOpen": true,
15+
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
16+
"cmake.generator": "Ninja"
17+
}
18+
}
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+
]

0 commit comments

Comments
 (0)