Loading...
  Show Posts
Pages: 1 2 [3] 4 5 ... 12
31  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: September 06, 2012, 05:41:24 am
Hi,

I have been trying to put eclipse to work with the pluggin.

I tried a simple SPI example to compile but i´m having some problems with variable scope due to problems in SPI and pins_arduino library.

The Eclipse Build process is giving me the following errors:

Code:
*** Clean-only build of configuration Release for project MCU3 ****

make clean
rm -rf  ./SPI/SPI.o  ./LiquidCrystal/LiquidCrystal.o  ./Firmata/Firmata.o  ./Ethernet/utility/socket.o ./Ethernet/utility/w5100.o  ./Ethernet/Dhcp.o ./Ethernet/Dns.o ./Ethernet/Ethernet.o ./Ethernet/EthernetClient.o ./Ethernet/EthernetServer.o ./Ethernet/EthernetUdp.o  ./EEPROM/EEPROM.o  ./MCU3.o  MCU3.eep  MCU3.hex  MCU3.lss  ./SPI/SPI.d  ./LiquidCrystal/LiquidCrystal.d  ./Firmata/Firmata.d  ./Ethernet/utility/socket.d ./Ethernet/utility/w5100.d  ./Ethernet/Dhcp.d ./Ethernet/Dns.d ./Ethernet/Ethernet.d ./Ethernet/EthernetClient.d ./Ethernet/EthernetServer.d ./Ethernet/EthernetUdp.d  ./EEPROM/EEPROM.d  ./MCU3.d  sizedummy  MCU3.elf
 

**** Build Finished ****

**** Build of configuration Release for project MCU3 ****

make all
Building file: C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Ethernet/utility" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Wire/utility" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SD/utility" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SD" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Arduino_Uno/arduino" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Arduino_Uno/standard" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/leonardo_test" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Wire" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SPI" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SoftwareSerial" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/SdFat" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Stepper" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Servo" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/LiquidCrystal" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Firmata" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Ethernet" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/EEPROM" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Wire" -I../MCU3/MCU3/SPI -D__IN_ECLIPSE__=1 -DARDUINO=101 -DUSB_PID= -DUSB_VID= -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"SPI/SPI.d" -MT"SPI/SPI.d"  -c -o "SPI/SPI.o" -x c++ "C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp"
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:11:26: error: pins_arduino.h: No such file or directory
In file included from C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:12:
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.h:15:21: warning: Arduino.h: No such file or directory
In file included from C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:12:
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.h:38: error: 'byte' does not name a type
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.h:55: error: 'byte' does not name a type
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::begin()':
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:23: error: 'SCK' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:23: error: 'OUTPUT' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:23: error: 'pinMode' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:24: error: 'MOSI' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:25: error: 'SS' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:27: error: 'LOW' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:27: error: 'digitalWrite' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:29: error: 'HIGH' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::setBitOrder(uint8_t)':
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:44: error: 'LSBFIRST' was not declared in this scope
make: *** [SPI/SPI.o] Error 1

**** Build Finished ****

Do you have any idea what i can do to solve this problem?

I leave here the project image, in case it helps...
https://dl.dropbox.com/u/7216207/SPI.JPG
32  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 11, 2012, 03:02:07 am
Seems to be working on my design right now, using always hardware SPI, both for programming and reading SDcard.

Thank you for the awesome sketch Nick!
33  Using Arduino / Microcontrollers / Re: Standalone atmega2560 on: August 11, 2012, 03:00:37 am
Baselsw,

34  Development / Suggestions for the Arduino Project / Re: Questions about arduino IDE on: August 10, 2012, 11:45:49 am
The colors i have found the solution for:

C:\Program Files\arduino-1.0.1\lib\theme

I going to look into that thread, thanks
35  Development / Suggestions for the Arduino Project / Questions about arduino IDE on: August 10, 2012, 10:50:18 am
Hi,

Is it possible to change background colours and shema coloring?
I have been looking in the preferences file but came up with nothing...

If you tick the use of external editor what does that affect, how can we use it?
36  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 10, 2012, 10:16:32 am
So Lazy...

Right now the SdFat library is working on my design.

