Shop OBEX P1 Docs P2 Docs Learn Events
Activity Board Testing Request — Parallax Forums

Activity Board Testing Request

DavidZemonDavidZemon Posts: 2,973
edited 2016-01-02 19:51 in Propeller 1
I'm making changes to adcACpropab.c and adcACpropab.cogc in the Learn folder in order for PropWare to be capable of utilizing those files. Unfortunately, I don't have an Activity Board to test my changes with. Is there anyone out there that has an Activity Board and would be willing to test a binary for me? The attached binary is running the following code, taken from libadcACpropab.c in the Learn folder, and I only need you to tell me if the program is operating correctly (should simply print the ADC value repeatedly)
int i = 0;                                  // Index variable
while(1)                                    // Loop repeats indefinitely
{
  print("adcVal[%d] = %d%c\n", i,          // Display raw ADC
          adcVal[i], CLREOL); 
  pause(100);                               // Wait 1/10 s
   i++;                                      // Add 1 to index
  if(i == 4)                                // After index = 3
  {
    i = 0;                                  // Reset to zero
    print("%c", HOME);                     // Cursor home
  }  
}

Comments

  • Don't know C much, but here is off Activity Board
    640 x 531 - 208K
    Test.jpg 208.4K
  • @Publison, did you copy and paste the code and compile in SimpleIDE or did you load the binary that I attached?
  • I edited my original post to make it a little more obvious that I'm asking for the attached binary blob to be tested, not for someone to compile anything via SimpleIDE.
  • OK, the blob is not associated with any tool, so I may not have the tools installed.
  • Not sure how to download .elf file.
  • propeller-load allows downloading binaries to a Prop. You can build it from source here or it also comes shipped along with propgcc, which can be downloaded here.
  • Sorry, not involved with GCC. I'll have to bow out.
  • David, if I get a chance this evening, I can test it. I know where an Activity board is and I think I have SimpleIDE installed someplace.
  • mindrobots wrote: »
    David, if I get a chance this evening, I can test it. I know where an Activity board is and I think I have SimpleIDE installed someplace.

    Much appreciated!
    Publison wrote: »
    Sorry, not involved with GCC. I'll have to bow out.

    PropellerIDE probably comes with something too. Not sure if its propeller-load or something similar.
  • Unfortunately, I do not have any QT stuff installed. When I get the time, who has any of that? :) ) I'll try it again.
  • DavidZemon wrote: »
    propeller-load allows downloading binaries to a Prop. You can build it from source here or it also comes shipped along with propgcc, which can be downloaded here.
    David: Why not post a .binary file instead of a .elf file. You can generate one using the propeller-load -e option.
  • David Betz wrote: »
    DavidZemon wrote: »
    propeller-load allows downloading binaries to a Prop. You can build it from source here or it also comes shipped along with propgcc, which can be downloaded here.
    David: Why not post a .binary file instead of a .elf file. You can generate one using the propeller-load -e option.
    Good call David!

  • David Betz wrote: »
    DavidZemon wrote: »
    propeller-load allows downloading binaries to a Prop. You can build it from source here or it also comes shipped along with propgcc, which can be downloaded here.
    David: Why not post a .binary file instead of a .elf file. You can generate one using the propeller-load -e option.

    Okay, turns out it's the "-s" option not "-e" :)

    Here ya go
  • DavidZemon wrote: »
    David Betz wrote: »
    DavidZemon wrote: »
    propeller-load allows downloading binaries to a Prop. You can build it from source here or it also comes shipped along with propgcc, which can be downloaded here.
    David: Why not post a .binary file instead of a .elf file. You can generate one using the propeller-load -e option.

    Okay, turns out it's the "-s" option not "-e" :)

    Here ya go
    Ah yes, sorry! It's -s to create a "Spin binary".

  • PublisonPublison Posts: 12,366
    edited 2016-01-02 23:37
    With the .bin I get. Is that was you expect?

    640 x 353 - 88K
  • This is all being done under Windows10.

    This is not encouraging for the C world. I have a Win10 laptop that has never had SimpleIDE installed. so I installed RC2 from the Learn pages per the instructions and updated the libraries and all that worked fine,

    This gave me the "Updated 12-29-2014: Windows: 1.0 RC2" version of SimpleIDE and I updated to the Updated 11-07-2014 version of the Learn library. This all appears to be the latest and greatest available that I can find on the Parallax site. (This is still a problem and I'll open up another thread about this.)

    I went to load your .elf file and got the following error:
    E:\>dir *.elf
    Volume in drive E is DOCK-SSD
    Volume Serial Number is 9697-BFE5

    Directory of E:\

    01/02/2016 06:56 PM 21,336 libadcACpropab.elf
    1 File(s) 21,336 bytes
    0 Dir(s) 238,481,633,280 bytes free

    E:\>propeller-load -e -r -t libadcACPropab.elf
    Propeller Version 1 on COM11
    error: this program requires a newer version of propeller-load
    error: failed to open elf file
    error: load failed

    So, SimpleIDE RC2 isn't using the latest and greatest propeller-load. I'll see if I have a newer propeller-load installed someplace to try the .elf file.

    Now, I'm not sure where to head with this if I want to use the tools on this Windows laptop and keep a working environment. This will all be discussed in another thread.

    Using the Propeller Tool to load the .binary you created, I get this output:
    adcVal[0] = 2098

    adcVal[1] = -1

    adcVal[2] = 2101

    adcVal[3] = -1
    The adcVal[0] and adcVal[2] values change but stay around 2098-2102.
  • David

    Here's my result:
    $ propeller-load -r -t libadcACpropab.binary 
    Propeller Version 1 on /dev/cu.usbserial-DAWSSR65
    Loading libadcACpropab.binary to hub memory
    8544 bytes sent                  
    Verifying RAM ... OK
    [ Entering terminal mode. Type ESC or Control-C to exit. ]
    adcVal[0] = 1261
    
    adcVal[1] = -1
    
    adcVal[2] = 2099
    
    adcVal[3] = -1
    
    adcVal[0] = 2098
    
    adcVal[1] = -1
    
    adcVal[2] = 2101
    
    adcVal[3] = -1
    
    adcVal[0] = 2098
    
    ...   <== keeps going, giving similar results
    
    

    dgately
  • Thank you both. This looks good to me and should do well enough for Andy, or whomever reviews my pull request.
  • Hi David,

    Just to be a little OCD, I also tested it with the Measure Volts and Set Volts, and both worked great. I'll merge your changes; thanks so much!

    Andy
  • DavidZemonDavidZemon Posts: 2,973
    edited 2016-01-04 23:52
    Hi David,

    Just to be a little OCD, I also tested it with the Measure Volts and Set Volts, and both worked great. I'll merge your changes; thanks so much!

    Andy

    Excellent! That means (as far as I know) PropWare is 100% source-code compatible with the Simple libraries and SimpleIDE (excluding Spin). If it compiles in SimpleIDE, it should compile with PropWare.
Sign In or Register to comment.