WinAVR sabotage

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Yesterday i installed WinAVR to do my microprocessor homework, now i understand WinAVR  change the Path in Environment Variables, replace all path with WinAvr path and most of my applications not work now,  i'm going to reinstall my windows because i don't have any backup

i'm trying to report this bug and i don't know where, so i choiced here to say

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

First time facing one tool, and you say sabotage. It is not polite of you.

Anyway, welcome to AVRfreaks.

Last Edited: Tue. Jun 8, 2021 - 03:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sorry for the word i used, my primary language is not english, the google translate suggest this verb to me

Last Edited: Tue. Jun 8, 2021 - 03:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Why are you using WinAVR (late 2009) in 2021 ??

 

If you want an avr-gcc for Windows then apart from the obvious of simply downloading Microchip Studio 7 which comes with avr-gcc anyway (install option) you can also get only the compiler/toolchain on its own by visiting:

 

https://www.microchip.com/en-us/...

 

WinAVR was great in its day but things have moved on since then - for example if you used the 2009 compiler you would not have "__flash" (or a load of other enhancements and bug fixe made in the intervening 12 years).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ALiRezaBeigy wrote:
i'm trying to report this bug and i don't know where

Hmmm ... WinAVR is long out of support

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Winavr includes a bunch of unixy commands that I sometimes use.  I use grep daily.  I almost always use it from my editor because it adds the *.h and *.cpp.  Sometimes I use mkdir, ls, which, etc.  My editor used chmod to make read only files writable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

steve17 wrote:
Winavr includes a bunch of unixy commands that I sometimes use. 
So does Studio 7:

C:\Program Files (x86)\Atmel\Studio\7.0\shellutils>dir
 Volume in drive C is OSDISK
 Volume Serial Number is 7AF3-B2D0

 Directory of C:\Program Files (x86)\Atmel\Studio\7.0\shellutils

