Using e2 Studio wit the Arduino R4 WiFi board

I just got my R4 WiFi and really wanted to dive into the guts of it.
I love the eclipse IDE so looks like e2 Studio was the way to go.
I found an example online about creating a "Bare Metal Blinky Project" and
seems like my code should work but of course it doesn't.

I figured out how to upload my code using the arduino-cli.exe tool
(unfortunately you must install the complete Arduino IDE and R4 board package to do this)

This simple Blinky code works when compiled and loaded through the Arduino IDE

while(1)

{

R_BSP_PinWrite (LED_PIN, BSP_IO_LEVEL_HIGH);

R_BSP_SoftwareDelay (500, BSP_DELAY_UNITS_MILLISECONDS);

R_BSP_PinWrite (LED_PIN, BSP_IO_LEVEL_LOW);

R_BSP_SoftwareDelay (500, BSP_DELAY_UNITS_MILLISECONDS);

}

However no luck with e2 Studio .. Here's some details

Board= Custom User Board, Device = R7FA4M1AB3CFM

I have defined as BSP_IO_PORT_01_PIN_02 which is built in LED on the Arduino R4 board.

My clock configuration is set to HOCO 48MHz

It would be great if there was a way to select the Arduino R4 board in e2 Studio.

Has anybody else tried this?

Thanks

Parents Reply Children
No Data