Package org.contikios.cooja.contikimote.ContikiMoteType

Examples of org.contikios.cooja.contikimote.ContikiMoteType.SectionParser


//      testOutput.addMessage("### Error: Failed parsing map file data", MessageList.ERROR);
//      return false;
//    }

    testOutput.addMessage("### Validating section addresses");
    SectionParser dataSecParser = new ContikiMoteType.MapSectionParser(
            mapData,
            Cooja.getExternalToolsSetting("MAPFILE_DATA_START"),
            Cooja.getExternalToolsSetting("MAPFILE_DATA_SIZE"));
    SectionParser bssSecParser = new ContikiMoteType.MapSectionParser(
            mapData,
            Cooja.getExternalToolsSetting("MAPFILE_BSS_START"),
            Cooja.getExternalToolsSetting("MAPFILE_BSS_SIZE"));
    dataSecParser.parse(0);
    bssSecParser.parse(0);
    relDataSectionAddr = dataSecParser.getStartAddr();
    dataSectionSize = dataSecParser.getSize();
    relBssSectionAddr = bssSecParser.getStartAddr();
    bssSectionSize = bssSecParser.getSize();
    testOutput.addMessage("Data section address: 0x" + Integer.toHexString(relDataSectionAddr));
    testOutput.addMessage("Data section size: 0x" + Integer.toHexString(dataSectionSize));
    testOutput.addMessage("BSS section address: 0x" + Integer.toHexString(relBssSectionAddr));
    testOutput.addMessage("BSS section size: 0x" + Integer.toHexString(bssSectionSize));
    if (relDataSectionAddr < 0) {
View Full Code Here


//      testOutput.addMessage("### Error: Failed parsing command output", MessageList.ERROR);
//      return false;
//    }

    testOutput.addMessage("### Validating section addresses");
    SectionParser dataSecParser = new ContikiMoteType.CommandSectionParser(
            commandData,
            Cooja.getExternalToolsSetting("COMMAND_DATA_START"),
            Cooja.getExternalToolsSetting("COMMAND_DATA_SIZE"),
            Cooja.getExternalToolsSetting("COMMAND_VAR_SEC_DATA"));
    SectionParser bssSecParser = new ContikiMoteType.CommandSectionParser(
            commandData,
            Cooja.getExternalToolsSetting("COMMAND_BSS_START"),
            Cooja.getExternalToolsSetting("COMMAND_BSS_SIZE"),
            Cooja.getExternalToolsSetting("COMMAND_VAR_SEC_BSS"));

    dataSecParser.parse(0);
    bssSecParser.parse(0);
    relDataSectionAddr = dataSecParser.getStartAddr();
    dataSectionSize = dataSecParser.getSize();
    relBssSectionAddr = bssSecParser.getStartAddr();
    bssSectionSize = bssSecParser.getSize();
    testOutput.addMessage("Data section address: 0x" + Integer.toHexString(relDataSectionAddr));
    testOutput.addMessage("Data section size: 0x" + Integer.toHexString(dataSectionSize));
    testOutput.addMessage("BSS section address: 0x" + Integer.toHexString(relBssSectionAddr));
    testOutput.addMessage("BSS section size: 0x" + Integer.toHexString(bssSectionSize));
    if (relDataSectionAddr < 0) {
View Full Code Here

TOP

Related Classes of org.contikios.cooja.contikimote.ContikiMoteType.SectionParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.