Azzera filtri
Azzera filtri

MATLAB 2014b Arduino Simulink programming of Pro Mini

14 visualizzazioni (ultimi 30 giorni)
Donald
Donald il 9 Lug 2015
Commentato: Donald il 27 Nov 2017
I am using MATLAB 2014b with the Arduino Simulink package to build a project for a controller which uses an Arduino Pro Mini (Atmega 328P processor.) The Arduino Simulink package supports the Pro and the Mini, but not the Pro Mini. The Pro setup doesn't include all of the Analog ports that the Pro Mini or Mini have, and they are required by my application. I am able to use the Mini option to build the object code but when it tries to flash it just hangs. I need to do a <ctrl>C in the MATLAB command window to free it up. I am able to use the command: dos 'C:/Users/vzsmpv/DOCUME~1/ARDUIN~1/hardware/tools/avr/bin/avrdude -V -F -C C:/Users/vzsmpv/DOCUME~1/ARDUIN~1/hardware/tools/avr/etc/avrdude.conf -p atmega328p -P //./COM8 -c stk500v1 -b 57600 -U flash:w:can_motor_control_3p5_2014b_rtt\can_motor_control_3p5_2014b.hex' to flash the controller and my code works fine. I have the correct com port in my setup (it complains about non-detected com port if I don't). Is there a config file somewhere that can be manually edited to change the programming options, or some other way to have the build process automatically flash the Pro Mini? Tools - Run on Target Hardware - Options doesn't have any useful options.
Thanks, Don
  2 Commenti
Thomas Bosse
Thomas Bosse il 25 Nov 2017
Same here! Did you find out something in the meanwhile?
Donald
Donald il 27 Nov 2017
After several emails with Matlab (back in July 2015) they said I should use “Arduino Nano 3.0” since it has the same hardware setup as the Pro Mini. That worked and I used it in both 2014b and 2015b.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Arduino Hardware in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by