summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-06-29 16:33:32 +0700
committerhathach <[email protected]>2021-06-29 16:33:32 +0700
commit2d423514ee3e538408afe91693652d6079291195 (patch)
treea5216d5542fdc3e6ede669b62d05f02283147a93
parent6e939de9d673979721b83b0b3ab724ebd652770c (diff)
rename rx65n cloud kit to target
adding note for adding jlink support for rx65n_target board
-rw-r--r--docs/boards.md2
-rw-r--r--hw/bsp/rx/boards/rx65n_target/board.mk (renamed from hw/bsp/rx/boards/rx65n_cloud_kit/board.mk)0
-rw-r--r--hw/bsp/rx/boards/rx65n_target/r5f565ne.ld (renamed from hw/bsp/rx/boards/rx65n_cloud_kit/r5f565ne.ld)0
-rw-r--r--hw/bsp/rx/boards/rx65n_target/rx65n_target.c (renamed from hw/bsp/rx/boards/rx65n_cloud_kit/rx65n_cloud_kit.c)31
4 files changed, 32 insertions, 1 deletions
diff --git a/docs/boards.md b/docs/boards.md
index 53b0da702..324500bd1 100644
--- a/docs/boards.md
+++ b/docs/boards.md
@@ -127,7 +127,7 @@ This code base already had supported for a handful of following boards (sorted a
### Renesas RX
- [GR-CITRUS](https://www.renesas.com/us/en/products/gadget-renesas/boards/gr-citrus)
-- [Renesas RX65N Cloud Kit](https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rx-32-bit-performance-efficiency-mcus/rx65n-cloud-kit-renesas-rx65n-cloud-kit)
+- [Renesas RX65N Target Board](https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rx-32-bit-performance-efficiency-mcus/rtk5rx65n0c00000br-target-board-rx65n)
### Raspberry Pi RP2040
diff --git a/hw/bsp/rx/boards/rx65n_cloud_kit/board.mk b/hw/bsp/rx/boards/rx65n_target/board.mk
index fc76d79fa..fc76d79fa 100644
--- a/hw/bsp/rx/boards/rx65n_cloud_kit/board.mk
+++ b/hw/bsp/rx/boards/rx65n_target/board.mk
diff --git a/hw/bsp/rx/boards/rx65n_cloud_kit/r5f565ne.ld b/hw/bsp/rx/boards/rx65n_target/r5f565ne.ld
index a02f0c02f..a02f0c02f 100644
--- a/hw/bsp/rx/boards/rx65n_cloud_kit/r5f565ne.ld
+++ b/hw/bsp/rx/boards/rx65n_target/r5f565ne.ld
diff --git a/hw/bsp/rx/boards/rx65n_cloud_kit/rx65n_cloud_kit.c b/hw/bsp/rx/boards/rx65n_target/rx65n_target.c
index 895b82e23..96d8f36f0 100644
--- a/hw/bsp/rx/boards/rx65n_cloud_kit/rx65n_cloud_kit.c
+++ b/hw/bsp/rx/boards/rx65n_target/rx65n_target.c
@@ -24,6 +24,37 @@
* This file is part of the TinyUSB stack.
*/
+/* How to connect JLink and RX65n Target and option board
+ * (For original comment https://github.com/hathach/tinyusb/pull/922#issuecomment-869786131)
+ *
+ * To enable JTAG, RX65N requires following connections on main board.
+ * - short EJ2 jumper header, to disable onboard E2L.
+ * - short EMLE(J1-2) and 3V3(J1-14 or J2-10), to enable In-Circuit Emulator.
+ *
+ * Note: For RX65N-Cloud-Kit, the option board's JTAG pins to some switches or floating.
+ * To use JLink with the option board, I think some further modifications will be necessary.
+ *
+ * | Function | RX65N pin | main board | option board | JLink connector |
+ * |:---------:|:----------:|:----------:|:------------:|:---------------:|
+ * | 3V3 | VCC | J1-14 | CN5-6 | 1 |
+ * | TRST | P34 | J1-16 | CN5-7 | 3 |
+ * | GND | VSS | J1-12 | CN5-5 | 4 |
+ * | TDI | P30 | J1-20 | CN5-10 | 5 |
+ * | TMS | P31 | J1-19 | USER_SW | 7 |
+ * | TCK/FINEC | P27 | J1-21 | N/A | 9 |
+ * | TDO | P26 | J1-22 | CN5-9 | 13 |
+ * | nRES | RES# | J1-10 | RESET_SW | 15 |
+ *
+ * JLink firmware needs to update to V6.96 or newer version to avoid
+ * [a bug](https://forum.segger.com/index.php/Thread/7758-SOLVED-Bug-in-JLink-from-V6-88b-regarding-RX65N)
+ * regarding downloading.
+ *
+ * When using SEGGER RTT, `RX_NEWLIB=0` should be added to make command arguments.
+ * The option is used to change the C runtime library to `optlib` from `newlib`.
+ * RTT may not work with `newlib`.
+ *
+ */
+
#include "bsp/board.h"
#include "iodefine.h"
#include "interrupt_handlers.h"