Arduino upload error with matlab

Hi

When I test to upload a program with arduino.exe, it works perfectly fine.

But I want to use matlab/simulink to create programs. Matlab correctly makes the.hex file. But to upload the file, matlab does : c:/ARDUIN~1/hardware/tools/avr/bin/avrdude -V -F -C c:/ARDUIN~1/hardware/tools/avr/etc/avrdude.conf -p atmega328p -P //./COM4 -c stk500v1 -b 57600 -U flash:w:demo_arduino_blink.hex

And avrdude answers : avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

So my question is : Where can I read the command line that arduino.exe uses to upload his own .hex file ? If I had this command line, that perfectly works, I could (maybe :fearful:) configure matlab to upload !

Bests regards, Guillaume

-b 57600

Try 115200 baud rateā€¦

-b 115200

Where can I read the command line that arduino.exe uses to upload his own .hex file ?

Hold down the shift key when you click Upload.