Recent

Author Topic: Arduino R4  (Read 1289 times)

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 360
  • My software never cras....
Arduino R4
« on: November 27, 2024, 01:17:52 am »
The Arduino R4 sports a 32 b ARM processor at a nice work capable 48 MHz, 256 KB of Flash and 32 KB of RAM.

Is there a FreePascal path to that?  The thought of barfing Arduino sketch-C at that thing gives me the geebies[1]!

Don't need no stinkin' OS!  Embedded Runtime for me!

Edits: Corrected memory size (KB, not MB) - caught by: alpine
---
[1] Geebies - a queasy feeling of unease mixed with a fear of forever lost time.
« Last Edit: November 27, 2024, 03:51:49 pm by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

ccrause

  • Hero Member
  • *****
  • Posts: 970
Re: Arduino R4
« Reply #1 on: November 27, 2024, 06:30:44 am »
Are you specifically referring to the minima? That is a Cortex M4 so in principle it is supported, however I don't see a controller unit for the RA4M1 so definitions for the peripherals will be missing.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11944
  • FPC developer.
Re: Arduino R4
« Reply #2 on: November 27, 2024, 10:21:39 am »
Hmm, CAN and DMA, and shop also has a W5500 shield ...
« Last Edit: November 27, 2024, 01:40:02 pm by marcov »

alpine

  • Hero Member
  • *****
  • Posts: 1302
Re: Arduino R4
« Reply #3 on: November 27, 2024, 01:33:41 pm »
The Arduino R4 sports a 32 b ARM processor at a nice work capable 48 MHz, 256 MB of Flash and 32 MB of RAM.
Kilo, not Mega ;)
Quote
The MCU on the board is the high performance Renesas RA4M1 (Arm® Cortex®-M4) with a 48 MHz clock speed, 32 kB SRAM and 256 kB flash memory.

"I'm sorry Dave, I'm afraid I can't do that."
—HAL 9000

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 360
  • My software never cras....
Re: Arduino R4
« Reply #4 on: November 27, 2024, 03:47:24 pm »
The Arduino R4 sports a 32 b ARM processor at a nice work capable 48 MHz, 256 MB of Flash and 32 MB of RAM.
Kilo, not Mega ;)
Quote
The MCU on the board is the high performance Renesas RA4M1 (Arm® Cortex®-M4) with a 48 MHz clock speed, 32 kB SRAM and 256 kB flash memory.

Doh!  I think I forgot how to type K__

Even with that many Kbs I can do a lot.

Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 360
  • My software never cras....
Re: Arduino R4
« Reply #5 on: November 27, 2024, 03:49:58 pm »
Hmm, CAN and DMA, and shop also has a W5500 shield ...

They have a very nice 9 axis shield as well...
9-axis shield

Moderator notice: fixed link. =--> As poster was looking around to see how to fix it... thanks.
« Last Edit: November 27, 2024, 03:52:51 pm by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

Laksen

  • Hero Member
  • *****
  • Posts: 785
    • J-Software
Re: Arduino R4
« Reply #6 on: November 27, 2024, 03:59:14 pm »
As said, it's a Cortex-M4 with FPU. Well-supported instruction set in FPC

But.. It's a Renesas. Personally I'm not touching their stuff
Case in point, they only have a single Errata sheet published. For a device with a 1400 page manual

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 360
  • My software never cras....
Re: Arduino R4
« Reply #7 on: November 27, 2024, 05:29:24 pm »
As said, it's a Cortex-M4 with FPU. Well-supported instruction set in FPC

But.. It's a Renesas. Personally I'm not touching their stuff
Case in point, they only have a single Errata sheet published. For a device with a 1400 page manual

What device is that?

I can't speak to this new Arduino, but having used many Arduino's for many, many small projects with ease and reliability, I wouldn't dismiss them for project boots at all.  I also use them to "s]"]>Blockedlate" other projects (in effect make sensor or actuator simulators for other devices during development and test).  My son made a drone that measured interior dimensions of rooms with one.

They also have a more professional line of boards for manufacturers, in there caution is warranted - but then the proof is in the eating.
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11944
  • FPC developer.
Re: Arduino R4
« Reply #8 on: November 27, 2024, 05:36:26 pm »
They have a very nice 9 axis shield as well...
9-axis shield

I have my own axis platform for slightly heavier motor, based on external ACT closed loop stepper drivers(typically Reichelt) in combination with an own dspic33e board. 3/4 active motors per board that can run concurrently with very low CPU use. (using hardware peripherals for the pulse generation). 

Disadvantage: Eur 30-50 per axis for the driver.
Advantage: with the motor done by the external driver and the peripheral code done, it is almost scripting to program actions.  Also we can generate hardware derivative signals of the movement ( a pulse every configurable pulses of the motor) for e.g. precision triggering.

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 360
  • My software never cras....
