is it possible to use a scat file to place the rw compression data?
"Either I'm not understanding you correctly or I think you may not be completely clear on what the scatter loading section attributes mean."
One thing I could not do is claim to be an expert on the scatter loading file, it's syntax or it's facilities!
"From my understanding the 0x77 IS my RW section."
I would say "not quite". The location of it may well me in the RW section, but 'something' has to initialise that location. The 'something' is the scatter loader and the scatter loader reads the information it has to use from the 'extra' section (which I referred to before).
Maybe we're discussing the same thing, but from slightly different viewpoints.
If you were to single step through the startup as I suggested, and watch the variable you expect to see the value 0x77 in, I think you will see the variable get written as part of the startup.
We must be saying the same thing just in circles... The 0x77 IS the RW section (I'm almost sure of this)
Basically Figure 2 on this page says it all:
http://www.keil.com/support/man/docs/armlink/armlink_Bhchdbih.htm
The important thing is to realize the the Load View has an RW section and the Execution View has an RW section and they do not have to be at the same place but both are still the RW sections.
The code that moves/copies/decompresses the regions that don't have the same Load and Execute locations is the C lib init code. I've single stepped through this code may time :)
Cheers,
M
"We must be saying the same thing just in circles..."
Yes, I think we are ;)
However, I have to admit that you've made me revisit and rethink the topic - My original requirement changed a little and the challenge went away.
When I get a chance, I would like to re-examine the whole area keeping your comments to hand.
Cheers.