Page 1 of 1

Arduino Due

Posted: Mon Jul 09, 2018 1:26 pm
by steve64
Is there already any porting of Astrobe to the Arduino Due board (Cortex M3)?
If not, which are the main steps to do such porting?

Re: Arduino Due

Posted: Wed Jul 11, 2018 12:03 pm
by cfbsoftware
Assumimg:
  • you have access to software to upload a Cortex-M3 'bin' executable file to the board
  • the memory map can be defined using Astrobe's configuration options

how much work you would have to do to get Astrobe executables working on the Arduino Due depends very much on which peripheral devices you want to use. As a minimum you would need to implement Main (OSC/Clock Control), GPIO / pin configuration, Serial (UART), and Timers to run the general examples. That typically is a total of ~500 lines of device-specific code.

SPI is usually the next (~200 lines) to do and I2C is the trickiest (~350 lines).

The generic library modules (Convert, FPU, Graphics, In, Out, Math, Random, Reals, ResData, Storage, Strings and Traps) should work without any modification.

Re: Arduino Due

Posted: Wed Jul 11, 2018 2:07 pm
by steve64
Thanks. I think that the bossac utility should be the tool for uploading compiled images.
Will try to follow your hints.