Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for WeAct Studio RA4M1 Board #17

Open
djix123 opened this issue Oct 25, 2023 · 5 comments
Open

Add support for WeAct Studio RA4M1 Board #17

djix123 opened this issue Oct 25, 2023 · 5 comments

Comments

@djix123
Copy link

djix123 commented Oct 25, 2023

Please would you consider adding support for the new WeAct Studio RA4M1 board:

https://github.com/WeActStudio/WeActStudio.RA4M1_64Pin_CoreBoard

Thanks!

@arwidcool
Copy link

I second this one.

I ordered one. If I can set up the board correctly I will link it for someone to check over.

@djix123
Copy link
Author

djix123 commented Oct 31, 2023

I've had some success by using the UNO R4 Minima as the board selection, and using JLink. Not perfect, but can get it going.

@arwidcool
Copy link

arwidcool commented Nov 29, 2023

I've had some success by using the UNO R4 Minima as the board selection, and using JLink. Not perfect, but can get it going.

Having some issues initializing a blink sketch, Says programming is successful . The pin mapping on the LED corresponds to "pin 21" on the Arduino. Do you have your blink code?

(EDIT:)

Got it working.

You need to add "frequency = 48000000L" to the platformio.ini file

I also flashed the bootloader before direct via Renesas Flash Programmer but I am not sure if that helped.

Also was able to get unexposed pins working by first adding the pin to :
"extern "C" const PinMuxCfg_t g_pin_cfg[] " location in variant.cpp
Example : PIN 206 to D17 : {BSP_IO_PORT_02_PIN_06, P206}, /* (27) D17 */
and then defining the array position in pins_arduino.h
and adding the "#define PIN_D17 (27u)"

Were 27U is the array position. This way by calling PIN_D17 should call array position 27

I am just finishing up another project and I will sit down and re-edit the arduino uno minima board files and the framework variants to work with the renesas board as a board selection.

@djix123
Copy link
Author

djix123 commented Dec 1, 2023

That sounds good. In the end I started playing with the RASC directly:

https://github.com/djix123/WeActRA4M1CMake.git

https://github.com/djix123/WeActRA4M1RASC.git

@arwidcool
Copy link

That sounds good. In the end I started playing with the RASC directly:

https://github.com/djix123/WeActRA4M1CMake.git

https://github.com/djix123/WeActRA4M1RASC.git

Using the the Minima board and flashing with jlink when setting the cpu freq i was able to get the USB working no issues btw, so it has all the features and you can expose the pins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants