Sun Microsystems V2.0 manual Memory usage, Start address Space Use, SDK files

Page 52

Memory usage

The Sun SPOT flash memory runs from 0x10000000 to 0x10400000 (4M bytes), and is organized as 8 x 8Kb followed by 62 x 64Kb followed by 8 x 8Kb sectors. The flash memory is allocated as follows:

Start address

Space

Use

0x10000000

64Kb

Bootloader

0x10010000

256Kb

VM executable

0x10050000

512Kb

Squawk bootstrap suite bytecodes

0x100D0000

448Kb

Library suite bytecodes

0x10140000

384Kb

Application slot 1

0x101A0000

384Kb

Application slot 2

0x10200000

2Mb less 16Kb

Available for data storage

0x103FC000

16Kb

Persistent properties and config page

The Sun SPOT external RAM is mapped to run from 0x20000000 to 0x20080000 (512K bytes).

SDK files

The SDK installer places a number of files and directories into the SDK directory specified during installation. This section explains the purpose of each file and directory.

sunspot-sdk

 

Ant

[Private - holds ant scripts]

Arm

Directory holding binary files specific to the Sun SPOT

Bin

Host-specific executables

Doc

Documentation

Lib

Various jar files

upgrade

Files used to upgrade firmware during “ant upgrade”

Src

Library source code

Tests

Test programs

build.xml

The master ant build script

Default.properties

Default property settings for the master ant build script

index.html

Index into supplied documentation

SunSPOT.inf

[Private – a copy of the Windows USB device

 

information file, which should not be needed by the user]

version.properties

The version of the installed SDK

Contents of the arm directory:

 

bootloader-spot.bin

The ready-to-flash version of the bootloader for the Sun SPOT

 

device.

spotlib.suite

The base Sun SPOT device library suite.

squawk.suite

The bootstrap suite used when creating Sun SPOT application

 

suites.

transducerlib.suite

A Sun SPOT library suite containing the base library, the

 

comms stack and the eDemo board library.

vm-spot.bin

The ready-to-flash version of the VM executable.

Contents of the lib directory:

 

52

Image 52
Contents Page Page Contents Http protocol support Introduction Building and deploying Sun Spot applications Deploying and running a sample applicationBuild Successful Total time 3 seconds \MyApplication Ant -Dport=COM2 info Total time 4 seconds \MyApplication Total time 0 seconds \MyApplication Deploying a pre-existing jar Incorporating utility classes into your applicationExcluding files from the compilation Manifest and resourcesOther user properties Built-in properties Using the BasestationOverview Set up Remote operation Base Station configurationIntroduction Connect a Sun Spot base station Using short names for SPOTs Managing keys and sharing Sun SPOTsTake suitable actions during over-the-air downloads BackgroundChanging the owner of a Sun Spot Sharing Sun SPOTsWhat is protected? Deploying and running a host applicationGenerating a new key-pair LimitationsConfiguring network features Your own host applicationIncorporating pre-existing jars into your host application Mesh routingTrace route Hardware configurations and USB powerLogging Page Threads Overview of an applicationThread priorities Sun Spot device library Sun Spot device librariesDevice Interface Persistent properties Accessing flash memory Overriding the Ieee addressUsart Radio communication library Program Radiogram protocol Client end Server endYou can open server radiogram connections in a similar way Broadcasting Radio properties Turning the receiver off and on Monitoring radio activity Conserving power using deep sleep modeShallow Sleep Activating deep sleep mode Deep SleepUSB inhibits deep sleep Preconditions for deep sleepingDeep sleep behaviour of the standard drivers Device Condition to permit deep sleepWriting a device driver Configuring the http protocol Http protocol supportConfiguring projects in an IDE Socket Proxy GUI modeJavadoc/source configuration Classpath configurationDebugging Ant selectapplication Configuring NetBeans as a debug client Configuring Eclipse as a debug clientUsing library suites Advanced topicsWith adderlib as your current directory, execute the command Use the command Using the spot client SpotSerialPortException other exception in serial port comms Persistent system properties ReferenceProperty name Meaning Contents of the arm directory Contents of the lib directoryMemory usage Start address Space UseContents of the bin directory preverify.exe Contents of the upgrade directory Contents of the tests directory