Show Posts
Pages: 1 ... 7 8 [9] 10 11 ... 17
121  Products / Arduino Due / Re: Sam3x8e temperature on: August 13, 2013, 09:00:00 am
Hi Basel,

Just dug up this old thread - I've just burned your temp sensor code to my Due board with BOSSAC, and after about 5 minutes the chip is at ~36.4degrees, and it can't be more than 20 degrees inside here today!

What was ambient when you did the test?

Hey,

Well, can't exactly remember.. But not more than 15-17ºC... 36.4ºC is kinda normal.. The internal temp. sensor isn't that accurate either.. And I don't really know if it needs some kind of calibration.. As long as it's not hot to touch, you don't have to worry..

//Basel
122  Using Arduino / Microcontrollers / Re: SAM Datasheets - No 'soft erase' procedure. on: August 05, 2013, 08:57:49 am

I don't - per se, as BOSSAC works fine, and I can include BOSSAC in an application if I like to be able to program my devices. (Speaking of BOSSAC by the way, who makes it - and where can I find documentation etc?)

It simply frustrates me, that I cannot, or we cannot, get the official Atmel tool to even connect to the devices...

Well, you're not using an official Atmel board smiley-wink... Here is a link to the official website for bossa (bossac).. http://www.shumatech.com/web/products/bossa

Edit: Quote from the bossa website:
Quote
SAM-BA ships with support for all of Atmel's evaluation kits but does not provide generic configurations for other boards.  It is a complex task with little documentation to modify SAM-BA to support custom boards.  Sometimes, one can get away with using one of the evaluation kit configurations if it is similar to a custom board but other times not since custom external devices could cause a conflict.

//Basel
123  Using Arduino / Microcontrollers / Re: SAM Datasheets - No 'soft erase' procedure. on: August 05, 2013, 07:49:01 am
Yes, we had a similar discussion about the bootloader somewhere in this forum (or maybe another forum?).. The 1200bps trigger won't erase the flash.. it just simply send the sam chip to the bootloader... The bootloader makes the soft erase and programs your sketch..

