Shop OBEX P1 Docs P2 Docs Learn Events
Learn example: Index Array Variables.side - doesn't load — Parallax Forums

Learn example: Index Array Variables.side - doesn't load

John KauffmanJohn Kauffman Posts: 653
edited 2013-09-17 15:33 in Learn with BlocklyProp
I'm using example built in to Learn package: SimpleIDE/Learn/examples/C Intro/Basics/index Array Variables.side
Loaded with F8.
Build succeeds, load fails with message below and highlight on print line.
I tried on two boards w/same results.
Other programs from Learn are running fine

...
Done. Build Succeeded!
propeller-load.exe -Dreset=dtr -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b PROPBOE cmm/Index Array Variables.elf -r -p COM9
Ignored 251 bytes.
Ignored 251 bytes.

/*
  Index Array Variables.c

  Version 0.94 for use with SimpleIDE 9.40 and its Simple Libraries
  
  Use a for loop to display all the elements in an array.
  
  http://learn.parallax.com/propeller-c-start-simple/index-array-variables
*/

#include "simpletools.h"                      // Include simpletools

int main()                                    // main function
{
  int p[] = {1, 2, 3, 5, 7, 11};              // Initialize the array
  for(int i = 0; i < 6; i++)                  // Count i from 0 to 5
  {
    print("p[%d] = %d\n", i, p[i]);           // Display array element & value
    pause(500);                               // 1/2 second pause
  }
}

Comments

  • dgatelydgately Posts: 1,631
    edited 2013-09-17 11:44
    Doesn't seem to be a generic issue with this example project as I'm able to build and run without issue.

    IndexArrayExample.jpg


    I built versions of CMM, LMM, XMMC and they ran.

    My LMM load output:
    propeller-load -Dreset=dtr -I /opt/parallax/propeller-load/ -b ACTIVITYBOARD lmm/Index Array Variables.elf -r -p /dev/cu.usbserial-DAWSSR65Propeller Version 1 on /dev/cu.usbserial-DAWSSR65
    Loading lmm/Index Array Variables.elf to hub memory
    9452 bytes sent
    
    
    Verifying RAM ... 
    OK
    

    This was on an Activity Board. Something about your config, possibly?


    dgately
    1024 x 795 - 89K
  • KMyersKMyers Posts: 433
    edited 2013-09-17 15:33
    Ran fine on my activity board...
Sign In or Register to comment.