cniweb / avr-netino Goto Github PK
View Code? Open in Web Editor NEWPort of Arduino core for AVR-Net-IO board (exported from http://code.google.com/p/avr-netino).
License: GNU General Public License v3.0
Port of Arduino core for AVR-Net-IO board (exported from http://code.google.com/p/avr-netino).
License: GNU General Public License v3.0
I have patched the tcpip.cpp file to enable receiving of UDP packages. Feel
free to include it.
ThoMo
Original issue reported on code.google.com by [email protected]
on 22 Dec 2012 at 1:56
Attachments:
When i try to upload the sketch in the avr-net-io i get stk500_getsync():not in
sync : resp=0x00
I am running Arduino 1.0 on WindowsXP. The serial port is on the motherboard,
not an external board or adapter. Burning the bootloader with usbtiny worked
without any problem. Can i upload sketches with the usbtiny ?
Best regards,
Vlad Ungureanu
Original issue reported on code.google.com by [email protected]
on 5 Mar 2012 at 11:27
I have a problem with the programming of the bootloader. It mkommt the error:
avrdude: stk500_getsync (): not in sync: resp = 0x00
ISP to put a DIAMAEX-AVR programmer
The base lies a ATMEGA32
Hardware at the Pollin board is rebuilt. I wonder if a serial two-wire
connection is sufficient.
Original issue reported on code.google.com by [email protected]
on 1 Jan 2014 at 6:03
What steps will reproduce the problem?
1. Download Arduino 1.0.1
2. Extract avr-netino-10May2011.zip and avr-netino-19Jan2012.zip into Arduino
install dir and overwrite existing files
3. Start Arduino IDE, select Tools-Board-AvrNetIO644 (or another AvrNetIO
board).
4. Open an example, ie File-Examples-AvrNetino-ANIO_LCD
5. Start a verify, click Verify
A lot of compile errors:
In file included from
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/Arduino.h:212,
from ANIO_LCD.cpp:4:
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/pins_arduino.h:53: error: expected identifier before numeric
constant
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/pins_arduino.h:53: error: expected `}' before numeric constant
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/pins_arduino.h:53: error: expected unqualified-id before numeric
constant
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/pins_arduino.h:114: error: expected identifier before numeric
constant
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/pins_arduino.h:114: error: expected `}' before numeric constant
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/pins_arduino.h:114: error: expected unqualified-id before numeric
constant
D:\AVR-Net-IO\avrnetino\arduino-1.0.1-windows\arduino-1.0.1\hardware\avrnetio\co
res\avrnetio/pins_arduino.h:132: error: expected declaration before '}' token
On what operating system?
Tested on Windows 7 (x64)
Original issue reported on code.google.com by [email protected]
on 7 Sep 2012 at 12:19
I use the netino files with arduino 100 and 103 IDE and unsure about the pin
mappings
I found a different mapping at http://code.google.com/p/sanguino/source/browse/sanguino/variants/standard/pins_arduino.h and also other, totally different mappings.
I am using a single RF12 test application using SPI on an Arduino UNO without
problems.
Running the same file on Netino with atmega644 does not work. I changed the
pins used for chip enable and SPI_SS
Here is a code snippet:
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// RFM12B support for JeeLink ATmega328p
// (derived from jeelabs RF12.zip 2011-08-22)
#ifdef AVR_NET_IO
// ATmega644, 32 etc.
#define RFM_IRQ_PIN PD3 //ADDON PD3
#define RFM_INT INT1 //ADDON INT1
//select pin, on ADDON this is PD5, see https://github.com/ethersex/ethersex/blob/master/pinning/hardware/netio_addon.m4
#define SS_DDR DDRB //ADDON DDRD
#define SS_PORT PORTB //ADDON PORTD
#define SS_BIT 3 //ADDON 5 // Arduino: for PORTB: 2 = d.10, 1 = d.9, 0 = d.8
#define RFM_12_CS PB3 //ADDON PD5
// SPI_SS is connected to ADDON->SD CARD chip select, has to be put on high to not select SD Card
#define SPI_SS SS // PB4 //10 // do not change, must point to h/w SPI pin
#define SPI_MOSI MOSI // PB5 //11
#define SPI_MISO MISO // PB6 //12
#define SPI_SCK SCK // PB7 //13
#else //not AVR_NET_IO
// ATmega328, etc.
#define RFM_IRQ_PIN 2 //PD2 //digital 2 //PCINT13
#define RFM_INT INT0
#define SS_DDR DDRB
#define SS_PORT PORTB
#define SS_BIT 2 // for PORTB: 2 = d.10, 1 = d.9, 0 = d.8
#define RFM_12_CS PB2
#define SPI_SS SS //10 // do not change, must point to h/w SPI pin
#define SPI_MOSI MOSI //11 //MOSI_PIN //11
#define SPI_MISO MISO //12 //MISO_PIN //12
#define SPI_SCK SCK //13 //SCK_PIN //13
#endif //AVR_NET_IO
Original issue reported on code.google.com by [email protected]
on 27 Feb 2013 at 5:49
Attachments:
Hi Michael,
your implementation is really useful - thank you for sharing your work!
Will you continue, eg. adapt it to newer version of the Arduino IDE?
Best regards, Jürgen
Original issue reported on code.google.com by [email protected]
on 30 May 2013 at 9:42
Hello everybody,
with the current versions of avr-gcc which in my case is "avr-gcc (Fedora
4.8.2-2.fc20) 4.8.2" it is not possible to compile the libraries or test
examples. I have tried the examples coming with the zip-Package. Most errors
are related to the usage of deprecated "prog_char" types and SIGNAL/ISR-defines.
Example ANIO_RBBB_SRV:
"In file included from ANIO_RBBB_SRV.ino:4:0:
/home/roman/arduino/libraries/EtherCard/EtherCard.h:146:26: error: 'prog_char'
has not been declared
static void browseUrl (prog_char *urlbuf, const char *urlbuf_varpart,
^
/home/roman/arduino/libraries/EtherCard/EtherCard.h:147:26: error: 'prog_char'
has not been declared
prog_char *hoststr,
^
/home/roman/arduino/libraries/EtherCard/EtherCard.h:149:25: error: 'prog_char'
has not been declared
static void httpPost (prog_char *urlbuf, prog_char *hoststr,
^
/home/roman/arduino/libraries/EtherCard/EtherCard.h:149:44: error: 'prog_char'
has not been declared
static void httpPost (prog_char *urlbuf, prog_char *hoststr,
^
/home/roman/arduino/libraries/EtherCard/EtherCard.h:150:25: error: 'prog_char'
has not been declared
prog_char *header, const char *postval,
^
/home/roman/arduino/libraries/EtherCard/EtherCard.h:168:26: error: 'prog_char'
has not been declared
static bool dnsLookup (prog_char* name);"
^
Are there any ideas how to fix this in a clean way or has anybody already
patched the code ?
Original issue reported on code.google.com by [email protected]
on 13 Jul 2014 at 12:48
I mean the error is, that the csPin is not specified - csPin on AVR-Net-IO
board is pin no 28 (not 8 as the default is).
Original issue reported on code.google.com by [email protected]
on 28 Jun 2012 at 9:31
Hello,
i am trying to upload sketches on a AVR-NetIo with Atmega32 via RS232
direct-connection to the PC with a DB9-cable (a straight RS232-cable on the PCs
RS232-Interface (=/dev/ttyS0), nothing with FTDI232-Breakout-Board), and have
the following strange effect:
The upload works perfectly well, if i do it the first time immediately after i
have burned the bootloader fresh onto the board. (Which i do with an
stk200-compatible parallel-port-programmer.)
Afterwards i am not able to do any futher sketch-upload; instead i am getting
an error which suggests, that the avrdude receives no response from the Netio
on the serial line.
If i am burning again a fresh bootloader the i am beeing able again to do a
sketch upload for just one time.
For demonstration of the effect i logged the avrdude-call from the Arduino-IDE
and do it here manually from the shell (i am on linux), so we can see better
the output and error-messages plus we can exclude that the IDE may be part of
the problem.
Her the demosntration session, where you can see at first the call for the
bootloader-burning on parallel port, which works fine, then the first
sketch-upload which also works fine and then the same sketch-upload again,
which gives the error.
=============================
densai:/usr/local/src/arduino-1.0.1_avr-netino/hardware/tools# ./avrdude
-C./avrdude.conf -p atmega32 -P /dev/parport0 -c stk200 -U
flash:w:../avrnetio/bootloaders/optiboot/optiboot_anio32.hex -u -U
lfuse:w:0xff:m -U hfuse:w:0xcf:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9502
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file
"../avrnetio/bootloaders/optiboot/optiboot_anio32.hex"
avrdude: input file ../avrnetio/bootloaders/optiboot/optiboot_anio32.hex auto
detected as Intel Hex
avrdude: writing flash (32754 bytes):
Writing | ################################################## | 100% 10.21s
avrdude: 32754 bytes of flash written
avrdude: verifying flash memory against
../avrnetio/bootloaders/optiboot/optiboot_anio32.hex:
avrdude: load data flash data from input file
../avrnetio/bootloaders/optiboot/optiboot_anio32.hex:
avrdude: input file ../avrnetio/bootloaders/optiboot/optiboot_anio32.hex auto
detected as Intel Hex
avrdude: input file ../avrnetio/bootloaders/optiboot/optiboot_anio32.hex
contains 32754 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 8.99s
avrdude: verifying ...
avrdude: 32754 bytes of flash verified
avrdude: reading input file "0xff"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xff:
avrdude: load data lfuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0xcf"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xcf:
avrdude: load data hfuse data from input file 0xcf:
avrdude: input file 0xcf contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude done. Thank you.
densai:/usr/local/src/arduino-1.0.1_avr-netino/hardware/tools# ./avrdude
-C./avrdude.conf -q -q -patmega32 -carduino -P/dev/ttyS0 -b115200 -D
-Uflash:w:./myprogram.cpp.hex:i -v
avrdude: Version 5.11, compiled on Sep 7 2011 at 19:34:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "./avrdude.conf"
User configuration file is "/root/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyS0
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATMEGA32
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 4 10 64 0 no 1024 4 0 9000 9000 0xff 0xff
flash 33 6 64 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
densai:/usr/local/src/arduino-1.0.1_avr-netino/hardware/tools# ./avrdude
-C./avrdude.conf -q -q -patmega32 -carduino -P/dev/ttyS0 -b115200 -D
-Uflash:w:./myprogram.cpp.hex:i -vvvv
avrdude: Version 5.11, compiled on Sep 7 2011 at 19:34:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "./avrdude.conf"
User configuration file is "/root/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyS0
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
densai:/usr/local/src/arduino-1.0.1_avr-netino/hardware/tools#
===================================
What version of the product are you using? On what operating system?
I am using the 19Jan2012-version ov avr-netino, on linux. The avrdude-version
ist 5.11 and part of the IDE, it already knows the -c arduino option.
Please provide any additional information below.
To confirm that the effect is real and not a problem of my individual board i
tested it on two different NetIo-boards, its the same on both.
I furthermore did of course the hardware-modifcation for the auto-reset feature
and i tried it in all three possible ways:
1. via DTR, with 100n-cap between pin4 of the db9-connector and pin 9 reset-pin
of the atmega plus the diode.
2. via RTS, with the 100n-cap between pin 9 of the Max232 and pin 9 of the
atmega
3. via DTR with 100n-cap between pin 9 of the Max232 and with pin 4 of the
DB9-connector going to pin 8 of the Max232 (and have before the connection
between pin7 of the DB9 and pin 8 of the Max232 cutted through).
Since the one-time-sketch-upload-effect happened on all three versions i assume
that each of them works and the effect has nothing to do with an auto-reset
problem.
I'm wondering since the first sketch-upload works, what might become changed by
that what prevents any further sketch-uploads and if this may have something to
do with the fuses. I am no expert on fuses ;) so i have no idea, but however
thats why i posted the whole demonstration with the calls where the fuses
parameters can be seen.
Hope you may have an idea.
Best regards,
Oliver
P.S.: Apart from my problem the whole avr-netino port is a great work, Kudos
for that!
Original issue reported on code.google.com by [email protected]
on 7 Oct 2012 at 7:50
What steps will reproduce the problem?
1.carry the program and lock in line res = file.initFAT (0);
What version of the product are you using? On what operating system?
Linux - IDE 1.0.4
Please provide any additional information below.
I am using a Chinese module ENC28J60
http://img.dxcdn.com/productimages/sku_150604_1.jpg
and sd card
http://forum.allaboutcircuits.com/showthread.php?t=27913
It does not work, any tips?
SS SDCARD = 4
SS ENC28J60 = 10
Thansk
Original issue reported on code.google.com by [email protected]
on 18 Jul 2014 at 7:43
What steps will reproduce the problem?
1. Install the bootlaoder for AtMega 644p (version with "p")
2. Try to compile a programm an uplaod it
3. AVR Dude says all time different errors.
What is the expected output? What do you see instead?
I think it should work, but AVR Dude says that it is "out of sync" or expectet
0x14 but get's something else.
Most time it says ther was a protocol error
What version of the product are you using? On what operating system?
Used Version: Arduino 1.0 with newest avr-netino
arduino 1.0.3 with newest avr-netino
All time with Windows 7 (64bit)
I hope you can help me.
Bye
Michael
Original issue reported on code.google.com by [email protected]
on 8 Mar 2013 at 8:49
Adding a package_index.json would make the installation of the AVR NET I/O board easier.
See:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.6.x-package_index.json-format-specification
https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls
Hi,
avr-netino is a great project and I like it to use the
arduino libraries with the AVR Net-IO Board from Pollin.
Now I change the original ATMega32 to an ATMega1284P.
But if I try the blink scetch, the LED blinks mutch too fast.
(May be 5/s)
I use the last version of arduino and avr-netino from 19.01.2012
There seems to be a problem with the timer initialisation.
I hope you can give me a hint, or find the problem. Thanks
Original issue reported on code.google.com by [email protected]
on 15 Feb 2012 at 9:47
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.