Developing for Prop on an embedded ARM Linux system.
Heater.
Posts: 21,230
What is so special about the following command and response?
Well, nothing really except that for once I am running it on an ARM processor running Debian Linux. Yes the same executable runs an all architectures that have a .NET run time. Seems this one works as well:)
This ARM board is an IGEP from ISEE in Spain and is about the size of a cigarette box. It's similar to a Beagle Board but with more peripherals and an industrial temperature spec.
So here we have a very small Prop development system. Indeed the this board plus Prop for real-time stuff becomes a self hosting embedded system.
# mono homespun.exe temp.spin Homespun Spin Compiler 0.31 parsing temp.spin compiling temp.spin writing 32768 bytes to temp.eeprom l#
Well, nothing really except that for once I am running it on an ARM processor running Debian Linux. Yes the same executable runs an all architectures that have a .NET run time. Seems this one works as well:)
This ARM board is an IGEP from ISEE in Spain and is about the size of a cigarette box. It's similar to a Beagle Board but with more peripherals and an industrial temperature spec.
So here we have a very small Prop development system. Indeed the this board plus Prop for real-time stuff becomes a self hosting embedded system.
Comments
http://www.igep.es/index.php?option=com_content&view=article&id=47&Itemid=54
-dan
It is very nice that it "just worked". Have you tried uterm?
I have the IGEP V2. No GSM but WFI and Bluetooth instead. Much more RAM and FLASH. http://www.igep.es/index.php?option=com_content&view=article&id=46&Itemid=55
jazzed,
What uterm? What would I do with it?
I also have a .net uconv program that automatically converts parallax font infected files to normal ascii
If I want to talk to the Prop there is always minicom or gtkterm on the IGEP.
iconv does a good job of parallax font infection removal:)
I was referring to the uterm command line serial port program that you posted back in the general discussion .net thread. I appreciate your port fix-up. I also appreciate not having to unnecessarily switch windows to some silly GUI thingy during my VI propeller developments.
The only power source would be photovoltaics. Four hours of charging would need to provide 20 hours of continuous operation. Do you suppose this is practical?
Depends on how many continuos cloudy days you have. Once you figure up the battery size for 20+ hours of operation, tripel it(for the couldy days) then size the solar array to charge the battery in the alotted time.
-dan
I have not measured the power consumption of the IGEP board yet but I don't see why it should be worse than an Android phone or tablet which has much the same hardware and runs for quite some time on batteries of course.
What would you use for a display?
Soon ISEE will have a similar board with touch screen running Android. Perhaps I should be looking at getting HomeSpun running under mono for Android.
The 20 hours of operation for four hours of charging was a rough estimate of all the factors you mention. No doubt a large solar installation could keep just about any PC operating for a long time.
Instead, I was thinking more of a bank of NiMH AA cells connected in a manner to provide whatever supply voltage the board, keyboard, and display required. Ideally, three cells in series, providing a nominal 3.6 V, could be used. Ten such packs could supply perhaps 20 Amp-hours. So if the board, display, and everything else could be kept below 1A average current draw, I'd be in business.
A buck converter could perhaps be used with a standard 12 V - 14 V solar panel to charge the cells with decent efficiency
I guess what could be a scenario. Stuck at the airport due to volcanic ash from a volcano in Chile (Australia's airspace is mostly shut down at the moment) and you can pull out your trusty development system and do some coding?
I guess netbooks are getting cheap enough.
I was thinking when could you do self hosted development and then remembered that yes we can, because we can compile/run C and Basic and Fortran and Pascal from the CP/M emulation.
When could it be possible from within the prop itself rather than an emulator on the prop? Might need a word processor. How much of Catalina is written in C? The final spin compiler can't run on the prop. Or maybe it will be possible soon, looking at post #571 on the giant GCC thread with a comment by Ken about Roy Eltham's work.
I think that's a great idea! Seems like a 10" Android tablet with SD storage and an attachable keyboard would be a slick low-power solution.
Hi Dr_A,
The Catalina compiler and all of its support utilities (catbind, payload & blackbox) are written 100% in C. Catalina currently uses Homespun as its SPIN/PASM assembler - which means that Catalina can be run on any platform that supports either .NET or mono. As Heater has admirably just demonstrated, this now includes ARM processors.
The Parallax tool that Roy is currently porting has too many limitations to be used to compile large-scale LMM programs (e.g. it runs out of symbol space, or doesn't support long enough identifiers). Perhaps Roy intends to fix these issues as he is doing the port, but in the short to medium Catalina will continue to use Homespun. But if Parallax ever offers an "officially sanctioned" open source tool that can be used instead, I will certainly adopt it.
Ross.
I knew this was going to get out of hand:)
Now I have to compile Catalina on the IGEP and prove that we can develop for the Prop in C from there.
Have you ever built Catalina for ARM?
In theory zpu-gcc should also compile there for Zog but I won't hold by breath. It's hard enough to build that compiler at the best of times.
Ross.
Is it a silly idea to think of running any of that on the prop itself? Is the limiting thing the homespun compiler? I wonder how much of C could be translated directly to pasm in the same way as propbasic?
Don't mind me - I'm just rambling on here. When I was a kid I programmed in Basic and my dad programmed in Fortran and we both used to muse about this mysterious programming language called C which could compile itself. I've always liked that idea.
How much access to secret source code would you need to do this? A "Delphi to C" translator to do the spin/pasm bit?
I have on a Zipit Z2.
RossH,
I can't check out catalina from sourceforge, always says "Checked out revision 0." and leaves me with an empty catalina-c directory.
Hi Heater,
I don't use the SourceForge code repositories - didn't seem much point as I'm the only one working on the code itself. Just download the latest release - all the source code is in there.
Ross.
Yep got that. Damn tar ball splatted itself all over my home directory. That will teach me to not use the -t option first:)
Cant' build anything as all the directory permissions are wrong.
What's the best way to build Catalina anyway?
But seriously, once you get it unpacked (and assuming you put it in /usr/local/lib/catalina) all you really need to do is visit each of the following subdirectories and type "build_all" in each one:
source/lcc
source/lib
source/srecord
:):):):):):):):):):):)