But I have problems in "Step 3" :
- When I do "Installer(6)", I have to choose between lms_arm_nbcnxc_107.rfw and lms_arm_nbcnxc_128.rfw . Whitch one do I have to choose ?
- I choosed the 128 one to try. How can I see if the new firmware is correctly installed with "install(6)" ? My Lego doesn't give me any sign of life during the download !
I have problem in "Step 4" too :
When I try an installer(7), I want to give the name "HELLO", but the response is :
...Did not appear to rename correctly:
The baud rate is configured at 57600, but my baud rate is 115200. (So, the upload don't works)
Do you know how to configure the baud rate in :
c:/AARDUI~1/hardware/tools/avr/bin/avrdude -V -F -C c:/AARDUI~1/hardware/tools/avr/etc/avrdude.conf -p atmega328p -P //./COM4 -c stk500v1 -b 57600 -U flash:w:demo_arduino_blink.hex ?
I've gone ahead and created a tutorial for integrating the new Arduino 1.0.3 libraries in with this support package. There are some directions in this post that I have borrowed from to compose it, but I thought it would be useful to keep everything in once place.
I have a problem using the arduino target.
I am trying to send data via serial communication from a model running on arduino to a model running in my computer.
The problem is that I get wrong values when the data I am about to send are negative (i.e. the transmission is fine when I am sending values 0 or greater but wrong when they are below zero (instead of -4 I receive 252 etc)).
I also tried to send negative values through the example that you have (demo_arduino_serial_communication and demo_arduino_serial_communication_host), by changing the Analog input block with a constant block and once again it works fine when using values zero or greater but I am getting the following error message when I am trying to send negative values through the serial communication.
"Parameter overflow occurred for 'Value'. The parameter's value is outside the range that the run-time data type can represent. The specified value was saturated to the closest representable value. You can control this diagnostic on the Diagnostics pane of the Configuration Parameters dialog."
I thought to try and change something on the Diagnostics pane, but I thought that it would be wiser to ask someone more experienced first.
What do you think?
I have an arduino UNO and MATLAB R2011b.
Thanks in advance,
a desperate student
This also works with (at least) Arduino 1.01 on Mac OS Mountain Lion with the fixes by Stefan Disch and at least:
-Set the comport to whatever is stated in Arduino, usually /dev/tty..., the find comport does not work
-Adapt /arduino/+arduino/runAvrDude.m by removing whatever is in between "-P" and "%s" on line 23
-You will get a check for Arduino.exe, which does not exist. Remove it and set the path with arduino.Prefs.setArduinoPath('/Applications/Arduino.app/Contents/Resources/Java/')
-Go to the Arduino folder and copy Arduino.h, name it WProgram.h. (whoever decided this was a good idea..)
Aditya, the C code for S-functions and corresponding TLC files are in the "blocks" directory. For more info on creating custom blocks: see http://www.mathworks.de/de/help/simulink/user-defined-functions.html