Propeller C3 programming in C
MJF
Posts: 19
-
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
Comments
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.
What do you see there in C:\propgcc\bin ?
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.
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)
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