G'day,

How do I find the top most address of flash used by applications at runtime? I 
want to load and execute applications under the control of a monitor program. 
Is there a symbol that can be queried for this purpose?

At this point of time, I only managed to do this by creating a section that is 
placed at the top flash memory address that can be queried by the 
application, see below:

Assembler Code:

            .section Boundary
            .global  HiFlash
HiFlash:    ;
            .end

section information found in monitor.lst
[...]
                  CONTENTS, READONLY, DEBUGGING
 16 Boundary 00000000  00002320  00002320  0000cf8c  2**0
[...]

Test output from monitor program
> info
Highest flash address used by monitor = 0x2320
>

Which indeed is, with the exception of the interrupt vector table, the highest 
address used by the monitor program.

Is this the way to do it or is there an easier way?

Sysinfo: NetBSD-i386-2.0G, mspgcc/gcc-3.4.0, msp430x149

cheerio Berndt

Reply via email to