Show Posts
Pages: [1] 2 3 ... 12
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Help with installing a bootloader on: June 02, 2010, 12:21:28 am
Quote
This is what I am working on,

That's quite neat  smiley  Good work.
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Help with installing a bootloader on: May 28, 2010, 06:56:30 am
Quote
first mismatch at byte 0x1f000

Is your bootloader larger than 124kb ????
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Weird - strncpy won't copy the first char! on: July 27, 2010, 11:50:47 am
strncpy expects char* not char[], hence things like the following can be valid.

Code:
char* Moo()
{
 ┬ástatic char bar[] = "Hello world";
 ┬áreturn bar + 1;
}

Edit: I think this is what I initially had in mind.

Edit2: @ the OP, where are you printing this or seeing the output? It could be something completely different is wrong.
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Weird - strncpy won't copy the first char! on: July 27, 2010, 04:39:17 am
Quote
What do you mean "appending 1" to textArray?  Do you mean adding 1? Or what?

Yes,
Code:
textArray++
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Weird - strncpy won't copy the first char! on: July 26, 2010, 04:48:41 am
If textArray[0] == 0, the strlen(textArray) would == 0 too. and no text should print.

It sounds more like you are appending 1 to the textArray pointer somewhere.
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Cryptic Message from avrdude on: July 26, 2010, 07:38:40 am
Could the COM port somehow still be in use?
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Where'd my code go? on: July 19, 2010, 03:31:02 am
I guess what we really need is automatic source control  smiley
8  Forum 2005-2010 (read only) / Troubleshooting / Re: Where'd my code go? on: July 19, 2010, 03:15:01 am
Quote
I would not want it to as I often do some modifications to a sketch, only to then upload it and revert back to the old version.

Most IDE's have the undo buffer persist beyond saving. That is what I would normally do.  Not sure if the Arduino IDE does that.
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Where'd my code go? on: July 19, 2010, 02:23:10 am
The Arduino does not save when you compile/upload. IMO that is silly. I have lost several sketches when my PC crashed and I did not save.

Now I have an OCD about it...
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Serial getsync() error on: June 30, 2010, 06:38:18 am
Did you press the reset button (if needed) before/during the upload?
11  Forum 2005-2010 (read only) / Troubleshooting / Re: Serial reset problem with every new USB device on: July 07, 2010, 01:08:37 am
Thanks moorecj. I saw that option before, but the documentation was confusing, so I didnt bother.

I agree, it is really annoying when it resets every time the USB bus does an enumeration.
12  Forum 2005-2010 (read only) / Troubleshooting / Re: Strange behavior on: July 02, 2010, 08:34:41 am
It could be caused by anything.

I think it's like a bouncing button.

Perhaps add a test is code to check if returned value is 'out of expected range'.
13  Forum 2005-2010 (read only) / Troubleshooting / Re: Strange behavior on: July 02, 2010, 01:21:49 am
I dont see anything wrong that is obvious. Weird indeed.

There is one tip however, notice that when it gets that 0.0 value, it also detects a new peak.

My guess would be that this new peak is probably so big, that it cant be printed correctly, as the Arduino does not print in exponential format.

So choose a sensible maximum, like 10000 perhaps, and discard any of those 'bogus' values, and just take the next sample.

Hope this helps smiley
14  Forum 2005-2010 (read only) / Troubleshooting / Re: MegaISP error (when trying to burn the bootloader) on: July 05, 2010, 12:36:01 am
Make sure you are using the correct pins. They (10 - 13) are the spi pins, and should (or probably can) not be changed.
15  Forum 2005-2010 (read only) / Troubleshooting / Re: error compiling library (basic.h) on: July 01, 2010, 01:40:40 am
What is the errors?

Pages: [1] 2 3 ... 12