Shop OBEX P1 Docs P2 Docs Learn Events
Propeller C3 programming in C — Parallax Forums

Propeller C3 programming in C

MJFMJF Posts: 19
edited 2013-01-15 12:05 in Propeller 1
  • Can anyone help, I am using a Mac to connect to a propeller C3 board using the C compiler. On the SimpleIDE for Mac I have no Comms ports available to select to allow me to download to the C3 board even though the board is recognised by the Mac when it is plugged in.

    I have also tried to use the windows version of the C compiler ( using Parallels on Mac) which worked and down loaded once to the board but I now get a a.out error


    Project Directory: //psf/Home/Documents/SimpleIDE/hello/
    Ignoring "Simple printf" flag in COG mode program.
    propeller-elf-gcc.exe -o a.out -Os -mcog -I . -fno-exceptions hello.c
    propeller-elf-gcc.exe error ... (0)
    propeller-elf-objdump -h a.out
    propeller-elf-objdump error ... (0)
    propeller-elf-objdump error ... (0)
    Done. Build Succeeded!
    propeller-load.exe -I C:/propgcc/propeller-load/ -S1 -b ASC -p COM3 a.out -rPropeller Version 1 on COM3
    error: failed to open 'a.out'
    error: load failed

    Can anyone help .

    thanks

Moderation Tools(0)

Comments

  • jazzedjazzed Posts: 11,803
    edited 2012-09-02 11:14
    MJF wrote: »
    Project Directory: //psf/Home/Documents/SimpleIDE/hello/
    Ignoring "Simple printf" flag in COG mode program.
    propeller-elf-gcc.exe -o a.out -Os -mcog -I . -fno-exceptions hello.c
    propeller-elf-gcc.exe error ... (0)

    The compiler failed. If that doesn't work, nothing else will. Can you describe where the IDE is installed?
  • MJFMJF Posts: 19
    edited 2012-09-02 12:10
    The program is installed in "C:\Program Files (x86)\SimpleIDE\bin" this is using Parallels on my Mac to run Windows 7 Ultimate.

    The first time I tried the IDE it compiled and downloaded and the program ran on the Propeller C3. Since getting the error I have uninstalled and installed the IDE as well.

    Mark
  • jazzedjazzed Posts: 11,803
    edited 2012-09-02 15:09
    MJF wrote: »
    The program is installed in "C:\Program Files (x86)\SimpleIDE\bin" this is using Parallels on my Mac to run Windows 7 Ultimate.

    The first time I tried the IDE it compiled and downloaded and the program ran on the Propeller C3. Since getting the error I have uninstalled and installed the IDE as well.

    Mark

    The path to propeller-elf-gcc must be set in the environment variables for windows, otherwise the program will not work. Use the F6 key to open properties and browse for propeller-elf-gcc.

    One thing to consider in the windows environment at least is that an aggressive virus scanner like Norton Anti-Virus may remove programs for lack of a "reputation" after running one time ... it is possible that the program was removed if Norton is running.
  • MJFMJF Posts: 19
    edited 2012-09-03 12:56
    In the Environment Variables for Windows I have Path set as ";C:\propgcc\bin". If i search for propeller-elf-gcc it is not found.
  • jazzedjazzed Posts: 11,803
    edited 2012-09-03 13:35
    MJF wrote: »
    In the Environment Variables for Windows I have Path set as ";C:\propgcc\bin". If i search for propeller-elf-gcc it is not found.

    What do you see there in C:\propgcc\bin ?
  • MJFMJF Posts: 19
    edited 2012-09-03 14:22
    Yes there is an application propeller-elf-gcc, as well as other propeller-elf applications.
  • jazzedjazzed Posts: 11,803
    edited 2012-09-03 14:41
    MJF wrote: »
    Yes there is an application propeller-elf-gcc, as well as other propeller-elf applications.

    How big is the file?

    Can you open a command window?
    Then enter: propeller-elf-gcc -v
    Copy/paste the output here if it gives anything.

    Do you use any chat programs? If so, it may be faster to resolve this if you send me a PM.
  • MJFMJF Posts: 19
    edited 2012-09-16 03:16
    Sorry for the delay in getting back to you.

    The file is 854 KB

    below is the output from the command line window.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.


    C:\Users\markfisher>propeller-elf-gcc -v
    Using built-in specs.
    COLLECT_GCC=propeller-elf-gcc
    COLLECT_LTO_WRAPPER=c:/propgcc/bin/../libexec/gcc/propeller-elf/4.6.1/lto-wrappe
    r.exe
    Target: propeller-elf
    Configured with: ../../propgcc/gcc/configure --target=propeller-elf --prefix=/op
    t/parallax --disable-nls --disable-libssp --disable-lto --with-pkgversion=propel
    lergcc_v0_3_4_1481 --with-bugurl=http://code.google.com/p/propgcc/issues
    Thread model: single
    gcc version 4.6.1 (propellergcc_v0_3_4_1481)
  • ghxueghxue Posts: 2
    edited 2013-01-15 10:18
    I met the same question. and I tried to type propeller-elf-gcc -v in the command windows, then it said:
    Untitled.png
    . what's wrong with it?
    613 x 43 - 2K
  • ersmithersmith Posts: 6,054
    edited 2013-01-15 12:05
    ghxue wrote: »
    I met the same question. and I tried to type propeller-elf-gcc -v in the command windows, then it said:
    Untitled.png
    . what's wrong with it?

    The error says that propeller-elf-gcc is not recognized as a command; that means that the Windows command line is unable to find it. Most likely that means the directory containing propeller-elf-gcc.exe is not part of the PATH environment variable. There are various resources online explaining the WIndows PATH and how to change it. I think the SimpleIDE installation should automatically do this for you, so you might try installing SImpleIDE (or uninstalling and re-installing, if you already have it).

    Eric
Sign In or Register to comment.