Show Posts
Pages: [1] 2 3 ... 459
1  Using Arduino / Microcontrollers / Re: Adding support for ATmega32c1 (Verification Error) on: Today at 12:06:49 am
I am currently using a altered version of the optiboot code for my bootloader.
Which version of optiboot, and altered how?
Note that the current optiboot "master" version on theoretically supports ATmega32 without modifications (but you will have to build your own .hex file.)
2  Using Arduino / Programming Questions / Re: Problem with interrupts, can't figure out why it won't work on: August 21, 2014, 05:26:52 pm
the error is occurring before I ever get there.
 // enable timer compare interrupt:
 what you see is currently all of my code.

Where is the timer1 compare ISR?
Enabling an interrupt without having an ISR will cause a continuous reset loop; is that what you're seeing (I don't think you ever said exactly what is happening, beyond "it's not working."
3  Using Arduino / Microcontrollers / Re: issue with ArduinoISP when writing to target-EEPROM on: August 21, 2014, 10:13:24 am
avrdude -v -c arduino -v -C bin\arduino.conf -p atmega328p -P COM5 -U eeprom:w:eeprom_%1.hex:i -F
For talking to ArduinoISP, your avrdude command shoud look like:
avrdude -v -c stk500v1 -v -C bin\arduino.conf -p atmega328p -P COM5  -b19200-U eeprom:w:eeprom_%1.hex:i -F
4  Development / Other Software Development / Re: New peek function for HardwareSerial on: August 21, 2014, 02:28:11 am
These are awful.  Typically the buffer used for serial IO at the hardware level would be separate from the buffer used for parsing, even though that is somewhat memory inefficient.  Something like:

String token = Serial.readStringUntil('\n');
if (token == "RED") {
  // light red
} else if (token == "BLUE") {
  // light blue
} else if (token == "GREEN") {
  // light green
(Insert warning about String not being a great idea, given its current state, and maybe using Serial.readBytesUntil() and strcmp() instead.)
5  Using Arduino / Microcontrollers / Re: Upload hex file using bootloader on: August 21, 2014, 02:14:44 am
Leonardo uses "caterina" as the bootloader.
6  Using Arduino / Programming Questions / Re: (byte*)(void*)&value ??? on: August 21, 2014, 02:09:54 am
There could have been any number of casts between "&value" and "(byte*)", but the outcome would have been the same.
IIRC, C++ has some casting rules that are more complicated than those of C, so that there are SOME pointers or circumstances where you could not cast to a byte pointer ((byte*)) without first doing the cast to the generic pointer ((void*))
I am not enough of a C++ person to understand the details.
7  Using Arduino / General Electronics / Re: Best PCB degign for beginner. on: August 21, 2014, 02:03:09 am
Whether a part needs a "value" or not is something that you can control when you create the part via the radio button in the lower left corner of the "Device" panel.

In any case, it's not so much that everything reported by the ERC/DRC had to be FIXED, so long as they're understood.  That's why there is an "Approve" button.

Um, you should look at my tutorial on modifying design rules:
And be aware that switching regulators can be REALLY FUSSY about the PCB layout.

8  Using Arduino / Microcontrollers / Re: sketch bigger on MICRO? on: August 20, 2014, 09:43:29 pm
Feel like sharing your smaller driver?
It's depressing that so many of the libraries for dealing with "intelligent" chipsets (CC3000, Wiznet) end up being close to the size of full TCP stacks.
9  General Category / General Discussion / Re: selling a design on: August 20, 2014, 02:01:56 am
Do you have something like or that will operate from within Ukraine?  Those seem especially well matched with this sort of "recover expenses" effort (sell a relatively small number of things.)  I haven't used them as a seller, myself, so I don't know whether they'd work from a specific country, or without paypal. :-(

Having worked for a startup, I'll add the depressing reality that if you want to make money, then all those jobs that engineers like to sneer at (manufacturing, sales, marketing, packaging, shipping, documentation, advertising, accounting...) are pretty much every bit as important as the actual engineering.  And they're not "easier" than engineering (especially if you're an engineer.)  "recovering some of your costs" should be a little easier, but it's pretty easy to spend a lot more money than you expected on things other than the product itself.  You might find the EEVBLOG uRuler tale "amusing":
10  Using Arduino / Microcontrollers / Re: sketch bigger on MICRO? on: August 19, 2014, 11:41:11 pm
How much bigger does the sketch get?  As Paul said, the usual problem is that there is less room, not that the sketch gets too much larger.  (that said, a leonardo sketch has a USB driver in each sketch that uses "serial", IN ADDITION to the one in the bootloader.  About 3K extra in each one.)
11  Development / Other Hardware Development / Re: IS ARDUINO IDE SUPPORT SPANSION FM4 ARM PROCESSOR on: August 19, 2014, 02:46:08 am
The Arduino IDE does not support SPANSION FM4 ARM (nor any other Spansion chips.)

12  Development / Suggestions for the Arduino Project / Re: R: Road to solve the delay on the Arduino IDE on: August 19, 2014, 02:40:33 am
I thought that the original issue was window only, and is old.
A "delay" problem with Yun on Mac is probably a new and different problem; try starting a new thread.
13  Using Arduino / Microcontrollers / Re: Im seeking a bootloader for ATmega8 16 Mhz on: August 19, 2014, 02:33:00 am
Optiboot also includes support for ATmega8 at 16MHz.  The optiboot_atmega8.hex distributed with the Arduino IDE should do it, but you'll have to edit a boards.txt manually.  the latest optiboot no longer includes an ATmega8 .hex file, but you can build it yourself.
14  Using Arduino / Programming Questions / Re: FSM diagrams: states and transistions on: August 19, 2014, 12:01:17 am
In a "pure" state machine, the "fade" part would consist of multiple states, with boring transitions.
(LED10% -> LED20% -> LED30% -> LED40% ... unconditional, timed.  The process where a single state sits there and changes outputs is NOT "pure")  (of course, this level of purity can be annoying to implement...)
15  Using Arduino / Programming Questions / Re: programming confusion on: August 18, 2014, 11:55:26 pm
"int a,b;" is not an instance of the comma operator... :
"The use of the comma token as an operator is distinct from its use in function calls and definitions, variable declarations, enum declarations, and similar constructs, where it acts as a separator."

global variables are initialized to zero.  Local variables are not initialized unless you provide the initialization.
Pages: [1] 2 3 ... 459