Had to eliminate the external clockout in your skecth, it used the OC1A which was one of my enable ports for the SPI bus...

At the moment i´m just missing putting the bit banged to work with the shared hardware SPI.
lets see...
37  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 08, 2012, 06:18:13 am
You are right smiley. I´m going to make some more testing and post sistematic results/problems so you can help me.
38  Using Arduino / Programming Questions / Re: Logical interpreter for arduino or generical on: August 07, 2012, 05:36:51 am
In this case we would use UUIDs, this UUIDs can represent variables read from generical data acquisition systems and actuation (arduino MCU resources) PORTs in the arduino.

We already have the abstract UUID concept embedded in our logic, i just wanted to take it to another level.
39  Using Arduino / Programming Questions / Logical interpreter for arduino or generical on: August 07, 2012, 05:27:26 am
Hi ppl,

I´m looking for a library to use in logical calculation and decision, that i could use in arduino.

For example, something that would allow me to receive text with operations like:

- VarA > VarB : VarC = VarD
- PortA > PortB : PortC = OFF

And interpret it and execute it

Does anyone has any ideas?
40  Using Arduino / Microcontrollers / Re: Steroiduino on: August 07, 2012, 05:10:45 am
I´ll check if I can post the schematics...

The box that we are using doensn´t need mounting holes (typical DIN rail plastic box),the PCB fits perfectly in it and that´s why i didn´t designed.
Besides that there isn´t really much space, the board is a little bit crowded.
41  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 07, 2012, 05:07:08 am
Another question, but a little bit different.

Untill now i was using the SD library that comes with the arduino IDE and the system was working without problems.
But, to use the ATmega_hex_uploader sketch i have to call the SdFAT library instead of the SD, at least in the ATmega328.
I wanted to use the SdFAT library just because i´m lazy smiley , but it´s giving me problems with the design and i think i have all the PORTs correctly alocated and changed.

Any ideas to what could be the problem, taking into account that the SD library currently works with the design?
42  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 07, 2012, 04:52:36 am
Yeap, i have been reading a little bit more, you pass the high fuse to 0XD9 that enables the BOOTRST bit, and that makes it start from the code and not bootloader.

Well i need this type of writting for my remote firmware upgrade feature, i have 2 ATmega2560 and 1 ATmega328P on the same board, and i want the ATmega328P to reprogram the 2 Atmega2560.

Project: http://img717.imageshack.us/img717/7879/p1010688cs.jpg
43  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 06, 2012, 10:23:25 am
Hi,

I made a new setup not so sketchy... and this time seems that the sketch is working.

I´am able to write and verify the code.

One thing that i noticed is that when i wirte a sketch to the Mega2560, if i trie to reprogram the board via IDE i´m not able.
You are erasing the flash and with the bootloader, is that correct?

When the MCU starts the program, it starts directly from the start of the code without any bootloader?

Can you clarify this to me?

Regards
44  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 06, 2012, 04:27:46 am
Hi Nick,

I send a photo of the setup i´m using, it seems a little bit sketchy, but i mounted it this way so it could resemble the most with your setup.
I´m using the UNO, the Mega as 2560 and the Ethernet daughter for the SDcard.
The UNO is using a 16Mhz clock.

Photo:
https://dl.dropbox.com/u/7216207/P1010689.JPG

In the last post i made this quote of the sketch result:
Code:
--------- Starting ---------

Attempting to enter programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x98 0x01
Processor = ATmega2560
Flash memory size = 262144 bytes.
LFuse = 0xFF
HFuse = 0xD8
EFuse = 0xFD
Lock byte = 0xFF
Clock calibration = 0xA8
Actions:
 [E] erase flash
 [F] modify fuses
 [L] list directory
 [R] read from flash (save to disk)
 [V] verify flash (compare to disk)
 [W] write to flash (read from disk)
Enter action:
W

Choose disk file [ ASCIIT~2.HEX ] ...
ASCIIT~2.HEX
Processing file: ASCIIT~2.HEX
Checking file ...

