I have a bare metal, dual processor application. Code appears to work well after changing the lscript.ld files to increase the stack and heap allocation on both processors. Picked heap and stack sizes based on experimentation until it worked.
1) I want to make sure I have allocated enough heap and stack. When my program is running, how do I tell exactly how much stack and heap space is unused and still available? I want to make sure I have margin.
2) I believe I could figure out the previous problem if I knew the pyhsical address that the stack and space are mapped to. When specifying the sizes in the lscript.ld, how do you know the exact physical memory locations that they are mapped to?