Page 1 of 1

Internal Memory

Posted: Wed Aug 29, 2012 7:00 pm
by Bryan
Hi Roberto:

Just to add to the other thread http://forum.reefangel.com/viewtopic.php?f=7&t=1714, and I know I should just forget about ISP with the RA for know, but I observe the following.

Uploaded the Internalmemory sketch using ISP. Read the contents of the EEPROm and copy it to a file. Then erase the chip and upload any of the example sketches like contollertest, then program back into the eeprom from the stored file and the RA returns "No Internal Memory Found". Here is a snippet of the EEPROM, which address is missing?

Code: Select all

:10000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
:10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
:10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0
:10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0
:10005000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0
:10006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
:10007000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF90
:10008000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80
:10009000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF70
:1000A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF60
:1000B000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF50
:1000C000FFFFFFFFFFFFFFFF0F1E15000E00151EB5
:1000D0000A000F00040484035802DC051414FE0215
:1000E000020306030203FF3E031C02071400161E50
:1000F00000FFFF3C003C00F6090F643C0F643C002D
:1001000032080F643C0F643C0F643C0F643C0F6486
:100110003C0F643C7800FFFF0208C2011E0203F896
:100120000220032A0300643C00643C00643C006439
:100130003C00643C00643C00643C00643C00643C63
:1001400007F401C4093B0BF70DFFFFFFFFFFFFFFA3
:10015000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAF
:10016000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F
:10017000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8F
:10018000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F
:10019000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6F
:1001A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5F
:1001B000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4F
:1001C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF3F
:1001D000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF2F
:1001E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1F
:1001F000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0F
:10020000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE
:10021000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEE
:10022000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDE
:10023000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCE
:10024000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBE
:10025000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAE
:10026000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9E
:10027000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8E
:10028000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7E
:10029000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6E
:1002A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5E
:1002B000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4E
:1002C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF3E
:1002D000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF2E
:1002E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1E
:1002F000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0E
:10030000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD
:10031000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFED
:10032000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDD
:10033000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCD
:10034000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBD
:10035000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAD
:10036000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9D
:10037000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8D
:10038000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7D
:10039000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6D
:1003A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D
:1003B000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4D
:1003C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF3D
:1003D000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF2D
:1003E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1D
:1003F000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0D
:00000001FF

Re: Internal Memory

Posted: Wed Aug 29, 2012 7:59 pm
by rimai

Code: Select all

InternalMemory.IMCheck_write(0xCF06A31E);

Re: Internal Memory

Posted: Wed Aug 29, 2012 11:40 pm
by Bryan
Stupid me.. I commented that line out the other day as I thought it might have been the reason for the other issue. Works fine now. Still can't program 2 sketches on Studio 6 though, but that is a battle for another day. :D

Re: Internal Memory

Posted: Thu Aug 30, 2012 7:35 am
by rimai
I'm curious to know if the hex file you are trying to upload has a very loooong run of 0s or 0xFFs.
I remember I also had problems programming even with avrdude, when I had long block of the same thing in the code.
Just as an example, I was trying to upload a logo, with white background. That made the code have a lot of the same white color one after the other and avrdude would just ignore and jump to next block. When it was time to verify, this block that was jumped simply didn't match.

Re: Internal Memory

Posted: Thu Aug 30, 2012 5:51 pm
by Bryan
Hi Roberto:

No not really, flashing either the internalmemory sketch or any of the other example sketches. It doesn''t really matter what order I flash, the second one fails the verify, and when I mean it fails the verify it has failed to flash correctly. Verifying failed because the flash has failed, so really the verify is correct, although it doesn't report the flash error.

When I load my EEPROM file which is nothing more than the internalmemory sketch flashed and then the contents of the EEPROm read and stored into it's own hex file it has lots of FF and it has no issues with flashing and verifying.

In your case I suspect it failed to verify for the reasons you suggest, but still flashed correctly and the code ran as it was supposed to.

I think it is something in the Arduino AVR-GCC compiler settings or the makefile that may be causing some issue.