# BTstack Port for Renesas Eval Kit EK-RA6M4 with DA14531
This port uses the [Renesas EK-RA6M4](https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra6m4-evaluation-kit-ra6m4-mcu-group) and a Renesas DA14531 Controller on the [MikroeE BLE Tiny Click board](https://www.mikroe.com/ble-tiny-click)
Renesas e2 Studio (Eclise-based) was used with the FSP HAL and without an RTOS to generate project sources.
Then, a new CMake buildfile was created to allow for cross-platform development and compilation of all examples.
For easy debugging, Ozone project files are generated as well.
## Hardware
### Renesas Eval Kit EK-RA6M4:
- The RA6 contains a build in J-Link programmer which supports debut output via SEGGER RTT.
- It uses the MikroBus port for the DA1451
| MikroBus | MCU | Function |
|----------|-------|---------------------|
| J21/2 | P115 | RESET (active high) |
| P21/3 | P205 | RTS |
| J21/4 | P204 | CTS |
| J22/4 | P613 | TX |
| J22/3 | P614 | RX |
- UART RTS: Manual RTS control in UART callback handler. MikroBus slot with UART 7 does not have RTSCTS7
on the pin used by BLE Tiny Click module.
- BSP
```
// 0x1000 main stack
#define BSP_CFG_STACK_MAIN_BYTES (0x1000)
// printf allocates memory from the heap
#define BSP_CFG_HEAP_BYTES (0x800)
```
### Renesas DA14531 Module on MikroE BLE Tiny Click board with
- The board comes with some demo application and needs to be programmed with an HCI firmware to use it with a regular Bluetooth stack.
- Firmware details:
- Keil uVision project `DA145xx_SDK/x.x.xx.xxxx/projects/target_apps/hci` on Windows