[En-Nut-Discussion] Winavr, studio 4.18 and ethernut 13h, trying to follow your guidance...
Karla Gamez
chipo_kikio at hotmail.com
Fri Mar 11 17:22:25 CET 2011
When trying to update the SPduo firmware, i had this trouble:
In command line shell, i put sp2update.exe -v -P COM4 spduo24.enc (i am in the directory where the spduo24.enc file is, and run it normally and as admin)
I have the duo on com4, and according to the txt file and the nutwiki spduo page, that´s the correct way to write it. When i hit enter i get the following:
" sp2update 1.0.1
ERROR! COM4: Port not available "
I tried changing ports,, didn´t work. I am sure i checked it was the com4. I tried connecting both JTAG an SPI, just JTAG and just SPI, but didn´t work either.
I don´t know if it´s relevant but the red power supply, the green and the yellow leds are on always.
I do get the version on teraterm, SP Duo v2.3 but the command line shell thing, just doesn´t work for me.
As for the screen cast 3, i use avrdude but i got the same problem again
> avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall -Wstrict-prototypes -Wa,-ahlms=testcode.lst -DETHERNUT1 -D__HARVARD_ARCH__ -IC:/ethernut-4.8.8/nutbld13h/include -IC:/ethernut-4.8.8/nut/include testcode.c -o testcode.o
> In file included from C:/ethernut-4.8.8/nut/include/arch/avr/gcc.h:78,
> from C:/ethernut-4.8.8/nut/include/arch/avr.h:94,
> from C:/ethernut-4.8.8/nut/include/compiler.h:75,
> from C:/ethernut-4.8.8/nut/include/sys/types.h:167,
> from C:/ethernut-4.8.8/nut/include/sys/file.h:53,
> from C:/ethernut-4.8.8/nut/include/sys/device.h:102,
> from C:/ethernut-4.8.8/nut/include/dev/debug.h:97,
> from C:/ethernut-4.8.8/nut/include/dev/board.h:105,
> from testcode.c:1:
> c:/winavr/lib/gcc/../../avr/include/avr/pgmspace.h:222: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_int64_t'
> c:/winavr/lib/gcc/../../avr/include/avr/pgmspace.h:223: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_uint64_t'
> testcode.c: In function 'NutAppMain':
> testcode.c:11: warning: implicit declaration of function '_ioctl'
> make.exe: *** [testcode.o] Error 1
I followed the quick start guide for the 21B, but i stopped when you have to use the teraterm and basemon program. I guess that my REAL problem lies within the bottom, in the nutos configurator x.x. Would u mind telling me what versions of winavr and avr studio and ethenut do YOU know work properly together??
Or should i use the Test enviroments recommended on the nutwiki page?
Board Nut/OS WinAVR Tera Term
1.3 H 2.6.4 20080610 4.61
Oh great, when i open the nutos configurator the "select a file" windows shows, but not the "NUtos configurator" windows on the back, after i selected the ethernut13hgcc.config(that´s how i named it), nothing happens, no other window pops up and that´s it, just nothing. Arrgg, i believe i´m just gonna uninstall the ethernut 4.8.8. I read somewhere that the 4.7.3 beta is quite good but i will wait for your answer.
I believe that´s about it. If something, it just gotten worse:P.
Btw, should i just reply from here or post it in the forum too?
Thanks for the help:)
> From: en-nut-discussion-request at egnite.de
> Subject: En-Nut-Discussion Digest, Vol 89, Issue 3
> To: en-nut-discussion at egnite.de
> Date: Wed, 9 Mar 2011 12:00:02 +0100
>
> Send En-Nut-Discussion mailing list submissions to
> en-nut-discussion at egnite.de
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
> or, via email, send a message with subject or body 'help' to
> en-nut-discussion-request at egnite.de
>
> You can reach the person managing the list at
> en-nut-discussion-owner at egnite.de
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of En-Nut-Discussion digest..."
>
>
> Today's Topics:
>
> 1. WinAVR, Studio 4.18 and Ethernut 1.3H problem (Karla Gamez)
> 2. Re: WinAVR, Studio 4.18 and Ethernut 1.3H problem (Harald Kipp)
> 3. Any Work-in-progress or else for the XMEGA (Uwe Bonnes)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 7 Mar 2011 13:35:33 -0300
> From: Karla Gamez <chipo_kikio at hotmail.com>
> Subject: [En-Nut-Discussion] WinAVR, Studio 4.18 and Ethernut 1.3H
> problem
> To: <en-nut-discussion at egnite.de>
> Message-ID: <BAY155-w24D866C9FCF37C8AD2D0AA82C70 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi, i?m new to this, and having tons of problems even after reading a bunch of guides.
> Well, i?m using the winavr2009, avr studio 4.18 and the board ethernut 1.3 rev-h with the atmega 128.
> First off, i downloaded a few starter guides and couldn?t complete a single one, so i moved to the other....
> At the end, here i am in avr studio 4, when i try to connect it, i get the following:
>
> An STK500 with firmware version of 32.33 has been detected. The firmware
> version corresponding to this installation of AVR Studio is 2.0A .
> Press OK to launch the upgrade program fo
> perform a downgrade or Cancel
> to continue without downgrading. NOTE: Correct operation is not
> guaranteed if a downgrade is not performed. AVR Studio will close down.
>
>
> I clic cancel and then the other window appears, i choose the atmega 128 and read signature ok, but when i try to program it says:
>
> Getting isp parameter.. SD=0x98 .. OK
> ISP frequency must be 5 kHz or above when programming EEPROM or FLASH!
>
> I did change it before, i always do change it to 115.2 Khz, and i always get that error. I believe it has something to do with the firmware version, but i don?t know how to fix it.
>
> I erased the flash memory already, but i wanna run the basemon.hex in the terminal simulation program (either tera term or hyper terminal), so i wanna program the flash with the basemon so i can start again, but it just won?t let me load the program.
> Other issue i have is that i followed step by step the nutwiki ethernut 1.3H guide, the preparations and (i believe is because i erased the flash) the terminal simulation program won?t give me anything when i reset the board with the space bar held down.
> Other error ipm getting is in the "HW Settings" tab when i?m connected to the stk500 in avrstudio,
>
> "Get VTARGET: Command of no use for AVR ISP! FAILED!" And it won?t let me see any voltages, everythings greyish except for the "Read" and "Write" options.
>
> I guess that i should mention also that the Make all in the Nutos configurator also failed, but i used the prebuild libraries.
>
> Also, when i try to "Make all" in Winavr notepad?s, of the next code:
> #include <dev/board.h>
> #include <stdio.h>
>
> int main(void)
> {
> unsigned long baud = 115200;
>
> NutRegisterDevice(&DEV_DEBUG, 0, 0);
>
> freopen(DEV_DEBUG_NAME, "w", stdout);
> _ioctl(_fileno(stdout), UART_SETSPEED, &baud);
>
> printf("Hello World!");
>
> for(;;);
>
> return 0;
> }
>
>
> I always get this error, also in the nutos configurator:
>
> avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall -Wstrict-prototypes -Wa,-ahlms=testcode.lst -DETHERNUT1 -D__HARVARD_ARCH__ -IC:/ethernut-4.8.8/nutbld13h/include -IC:/ethernut-4.8.8/nut/include testcode.c -o testcode.o
> In file included from C:/ethernut-4.8.8/nut/include/arch/avr/gcc.h:78,
> from C:/ethernut-4.8.8/nut/include/arch/avr.h:94,
> from C:/ethernut-4.8.8/nut/include/compiler.h:75,
> from C:/ethernut-4.8.8/nut/include/sys/types.h:167,
> from C:/ethernut-4.8.8/nut/include/sys/file.h:53,
> from C:/ethernut-4.8.8/nut/include/sys/device.h:102,
> from C:/ethernut-4.8.8/nut/include/dev/debug.h:97,
> from C:/ethernut-4.8.8/nut/include/dev/board.h:105,
> from testcode.c:1:
> c:/winavr/lib/gcc/../../avr/include/avr/pgmspace.h:222: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_int64_t'
> c:/winavr/lib/gcc/../../avr/include/avr/pgmspace.h:223: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_uint64_t'
> testcode.c: In function 'NutAppMain':
> testcode.c:11: warning: implicit declaration of function '_ioctl'
> make.exe: *** [testcode.o] Error 1
>
> > Process Exit Code: 2
> > Time Taken: 00:00
>
>
> I have the SPDuo connected and the power supply when programming in avr studio, and when i was trying to get the basemon program, i had the power supply and the DB-9 connected to the pc. When i?m working with avr studio the power supply, the yellow and the green led are on. But when i was trying to get to the basemon program, only the power supply led and the green one were on.
>
> I know it?s a lot to ask, but it?s been a while since i?ve been having these problems. I hope you guys can help me out:/.
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 08 Mar 2011 14:40:24 +0100
> From: Harald Kipp <harald.kipp at egnite.de>
> Subject: Re: [En-Nut-Discussion] WinAVR, Studio 4.18 and Ethernut 1.3H
> problem
> To: en-nut-discussion at egnite.de
> Message-ID: <4D7631C8.8020308 at egnite.de>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Karla,
>
> On 3/7/2011 5:35 PM, Karla Gamez wrote:
> > Press OK to launch the upgrade program fo perform a downgrade or
> > Cancel
>
> Clicking cancel, as you did, is the right way to proceed.
>
> I'd recommend to use AVRDUDE, as explained at
> http://www.ethernut.de/nutwiki/Ethernut_1.3_H
> (Screencast 3)
>
>
> > Getting isp parameter.. SD=0x98 .. OK ISP frequency must be 5 kHz or
> > above when programming EEPROM or FLASH!
> >
> > I did change it before, i always do change it to 115.2 Khz, and i
> > always get that error. I believe it has something to do with the
> > firmware version, but i don?t know how to fix it.
>
> Right, you need to upgrade the SP Duo firmware to 2.4. See
> http://www.egnite.de/egnite-shop/programmierer/sp-duo-2.html
> (Download section)
> The archive contains a text file with further informations. You may also
> look to
> http://www.ethernut.de/en/isp/spduo.html
>
> > preparations and (i believe is because i erased the flash) the
> > terminal simulation program won?t give me anything when i reset the
> > board with the space bar held down.
>
> Right again, after erasing the firmware, Basemon is gone. There is a
> Quick Start guide for Ethernut 2, which basically is valid for Ethernut
> 1 too:
> http://www.egnite.de/produkte/ethernut-familie/ethernut-21-128.html
>
>
> > I always get this error, also in the nutos configurator:
> ..
> > c:/winavr/lib/gcc/../../avr/include/avr/pgmspace.h:223: error:
> > expected '=', ',', ';', 'asm' or '__attribute__' before
> > 'prog_uint64_t' testcode.c: In function 'NutAppMain': testcode.c:11:
> > warning: implicit declaration of function '_ioctl' make.exe: ***
> > [testcode.o] Error 1
> >
>
> I assume, that your configuration is incomplete. Note, that the platform
> needs to be specified twice: In the Component Tree under Tools (GCC for
> AVR) _and_ in the settings under Build->Platform.
>
> Try to follow the screen casts on NutWiki step by step. This should work.
>
> Btw. when changing Configurator Settings you not only need to rebuild
> the system, but also create the sample directory again. Don't worry if
> it already exists. It will retain any code changes you may have made in
> the app directory, but simply update the related Makedefs.
>
>
> > I know it?s a lot to ask, but it?s been a while since i?ve been
> > having these problems. I hope you guys can help me out:/.
>
> May look like this at a first glance, but you are on the right track.
> Mainly you became confused by the problem with the latest AVR Studio 4.
>
> Regards,
>
> Harald
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 8 Mar 2011 18:39:30 +0100
> From: Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de>
> Subject: [En-Nut-Discussion] Any Work-in-progress or else for the
> XMEGA
> To: en-nut-discussion at egnite.de
> Message-ID:
> <19830.27090.945454.158074 at elektron.ikp.physik.tu-darmstadt.de>
> Content-Type: text/plain; charset=us-ascii
>
> Hello,
>
> has anybody already done some work about an XMEGA port for ethernut and is
> willing to share even unfinish work?
>
> In the next days, I will implement some not to complicated functionality
> with an XMEGA. I refrain to start from scratch for an Ethernut port, but if
> some start/work has already been done, I probably would try to improve the
> port.
>
> Thanks
> --
> Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
>
> Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
> --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>
>
> ------------------------------
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
> End of En-Nut-Discussion Digest, Vol 89, Issue 3
> ************************************************
More information about the En-Nut-Discussion
mailing list