Arduino Due

General discussions about working with the Astrobe IDE and programming ARM Cortex-M0, M3, M4 and M7 microcontrollers.
Post Reply
steve64
Posts: 43
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Arduino Due

Post by steve64 » Mon Jul 09, 2018 1:26 pm

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?

cfbsoftware
Site Admin
Posts: 516
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: Arduino Due

Post by cfbsoftware » Wed Jul 11, 2018 12:03 pm

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.

steve64
Posts: 43
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Re: Arduino Due

Post by steve64 » Wed Jul 11, 2018 2:07 pm

Thanks. I think that the bossac utility should be the tool for uploading compiled images.
Will try to follow your hints.

Post Reply