Arduino Due

Topics that are related to specific development boards (mbed, LPCXpresso, Embedded Artists, STM Nucleo, Olimex, Coridium, EzSBC etc)

Arduino Due

Postby 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?
steve64
 
Posts: 41
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Re: Arduino Due

Postby cfbsoftware » Wed Jul 11, 2018 12:03 pm

Astrobe is currently supported on Cortex-M3 devices designed by NXP (LPC13xx / LPC17xx) or STMicroelectronics (STML152). The Arduino Due board uses an ATMEL SAM3X device.

Assuming

  • the ATMEL device has comparable features to the NXP and STM devices
  • you have access to software to upload a bin / hex 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. It should be a much simpler exercise if you have the Personal or Professional edition of Astrobe as these include the NXP and STM versions of the source code of these modules.

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.
cfbsoftware
Site Admin
 
Posts: 395
Joined: Fri Dec 31, 2010 12:30 pm

Re: Arduino Due

Postby 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.
steve64
 
Posts: 41
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy


Return to Development Boards

cron