summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-06-29 16:52:16 +0700
committerGitHub <[email protected]>2021-06-29 16:52:16 +0700
commitf1af90d8eb06e3909243c40a48d798c72a77821e (patch)
tree507969e6171b991404e5607d1e6c3827bb88e95d
parent6e939de9d673979721b83b0b3ab724ebd652770c (diff)
parentb2fa7358cf93ec49c2e931034c89b605b0820bb1 (diff)
Merge pull request #933 from hathach/update-rx65n-bsp
rename rx65n cloud kit to target
-rw-r--r--docs/boards.md2
-rw-r--r--hw/bsp/rx/boards/gr_citrus/gr_citrus.c2
-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
5 files changed, 33 insertions, 2 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/gr_citrus/gr_citrus.c b/hw/bsp/rx/boards/gr_citrus/gr_citrus.c
index 6697012a7..b773e0dd0 100644
--- a/hw/bsp/rx/boards/gr_citrus/gr_citrus.c
+++ b/hw/bsp/rx/boards/gr_citrus/gr_citrus.c
@@ -34,7 +34,7 @@
*
* The pads are [the back side of GR-CITRUS](https://www.slideshare.net/MinaoYamamoto/grcitrusrx631/2).
*
- * Connet the pins between GR-CITRUS and JLink as follows.
+ * Connect the pins between GR-CITRUS and JLink as follows.
*
* | JTAG Function | GR-CITRUS pin name| JLink pin No.| note |
* |:-------------:|:-----------------:|:------------:|:--------:|
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"