Has Anyone Used the 'Heap' Object?
lardom
Posts: 1,659
I'm trying to get an idea of how this obex object is used. I want to learn how to reserve a physical block of eeprom memory say, for example, $4fff to 6fff to store data. I'm studying different objects but I haven't seen an object that specifies a block of hex addresses for data storage. This is what I think I should be looking for.
Comments
The 1st 32K bytes of EEPROM are the territory of the Propeller Tool (or BST). The whole 32K is changed when you download a new program to the EEPROM. Everything beyond the end of the program is zeroed. If you don't download a new program, you can use whatever portion of the 1st 32K of the EEPROM is not actually used by your program. Typically, this is from the end of the 32K down to the start of the stack area. Again, this gets erased when you download a new program.
If you have an EEPROM larger than 32K, everything beyond the 1st 32K is yours. You can do whatever you want with it and the Propeller Tool won't touch it. There are objects in the Propeller Object Exchange that will let you read and write to the EEPROM.
I think you would need to look at I2C objects.