Shop OBEX P1 Docs P2 Docs Learn Events
SimpleIDE problem - won't build Blink Light program — Parallax Forums

SimpleIDE problem - won't build Blink Light program

element74element74 Posts: 2
edited 2014-01-01 14:11 in Propeller 1
Hello.
I am trying to program my Propeller P8X32A-D40 in C using SimpleIDE. I have version 0.9.45 of SimpleIDE and also the latest Learn folder. When I build the Blink Light program, it says this:

Project Directory: /Users/charlie/Documents/SimpleIDE/Learn/Examples/Circuits/

propeller-elf-gcc -v
/Applications/SimpleIDE.app/Contents/MacOS/SimpleIDE/parallax/bin/propeller-ef-gcc error ... (0)

propeller-elf-gcc -I . -L . -I /Users/charlie/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L /Users/charlie/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/lmm/ -I /Users/charlie/Documents/SimpleIDE/Learn/Simple Libraries/Text Devices/libsimpletext -L /Users/charlie/Documents/SimpleIDE/Learn/Simple Libraries/Text Devices/libsimpletext/lmm/ -I /Users/charlie/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L /Users/charlie/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/lmm/ -o lmm/Blink Light.elf -Os -mlmm -m32bit-doubles -fno-exceptions -std=c99 Blink Light.c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
/Applications/SimpleIDE.app/Contents/MacOS/SimpleIDE/parallax/bin/propeller-elf-gcc error ... (0)

Done. Build Failed!

I used the C code from the example, making sure that "Compiler Type" was set to "C" and "Memory Model" was set to "LMM Main RAM". The code is here:
/*
Blink Light.c


Version 0.94 for use with SimpleIDE 9.40 and its Simple Libraries

Blink light circuit connected to P26.
http://learn.parallax.com/propeller-c-simple-circuits/blink-light
*/
#include "simpletools.h" // Include simpletools



int main() // main function
{
while(1) // Endless loop
{
high(26); // Set P26 I/O pin high
pause(100); // Wait 1/10 second
low(26); // Set P26 I/O pin low
pause(100); // Wait another 1/10 second
}
}

Comments

  • jazzedjazzed Posts: 11,803
    edited 2013-12-31 15:21
    Hi. Welcome to the forum.

    Sorry you're having trouble.

    That error output usually means the compiler can't be found. I recommend this:

    Use Menu -> Tools -> Properties to open the Properties dialog.
    Use the General Tab, and click "Clear Settings", then "Cancel",
    Close SimpleIDE. Restart SimpleIDE.

    If that procedure doesn't help, run the installer again - don't just run the installer first as "Clear Settings" is important.
  • element74element74 Posts: 2
    edited 2014-01-01 14:11
    Thank you so much! Reinstalling did it. Worked like a charm! :smile:
Sign In or Register to comment.