Hard erasing and reseting the chip will send it to the bootloader (ROM, as you found in the datasheet.. No, this is not the problem that's preventing us from communicating with SAM-BA..

May I ask why you need to use sam-ba?
124  Using Arduino / Microcontrollers / Re: SAM Datasheets - No 'soft erase' procedure. on: August 04, 2013, 06:26:08 pm
No, it's not the bootloader.. But it's a part of your sketch.. When you compile your sketch there is a bunch of files/libraries getting compiled together with the sketch..

The 1200bps open and close routine is a part of the arduino USB code.. If you want to see it for yourself open the following file:

Quote
C:\arduino-1.5.2\hardware\arduino\sam\cores\arduino\USB\CDC.cpp
...

You'll find it somewhere between line 128 and 142... Here is a part from the code:

Code:
if (CDC_SET_CONTROL_LINE_STATE == r)
{
_usbLineInfo.lineState = setup.wValueL;
// auto-reset into the bootloader is triggered when the port, already
// open at 1200 bps, is closed.
if (1200 == _usbLineInfo.dwDTERate)
{
// We check DTR state to determine if host port is open (bit 0 of lineState).
if ((_usbLineInfo.lineState & 0x01) == 0)
initiateReset(250);
else
cancelReset();
}
return true;
}

//Basel
125  Using Arduino / Microcontrollers / Re: SAM-BA, BOSSA etc - no connection on: August 03, 2013, 07:23:29 am
Good work.. =D.. The pin mapping in ASF is kinda strange.. If you want, you can post your code and the board type you chose in atmel studio and I'll look into it.. But I'm sure that you can manage to figure it out on your own..

//Basel
126  Using Arduino / Microcontrollers / Re: SAM-BA, BOSSA etc - no connection on: August 03, 2013, 06:36:29 am
Quote
I see you couldn't wait for me to answer your question in the other thread..

I thought I was a little close to threadjacking - and that a new thread may help others in the future. smiley

I've just tried this, and all I get is 'bossac.exe is not recognised as an internal or external command, operable program or batch file.'

the YOUR_FILE bit? Is that just a file name, or does it have to be the file location and name, for example C:\Users etc?

The following error: 'bossac.exe is not recognised as an internal or external command, operable program or batch file.', means that you're not in the root directory of bossac when you call the command.. You'll have to "cd" into that directory before you call the command.. You'll find bossac somewhere in the sam folder (arduino ide folder)..

The YOUR_FILE.bin is just the compiled binary file for your sketch (Just like avr chips uses hex files)....

Edit: I just saw your edited post.. I'll have to get back with a proper solution, because I'm still at work.. I will look at my setup at home and report back..  Still if you know how to compile your sketch/project and manage to call bossac, my instructions above will work without any problems..

//Basel
127  Products / Arduino Due / Re: Arduino Serial Port in Matlab on: August 03, 2013, 02:54:05 am
Hey,

Well, I guess you used something like the following to open the serial port:

Code:
s = serial(.......);
fopen(s);

To close the serial connection just type the following before closing matlab:

Code:
fclose(s);

This works for me without any problem.. Which version of Matlab are you using??

//Basel
128  Using Arduino / Microcontrollers / Re: SAM-BA, BOSSA etc - no connection on: August 03, 2013, 02:41:50 am
I see you couldn't wait for me to answer your question in the other thread.. Anyway.. To answer your question about bossac.. If your programming the chip through the built-in USB interface use the following command:

Quote
bossac.exe --port=COM9 -U true -e -w -v -b YOUR_FILE.bin -R

Otherwise, if your programming through a FTDI (like the Due programming port), use this command instead:

Quote
bossac.exe --port=COM9 -U false -e -w -v -b YOUR_FILE.bin -R

//Basel
129  Using Arduino / Microcontrollers / Re: [Solved] Help with ATSAM3X8E (Due barebones) on: August 03, 2013, 02:24:35 am
I see - well done again!

EDIT - I've just been playing with Atmel Studio, my Due and SAM-BA trying to get some results. Maybe you can help.

When I open SAM-BA, under 'Select your board' - what did you select, no_board? As when I press connect SAM-BA just disappears but seems to be running in the background according to Windows Task Manager.

Well, I remember I had a lot of trouble with SAM-BA.. I tried no_board and also atmels official sam3x8e board (I'm currently at work and can't remember the name of the board).. In both cases I got an error and the board refused to connect.. I also remember that SAM-BA disappeared just as you describe it.. I didn't look into it further.. I'll have a look at it when I get home and report back!

//Basel
130  Using Arduino / Microcontrollers / Re: [Solved] Help with ATSAM3X8E (Due barebones) on: August 01, 2013, 05:10:12 pm
I'll look into that in the morning, thanks.

When you say you've been programming it from Atmel Studio, what have you been doing code wise? Coding using pure C and not the Arduino libraries etc?

Well, I wouldn't call it pure C.. But sure.. C/C++.. No arduino libraries.. In the case of the SAM chip, I'm only using ASF (Atmel Software Framework) in Atmel Studio..

P.S: Arduino IDE uses ASF .. D.S

You're welcome bro =)..
//Basel
131  Using Arduino / Microcontrollers / Re: [Solved] Help with ATSAM3X8E (Due barebones) on: August 01, 2013, 04:37:04 pm
So, you got this working and you're currently programming the chip over USB?

You mentioned using Atmel Studio, is that with a USB cable, or using a SAM-ICE?

Yes... USB only.. I don't have SAM-ICE or any other JTAG module.. Fortunately the chip comes preloaded with a bootloader... I've programmed the chip with Atmel Studio over USB.. It's simple.. Just create a external tool (http://www.atmel.no/webdoc/atmelstudio/atmelstudio.section.csl_qbq_kc.html) in Atmel Studio.. The tool will consist of a call to bossac (just like the Arduino IDE).. If you need further details let me know..

//Basel
132  Using Arduino / Motors, Mechanics, and Power / Re: how to make brakes for RC car ? on: July 23, 2013, 05:41:27 pm
Going reverse like everyone suggested here is one solution.. I've used the L293D chip, but never needed a break system.. So I didn't really think about it then.. You can look at how the arduino team did it with their motor shield (L298P)(http://arduino.cc/en/Main/ArduinoMotorShieldR3).. Pins 9 and 8 are coupled to some breaking function for motors A and B.. Looking at the schematic, sending a high or low to the break pin is the same as putting the direction pins on the chip to the same state (both high or low).. You can also look at the logic table for the chip on page 6/13 in the datasheet (http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00000240.pdf)..

Good luck

//Basel
133  Using Arduino / Microcontrollers / Re: How to turn ATTiny PB5 RESET and I/O pin into a regular I/O PIN? Changing RSTDIS on: July 23, 2013, 05:23:09 pm
That link wouldn't really help much for an Attiny85. This would however:
http://www.rickety.us/2010/03/arduino-avr-high-voltage-serial-programmer/

Well my link describes how the project started etc.. If you read on you can see at the bottom that there is a link with an updated version like the one posted by hiduino which support t85 and t2313... You can't expect me to give the thread starter everything on a silver plate smiley-wink..
134  Using Arduino / Microcontrollers / Re: How to turn ATTiny PB5 RESET and I/O pin into a regular I/O PIN? Changing RSTDIS on: July 23, 2013, 02:39:53 pm
You can also make the following shield that turns a arduino to a high voltage programmer.. Here it is: http://mightyohm.com/blog/2008/09/arduino-based-avr-high-voltage-programmer/
135  Products / Arduino Due / Re: What are those RX and TX leds for? on: July 22, 2013, 10:18:05 pm
Hi can anyone tell me which pins they are connected to please ?  smiley

A simple forum search would have answered this question (Arduino Due pinout).. The TX led is digital pin 73 and RX 72..

//Basel
Pages: 1 ... 7 8 [9] 10 11 ... 17