How to apply mega48 patch?

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

I believe that I need to apply the gcc-3_4_0-avr-new-devs.patch. Having never patched before, I searched around and could only find an article titled "Making and Applying Patches" that gives a good description of how to do routine patching under Unix. Would someone please provide the command line for applying gcc-3_4_0-avr-new-devs.patch on a Windows 2000 machine.

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

If you're using Windows, you don't have to. The latest WinAVR release (July 2004) already includes this patch in it's built tools.

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

Thanks for the help.

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

EW wrote:
If you're using Windows, you don't have to. The latest WinAVR release (July 2004) already includes this patch in it's built tools.

Does this mean that I can specify my device in the makefile as MCU = atmega48 (I am using the 20040720.exe WinAVR package)? Because I tried to and got the message:
demo.c:49:4: #error "Don't know what kind of MCU you are compiling for"
So please help me - how do I compile for the Mega48 device?

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

Answered in your seperate thread.

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

EW wrote:
If you're using Windows, you don't have to. The latest WinAVR release (July 2004) already includes this patch in it's built tools.

Hi Eric.
However, I'd like to try myself.
I've got patches from avr-libc patch #2923 page.
Will them be suitable for current releases ( 3.4.2 +2.15+1.0.4 ) ?
Or some newer, updated versions of patches would be required ?

Best regards Jurek S.

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

JerzySzczesiul wrote:
EW wrote:
If you're using Windows, you don't have to. The latest WinAVR release (July 2004) already includes this patch in it's built tools.

Hi Eric.
However, I'd like to try myself.
I've got patches from avr-libc patch #2923 page.
Will them be suitable for current releases ( 3.4.2 +2.15+1.0.4 ) ?
Or some newer, updated versions of patches would be required ?

Best regards Jurek S.

Those versions should work. Caution! In the avr-libc patch for the 3.4 series, there is a bug. Somewhere in the patch is
AVR_CRT_MRGA
which should be
AVR_CRT_MEGA

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

EW wrote:

AVR_CRT_MRGA
which should be
AVR_CRT_MEGA

Thanks a lot !

Best regards Jurek S.