04/02/2021  12:52    <DIR>          .
04/02/2021  12:52    <DIR>          ..
03/11/2020  07:19            32,656 basename.exe
03/11/2020  07:19            71,568 cat.exe
03/11/2020  07:19            93,072 chgrp.exe
03/11/2020  07:19            91,024 chmod.exe
03/11/2020  07:19            95,120 chown.exe
03/11/2020  07:19            33,680 chroot.exe
03/11/2020  07:19            34,704 cksum.exe
03/11/2020  07:19            35,216 comm.exe
03/11/2020  07:19           139,152 cp.exe
03/11/2020  07:19            85,392 csplit.exe
03/11/2020  07:19            48,016 cut.exe
03/11/2020  07:20           137,616 date.exe
03/11/2020  07:20            96,656 dd.exe
03/11/2020  07:20            91,024 df.exe
03/11/2020  07:20           189,840 dir.exe
03/11/2020  07:20            39,824 dircolors.exe
03/11/2020  07:20            33,168 dirname.exe
03/11/2020  07:20           117,648 du.exe
03/11/2020  07:20            34,192 echo.exe
03/11/2020  07:20            33,168 env.exe
03/11/2020  07:20            36,752 expand.exe
03/11/2020  07:20            71,568 expr.exe
03/11/2020  07:20            40,336 factor.exe
03/11/2020  07:20            27,024 false.exe
03/11/2020  07:20            39,824 fmt.exe
03/11/2020  07:20            35,728 fold.exe
03/11/2020  07:20           137,616 gdate.exe
03/11/2020  07:20            34,192 gecho.exe
03/11/2020  07:20           144,272 ginstall.exe
03/11/2020  07:20           111,504 gln.exe
03/11/2020  07:20            78,224 gmkdir.exe
03/11/2020  07:20            34,192 grmdir.exe
03/11/2020  07:18             2,015 groups
03/11/2020  07:20           105,360 gsort.exe
03/11/2020  07:20            82,320 head.exe
03/11/2020  07:20            34,704 hostid.exe
03/11/2020  07:20            32,656 hostname.exe
03/11/2020  07:20            37,264 id.exe
03/11/2020  07:20           144,272 install.exe
03/11/2020  07:20            49,552 join.exe
03/11/2020  07:20            37,776 kill.exe
03/11/2020  07:18           898,048 libiconv2.dll
03/11/2020  07:18           103,424 libintl3.dll
03/11/2020  07:20            40,848 link.exe
03/11/2020  07:20           111,504 ln.exe
03/11/2020  07:20            33,168 logname.exe
03/11/2020  07:20           189,840 ls.exe
03/11/2020  07:20           334,224 make.exe
03/11/2020  07:20            51,088 md5sum.exe
03/11/2020  07:20            78,224 mkdir.exe
03/11/2020  07:21            70,544 mkfifo.exe
03/11/2020  07:21            76,688 mknod.exe
03/11/2020  07:21           147,856 mv.exe
03/11/2020  07:21            35,216 nice.exe
03/11/2020  07:21            75,152 nl.exe
03/11/2020  07:21            37,264 nohup.exe
03/11/2020  07:21            95,120 od.exe
03/11/2020  07:21            35,216 paste.exe
03/11/2020  07:21            67,984 pathchk.exe
03/11/2020  07:21            78,224 pinky.exe
03/11/2020  07:21           130,448 pr.exe
03/11/2020  07:21            32,144 printenv.exe
03/11/2020  07:21            54,160 printf.exe
03/11/2020  07:21           120,208 ptx.exe
03/11/2020  07:21            70,544 pwd.exe
03/11/2020  07:21            69,520 readlink.exe
03/11/2020  07:21           118,160 rm.exe
03/11/2020  07:21            34,192 rmdir.exe
03/11/2020  07:21            35,728 seq.exe
03/11/2020  07:21            34,704 setuidgid.exe
03/11/2020  07:21            51,088 sha1sum.exe
03/11/2020  07:21            96,144 shred.exe
03/11/2020  07:21            36,752 sleep.exe
03/11/2020  07:21           105,360 sort.exe
03/11/2020  07:21            81,296 split.exe
03/11/2020  07:21         1,450,912 srec_cat.exe
03/11/2020  07:21            84,880 stat.exe
03/11/2020  07:21            58,768 stty.exe
03/11/2020  07:21            87,440 su.exe
03/11/2020  07:21            45,456 sum.exe
03/11/2020  07:21            32,144 sync.exe
03/11/2020  07:21           101,264 tac.exe
03/11/2020  07:21            97,168 tail.exe
03/11/2020  07:21            33,680 tee.exe
03/11/2020  07:21            72,080 test.exe
03/11/2020  07:21            87,952 touch.exe
03/11/2020  07:21            52,112 tr.exe
03/11/2020  07:22            27,024 true.exe
03/11/2020  07:22            35,728 tsort.exe
03/11/2020  07:22            32,656 tty.exe
03/11/2020  07:22            42,896 uname.exe
03/11/2020  07:22            37,776 unexpand.exe
03/11/2020  07:22            41,872 uniq.exe
03/11/2020  07:22            33,680 unlink.exe
03/11/2020  07:22            41,360 uptime.exe
03/11/2020  07:22            44,432 users.exe
03/11/2020  07:22           189,840 vdir.exe
03/11/2020  07:22           109,456 wc.exe
03/11/2020  07:22            82,320 who.exe
03/11/2020  07:22            33,680 whoami.exe
03/11/2020  07:22            32,144 yes.exe
03/11/2020  07:22            78,224 [.exe
             102 File(s)      9,546,911 bytes
               2 Dir(s)  163,047,452,672 bytes free

C:\Program Files (x86)\Atmel\Studio\7.0\shellutils>

Rather sadly grep.exe is notable by its absence from that list though. So I generally use gnuwin32 for that:

 

http://gnuwin32.sourceforge.net/...

 

Not sure how anyone lives without grep ! Things like Windows own findstr are very pale by comparison.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

steve17 wrote:
Winavr includes a bunch of unixy commands that I sometimes use.  I use grep daily.  

I used the grep from Borland C++ for many, many years.

 

Nowadays, I find that Editors/IDEs tend to have pretty good "find in files" - including regular expressions ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...