Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flash memory size of the pinguino 220
02-05-2013, 11:54 PM,
#1
flash memory size of the pinguino 220
Hello,

If i try to compile a program for the pinguino 220 i get the message "`kseg0_program_mem' overflowed by 3796 bytes"
or in the output console
Code:
Board: PIC32 Pinguino 220
Proc: 32MX220F032D
File: C:\x4easyrev685mod\projects\broedkast\broedkast4.pde
error while linking C:\x4easyrev685mod\projects\broedkast\broedkast4.o
I know the 220 only has 32k flash and 8k ram, but if i compile the program for other devices, it always says that the program is only ~16k. Not sure what the problem is but it looks like the ide thinks the memory is even smaller?
SkulltrailDualQuadXeon5420;MacProDualG5;AsusE350;AtomInaVCR;PrecisionM90;EEE1000h;NixdorfComputerfrom1970;Xbox;X360;PS1;PS2;CDI;ATARI2600;LasVegas;C128;ZXSpectrum;Dreamcast;Saturn;Mastersystem;Megadrive;nes;snes;N64;wii;Videopack;Colecovision,GB/P/C/A;DS;
Reply
03-05-2013, 06:56 AM,
#2
RE: flash memory size of the pinguino 220
Hi fjutrackx,

The Bootloader occupys 16kbyte on the flash so you could only use about 12kbyte.

You can shrink code size as follows:
1. Apply Update-EasyPack
http://forum.pinguino.cc/showthread.php?...light=pack
and enable MIPS16 option in Makefile.wn32.
2. In Makefile.win32 ,
change line 90 (change "-O3" to "-Os")
from:
ELF_FLAGS = -EL -O3 ......
to:
ELF_FLAGS = -EL -Os ......



Regards,

avrin
Reply
03-05-2013, 11:18 AM,
#3
RE: flash memory size of the pinguino 220
Isn't the bootloader only 3K on that chip?

John
Reply
03-05-2013, 12:35 PM,
#4
RE: flash memory size of the pinguino 220
Yes the bootloader is quiet big if it is 12k. Never had problems with a to big code. But maybe it is a good idea to give this info in the output when there is an overrun.
"Code: *size* / board: *size* / Usable for code: *size*"
Arvin, thanks for the tip. I'll try it. For now i just took my micro. Works too Smile
SkulltrailDualQuadXeon5420;MacProDualG5;AsusE350;AtomInaVCR;PrecisionM90;EEE1000h;NixdorfComputerfrom1970;Xbox;X360;PS1;PS2;CDI;ATARI2600;LasVegas;C128;ZXSpectrum;Dreamcast;Saturn;Mastersystem;Megadrive;nes;snes;N64;wii;Videopack;Colecovision,GB/P/C/A;DS;
Reply
03-05-2013, 12:40 PM, (This post was last modified: 03-05-2013, 12:52 PM by avrin.)
#5
RE: flash memory size of the pinguino 220
Hi John,

On PIC32 MX220,
you can see source/output.map.

The user flash region starts from the address 0x9d000000,
The bootloader will jump to _reset label ( address 0x9d004000) or _startup.
So at least the bootloader occupies
3kbyte : Physical bootloader region itself.
+
16kbyte : 0x9d0000000 - 0x9d004000 user flash region.
(including vector tables)

Regards,

avrin
Reply
03-05-2013, 03:33 PM,
#6
RE: flash memory size of the pinguino 220
I can't because my output.map is for my board, whose name I took for here.

But the MX220 chip looks to have 3K bootloader + 32K flash. Has this project grabbed 3K+16K for the bootloader???

John
Reply
09-05-2013, 05:44 PM,
#7
RE: flash memory size of the pinguino 220
That's why I started to write a new one.
Any help from Pinguino MX220/250 owners is appreciated to speed up development.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
23-09-2013, 04:20 PM,
#8
RE: flash memory size of the pinguino 220
Hi. All.
I wrote a smallest boot loader for PIC32mx220f032B.
size=9d00_0000-9d00_0ffc and 9fc0_0000-9fc0_0b64(total 7kB)
Although only available in the mx220f032B unfortunately.
Please look if you are interested.

URL
http://hp.vector.co.jp/authors/VA000177/...BootX.html

The Source File is:
http://psp.dip.jp/web/upload/PIC/HIDBoot...2gcc.X.zip

Thank you.
Reply
24-09-2013, 09:29 AM,
#9
RE: flash memory size of the pinguino 220
That's great ! Thank you.
I will take a look.

(23-09-2013, 04:20 PM)iruka6 Wrote: Hi. All.
I wrote a smallest boot loader for PIC32mx220f032B.
size=9d00_0000-9d00_0ffc and 9fc0_0000-9fc0_0b64(total 7kB)
Although only available in the mx220f032B unfortunately.
Please look if you are interested.

URL
http://hp.vector.co.jp/authors/VA000177/...BootX.html

The Source File is:
http://psp.dip.jp/web/upload/PIC/HIDBoot...2gcc.X.zip

Thank you.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
23-01-2014, 10:25 PM, (This post was last modified: 23-01-2014, 10:27 PM by funlw65.)
#10
RE: flash memory size of the pinguino 220
Regis, why no one tried to compile the serial bootloader from AN1388? It fits inside 3Kb with MIPS16 and -Os optimization - of course, you need latest xc32 compiler with 60 days PRO activation.

PIC32 PINGUINO MX220 should have been designed from the ground up for this bootloader considering the small memory footprint. This must be accompanied by a Pinguino compiler with MPIS16 patch applied. And anyway, the board can still be used as is with the serial bootloader - it just needs a little shield.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)