I would like to connect nrf8001 to a Renesas microcontroller but I could not find any documentation on how to proceed with this step. The only documentation I could find is how to connect nrf8001 with Arduino.
I was wondering if anyone could give me a brief explanation on the steps need to be taken to implement this.
Any help would be highly appreciated.
Thank you in advance.
You can use Arduino library, but you only have to change SPI driver so it works with Renesas microcontroller and still be compatible with HAL. I did that some time ago... Library works like charm, just connect the module properly and make SPI work.
Hi Wojtek, thank you so much for such a quick response! Is this the Arduino library you're referring to: github.com/.../ble-sdk-arduino
If yes, could you please tell me which file do I need to change? Also, have you used Renesas microcontroller aswell? I've connected SCK, MOSI, MISO, REQ, GND and VIN pins as those are the only pins I could configure on Renesas microcontroller, do you think that would be enough?
Sorry about all the questions, its really hard to find help on integrating nrf8001 with another microcontroller other than Arduino. Thank you in advance!
Ok, now i remember more (did that ~2 years ago, could not be correct) - it is not the same library I was using actually. I think I used examples for nrf6310 motherboard which had some other uc there (51-series something?). Here the files are .cpp, and I think i used .c. But if you will be able to compile it, it should also work. In the library from your linkthere is a file hal_aci_tl.cpp, it calls some functions from SPI.h which is Arduino SPI library. You should prepare similar library for renesas uc and just use it there instead.
I think you should also connect RESET pin of nrf8001 somewhere, probably to hi-logic :)
Renesas port for nRF8001 is available in on github . This is for the RL78.
@Keerthi: Besides the Arduino SDK, there are some other material you can have a look at:
nRF8001 Product Specification (where the interface and protocol with MCU are defined)
nRF8001 SDK, there are some example project showing how to interface with nRF8001 from a Nordic's test MCU. But the principles are the same for any MCU.