Re: Arduino R4
« Reply #9 on: November 29, 2024, 01:39:15 am »
They have a very nice 9 axis shield as well...
9-axis shield

I have my own axis platform for slightly heavier motor, based on external ACT closed loop stepper drivers(typically Reichelt) in combination with an own dspic33e board. 3/4 active motors per board that can run concurrently with very low CPU use. (using hardware peripherals for the pulse generation). 

Disadvantage: Eur 30-50 per axis for the driver.
Advantage: with the motor done by the external driver and the peripheral code done, it is almost scripting to program actions.  Also we can generate hardware derivative signals of the movement ( a pulse every configurable pulses of the motor) for e.g. precision triggering.

Sounds too steady state for my needs - or I'm not getting what you're doing.

Given their market of the "maker" / "hobbyist" / "tinkerer" this shield is pretty good.  I've integrated (badly so far) a SparkFun 6 axis (gyros and accels) board to a RaspPi under Ultibo (RTL) - hard to debug when you go in the weeds alone - this shield looks easier to use and better (and is larger and heavier too....).  I'm tempted to get the R4 and make it the inertial platform to feed reduced ("integral") data to the Pi.  (If your "he's a lazy bastard" detector went off, it's in good order).

Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11944
  • FPC developer.
Re: Arduino R4
« Reply #10 on: November 29, 2024, 01:02:53 pm »
Sounds too steady state for my needs - or I'm not getting what you're doing.

Simple, pick up a beer bottle, put it down a meter further. Wine bottle works too, as do jars for vegetables and pickled stuff. I tried an olive oil bottle (here they are typically square) once, and while it could lift it, but was an edge case. It would require punched out the side of the machine, and a better solution for counter weights. Luckily none of our customers has pressurised bottles (like champagne) since those are even heavier.  3 axis (clench, lift and move) using spiral spindles.

It is professional in 24x7 use, but basically a scaled out hobby/maker design and components, like all our electronics. CPU wise, our main workhorse is the micrcohip dspic33<flash kb>MU/MC8xx series.

But since we have our own pick-n-place we are less bound by what is available.


I'm interested in the R4 for some ARM experience, and having SPI and CAN (peripherals that we use a lot) is a pre.  The SPI we use to connect to W5500, which is on said ethernet shield
« Last Edit: November 29, 2024, 01:41:05 pm by marcov »

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 360
  • My software never cras....
Re: Arduino R4
« Reply #11 on: November 30, 2024, 02:36:35 am »
I'm interested in the R4 for some ARM experience, and having SPI and CAN (peripherals that we use a lot) is a pre.  The SPI we use to connect to W5500, which is on said ethernet shield

Not sure using such an Arduino would constitute "ARM experience" as the processor detail is well obfuscated - esp. if you use the Arduino "sketch" IDE.

I'd be interested in programming the the R4 in Pascal but not up to working out how to get it going.
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

Laksen

  • Hero Member
  • *****
  • Posts: 785
    • J-Software
Re: Arduino R4
« Reply #12 on: November 30, 2024, 04:20:24 am »
I'm interested in the R4 for some ARM experience, and having SPI and CAN (peripherals that we use a lot) is a pre.  The SPI we use to connect to W5500, which is on said ethernet shield

Not sure using such an Arduino would constitute "ARM experience" as the processor detail is well obfuscated - esp. if you use the Arduino "sketch" IDE.

I'd be interested in programming the the R4 in Pascal but not up to working out how to get it going.

It says on the page for the product that it's a "Renesas RA4M1" microcontroller

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11944
  • FPC developer.
Re: Arduino R4
« Reply #13 on: November 30, 2024, 05:49:44 pm »
I'd be interested in programming the the R4 in Pascal but not up to working out how to get it going.

No idea. I also don't know how complicated the R4 is getting it running naked (for the Arduino Due that is quite involved, and I never got around to it)

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 360
  • My software never cras....
Re: Arduino R4
« Reply #14 on: November 30, 2024, 09:34:59 pm »
I'd be interested in programming the the R4 in Pascal but not up to working out how to get it going.

No idea. I also don't know how complicated the R4 is getting it running naked (for the Arduino Due that is quite involved, and I never got around to it)

Arduino Sketch is pretty simple - I've used it for half a dozen or more projects - so I assume starting there for the R4 is just as easy.

What I see as problematic with the R4 is the program complexity getting larger (because: more flash and RAM), so managing it all with Sketch might not be ideal.  Don't know (haven't looked) if there are alter IDE's for Arduino - probably are.  There are certainly a lot of libraries out there for various functions and add on boards and devices.
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

 

TinyPortal © 2005-2018