That blinks the correct pin.
Excellent!
I don't really doubt the pin can be made to blink, and I thank you for showing me in a couple of lines of code how to do it, but I wonder if there isn't some problem with the Sanguino with reference to the defines in the standard libraries.
I have never used a Sanguino so I don't know if the reference material is accurate. I had you run the test in case you didn't get replies from someone who has used a Sanguino; someone who could verify that the reference material is accurate. In other words, I wanted to make certain we were starting with accurate information.
But I baulked at replacing files in my 0022 installation with ones which were for 0012 Arduino (replacing, not adding) as a quick "diff" showed major changes had happened.
You made the right choice! It is absolutely
not necessary to replace the Arduino core files.
I'll give you instructions based on the layout of the Tiny Core. You should be able to install the Sanguino core by using different directory names. I'll use "{Sketch}" to refer to the Sketch directory on your computer.
1. I suggest undoing everything you've done so far. Ensure the Arduino IDE is not running. Start by removing the Sanguino entries from the original "boards.txt".
You can and should put third party core files in the {Sketch}\hardware\ directory. Under that directory I have a "tiny" directory where the Tiny Core belongs. I'll use the directory name "sanguino".
2. Create the directory... {Sketch}\hardware\sanguino\
In my "tiny" directory I have a "boards.txt" file and a "programmers.txt". For the Sanguino, you will not be adding any new programmers but I suggest creating an empty file just in case the IDE needs to be appeased. Later you can try deleting the file.
3. Create an empty text file... {Sketch}\hardware\sanguino\programmers.txt
The Sanguino boards.txt file includes entries for the AdaBoot bootloader on the 168 and 328 processors. You won't need those for the Sanguino and I suggest leaving them out.
4. Put the following contents into this file... {Sketch}\hardware\sanguino\boards.txt
ADABoot644P.name=Sanguino - ADABoot loader w/ATmega644p
ADABoot644P.upload.protocol=stk500
ADABoot644P.upload.maximum_size=63488
ADABoot644P.upload.speed=38400
ADABoot644P.bootloader.low_fuses=0xFF
ADABoot644P.bootloader.high_fuses=0xDC
ADABoot644P.bootloader.extended_fuses=0xFD
ADABoot644P.bootloader.path=ADABootloader
ADABoot644P.bootloader.file=ADABoot_644p.hex
ADABoot644P.bootloader.unlock_bits=0x3F
ADABoot644P.bootloader.lock_bits=0x0F
ADABoot644P.build.mcu=atmega644p
ADABoot644P.build.f_cpu=16000000L
ADABoot644P.build.core=sanguino
ADABoot644P.verbose=false
5. Create the directory... {Sketch}\hardware\sanguino\cores\
6. Create the directory... {Sketch}\hardware\sanguino\cores\sanguino\
7. Copy the core files (HardwareSerial.cpp, HardwareSerial.h, Makefile, etcetera) into the directory created above... {Sketch}\hardware\sanguino\cores\sanguino\
8. Create the directory... {Sketch}\hardware\sanguino\bootloaders\
9. Create the directory... {Sketch}\hardware\sanguino\bootloaders\ADABootloader\
10. Copy the bootloader files (ADABoot_644p.hex, etcetera) into the directory created above... {Sketch}\hardware\sanguino\bootloaders\ADABootloader\
That should do it. The Tools menu should now have a "Sanguino - ADABoot loader w/ATmega644p" entry and hopefully works correctly.