Should demos/toggle/lmm_toggle/toggle.c compile w/ -mcog option?
mindrobots
Posts: 6,506
If any of the examples would, I thought the lmm_toggle version might. when I try, I get errors.
does something need to be done in the c source to set up or indicate the cog memory model is going to be the target?
There's a crt0_cog.s in the libraries but no crt_cog.s - I'm not sure where to go from here.
If lmm_toggle won't go into a COG model, I'd like to come up with a toggle program that would.
Help!
Thanks!
rick@linux-server:~/demos/toggle/lmm_toggle$ propeller-elf-gcc -o toggle-cog.elf -mcog toggle.c /usr/local/propeller/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find crt_cog.o: No such file or directory /usr/local/propeller/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find crtend_cog.o: No such file or directory collect2: ld returned 1 exit status rick@linux-server:~/demos/toggle/lmm_toggle$
does something need to be done in the c source to set up or indicate the cog memory model is going to be the target?
There's a crt0_cog.s in the libraries but no crt_cog.s - I'm not sure where to go from here.
If lmm_toggle won't go into a COG model, I'd like to come up with a toggle program that would.
Help!
Thanks!
Comments
Thanks,
Eric
That'll work!