#####
Lowest address  = 0x0
Highest address = 0xBF1
Bytes to write  = 3058
No bootloader.
Suggest making high fuse = 0xD9
Attempting to enter programming mode ...
Entered programming mode OK.
Processing file: ASCIIT~2.HEX
Erasing chip ...
Writing flash ...

############
Written.
Processing file: ASCIIT~2.HEX
Verifying flash ...

###########
No errors found.
No bootloader.
Setting high fuse = 0xD9
Done.

Isn´t this a correct Writting of the Flash?
After this writting when i go and try do verify the data written i get errors, could this be because of the LOCKbits and FUSES. Maybe i´m using read protection so the MCU doesn´t allow the sketch to read the written flash correctly?

I´m going to test your sugestions and see what happens.
45  Using Arduino / Microcontrollers / Re: ATmega Hex Uploader on: August 03, 2012, 02:54:12 pm
Adding more info...

Tried to writte the ASCIItable example, result:

Quote
--------- Starting ---------

Attempting to enter programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x98 0x01
Processor = ATmega2560
Flash memory size = 262144 bytes.
LFuse = 0xFF
HFuse = 0xD8
EFuse = 0xFD
Lock byte = 0xFF
Clock calibration = 0xA8
Actions:
 [E] erase flash
 [F] modify fuses
 [L] list directory
 [R] read from flash (save to disk)
 [V] verify flash (compare to disk)
 [W] write to flash (read from disk)
Enter action:
W

Choose disk file [ ASCIIT~2.HEX ] ...
ASCIIT~2.HEX
Processing file: ASCIIT~2.HEX
Checking file ...

#####
Lowest address  = 0x0
Highest address = 0xBF1
Bytes to write  = 3058
No bootloader.
Suggest making high fuse = 0xD9
Attempting to enter programming mode ...
Entered programming mode OK.
Processing file: ASCIIT~2.HEX
Erasing chip ...
Writing flash ...

############
Written.
Processing file: ASCIIT~2.HEX
Verifying flash ...

###########
No errors found.
No bootloader.
Setting high fuse = 0xD9
Done.

But, when i try to verify/compare it with the ASCIItable.HEX, result:

Quote
--------- Starting ---------

Attempting to enter programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x98 0x01
Processor = ATmega2560
Flash memory size = 262144 bytes.
LFuse = 0xFF
HFuse = 0xD9
EFuse = 0xFD
Lock byte = 0xFF
Clock calibration = 0xA8
Actions:
 [E] erase flash
 [F] modify fuses
 [L] list directory
 [R] read from flash (save to disk)
 [V] verify flash (compare to disk)
 [W] write to flash (read from disk)
Enter action:
V

Choose disk file [ ASCIIT~2.HEX ] ...
ASCIIT~2.HEX
Processing file: ASCIIT~2.HEX
Checking file ...

#####
Lowest address  = 0x0
Highest address = 0xBF1
Bytes to write  = 3058
No bootloader.
Suggest making high fuse = 0xD9
Attempting to enter programming mode ...
Entered programming mode OK.
Processing file: ASCIIT~2.HEX
Verifying flash ...
Verification error at address 0. Got: 0xFF  Expected: 0x0C
Verification error at address 1. Got: 0xFF  Expected: 0x94
Verification error at address 2. Got: 0xFF  Expected: 0x73
Verification error at address 3. Got: 0xFF  Expected: 0x00
Verification error at address 4. Got: 0xFF  Expected: 0x0C
Verification error at address 5. Got: 0xFF  Expected: 0x94
Verification error at address 6. Got: 0xFF  Expected: 0xA0
Verification error at address 7. Got: 0xFF  Expected: 0x00
Verification error at address 8. Got: 0xFF  Expected: 0x0C
Verification error at address 9. Got: 0xFF  Expected: 0x94
Verification error at address A. Got: 0xFF  Expected: 0xA0
Verification error at address B. Got: 0xFF  Expected: 0x00
Verification error at address C. Got: 0xFF  Expected: 0x0C
Verification error at address D. Got: 0xFF  Expected: 0x94
Verification error at address E. Got: 0xFF  Expected: 0xA0
Verification error at address F. Got: 0xFF  Expected: 0x00
.....
Pages: 1 2 [3] 4 5 ... 12