You are not logged in.

TSM

La Nicchia

  • "TSM" is male
  • "TSM" started this thread

Posts: 25

Date of registration: Aug 29th 2008

Location: Napoli, Italia

  • Send private message

member since 54 month member since 54 month member since 54 month

1

Saturday, October 4th 2008, 5:05pm

My compiled BIN is too big!

Hello, I'm trying to compile the 0.6.6 firmware with "config-sw1" as config-file, without changing anything.
The compilation ends with an error and the HEX file is not created.

Source code

1
2
3
4
crcgen-new obj-m32/sd2iec.bin 0x7800 0x49454321 66
process_begin: CreateProcess(NULL, crcgen-new obj-m32/sd2iec.bin 0x7800 0x49454321 66, ...) failed.
make (e=2): Impossibile trovare il file specificato.
make: *** [obj-m32/sd2iec.bin] Error 2


Then, if I type 'make' again, the HEX file is created and no errors occur.

Anyway I end up with a sd2iec.bin that is 32.366 bytes long and the bootloader refuses to load it!

On the other hand, the precompiled file (30.720 bytes) loads perfectly. I'm using WinAvr.

TSM

La Nicchia

  • "TSM" is male
  • "TSM" started this thread

Posts: 25

Date of registration: Aug 29th 2008

Location: Napoli, Italia

  • Send private message

member since 54 month member since 54 month member since 54 month

2

Saturday, October 4th 2008, 7:16pm

I've found that switching to WinAVR version 20071221 seems to solve the problem.

TSM

La Nicchia

  • "TSM" is male
  • "TSM" started this thread

Posts: 25

Date of registration: Aug 29th 2008

Location: Napoli, Italia

  • Send private message

member since 54 month member since 54 month member since 54 month

3

Saturday, October 4th 2008, 7:30pm

I've found that switching to WinAVR version 20071221 seems to solve the problem.
No, it doesn't. Now I get a file that is 31.028 bytes long. :wand
Please, help!

Unseen

Hätte gerne 'n Virtex 7 ;)

  • "Unseen" is male
  • »Unseen« is a verified user

Posts: 4,579

Date of registration: Jun 16th 2007

Location: Debara Hamtar

  • Send private message

member since 72 month member since 72 month member since 72 month member since 72 month

4

Saturday, October 4th 2008, 8:19pm

0.6.6 just barely fits within the available space on the mega32. Try to compile it using avr-gcc 4.1, later versions tend to generate larger code.

If you have access to a Linux machine I could send you the script I used to build my compiler chain (and the patches that it needs), although I'll probably need a day or two to locate all the required files again.

Quellcode

1
2
3
10 x=rnd(-1963):fori=1to81:y=rnd(1):next
20 forj=1to5:printchr$(rnd(1)*16+70);:next
30 printint(rnd(1)*328)-217

sd2iec Homepage

TSM

La Nicchia

  • "TSM" is male
  • "TSM" started this thread

Posts: 25

Date of registration: Aug 29th 2008

Location: Napoli, Italia

  • Send private message

member since 54 month member since 54 month member since 54 month

5

Saturday, October 4th 2008, 9:08pm

Thanks a lot but unfortunately I can't use Linux. I tried to install avr-gcc under CygWin but got an error and gave up. I found a version of WinAVR that gives a BIN file even smaller than yours (I haven't tested it yet, though).

What I'm doing is trying to add a 7-segment display to show the current disk number. I successfully moved all the things that where on Port C to other places; don't know if I'm able to add the code to manage the display yet, but I think it should be quite easy.

6

Saturday, October 4th 2008, 9:21pm

I'm using gcc version 4.3.0 (WinAVR 20080411) compiling sd2iec version 0.6.6 for the Atmega 32 without any problems.
ƸӜƷ

TSM

La Nicchia

  • "TSM" is male
  • "TSM" started this thread

Posts: 25

Date of registration: Aug 29th 2008

Location: Napoli, Italia

  • Send private message

member since 54 month member since 54 month member since 54 month

7

Sunday, October 5th 2008, 12:28am

I'm using gcc version 4.3.0 (WinAVR 20080411) compiling sd2iec version 0.6.6 for the Atmega 32 without any problems.
Can you please report the length of your BIN file? Do you use the bootloader or an attached programmer to upload it to the AVR? Thanks!

8

Sunday, October 5th 2008, 9:44am

Oh my fault, sorry. I checked the gcc-version on the wrong computer :rotwerd:
I use avr-gcc 4.1.2 (WinAVR 20070525) which produces 30434 bytes with the config-sw1 configuration.
You can download it here:http://sourceforge.net/project/downloadi…&use_mirror=dfn

Since i made several code modifications (LCD support) i get a bigger file anyway, which requires me to flash it via programmer.
ƸӜƷ