|
Rob,
I used the Yagarto toolchain with Eclipse IDE. I did have to wipe the flash everytime before doing an upload and because there was no built in JTAG interface is was difficult to debug programs but I did manage to control a Ninco slot car race track with it which couldn't be done using the .NET microframework.
There is a good SDK you can download from ATMEL that will help with controlling the GPIO ports. Check out this page to download http://www.atmel.com/devices/SAM7X512.aspx?tab=overview[^]
|
|
|
|
|
Nice one Mathew, thank you. After much distress I've got eclipse and Yagarto working now. I had to remind myself how makefiles work having not used one in 20 years. Strange how I never missed them.....
It'd be good to get C++ working and I have in a sense, but without any standard library. So there is no heap, no malloc and no new operators so its a bit useless at the moment. Still thinking about what to do there.
Will check the link too. Cheers.
Regards,
Rob Philpott.
|
|
|
|
|
The .NET MF is here for like 8 years, came from commercial product and was close-sourced for couple of years, so I wouldn't exactly say half-arsed amateur attempt.
Jitter was considered and tested in the past, that's why it is in the source. However as you noted yourself, it turned out not to be ideal (and resulted in overall worse performance), so it wasn't kept up to date with new memory model and other changes on the way.
The framework was designed from the very beginning not to be realtime and any expectations in this regard must ultimately fail, indeed. There are lots of embedded applications that do not need realtime operation.
The MSDN documentation is absolutely outdated though, I am with you on this.
As for your I2C experience, the only private members of I2C stuff is the I2CDevice.Initialize method which is called by constructor and m_xAction with [FieldNoReflection] attribute so I am not really sure what do you mean by this as there is quite nothing you gain using reflection.
Arduino is cheaper and quicker at running, for sure. But it does not have the framework - web services, user interface, SSL, reflection, XML, Unicode and more. That stuff costs space and speed.
|
|
|
|
|
I absolutely love the .NET Framework, it's a thing of beauty. I am also a fan of ARM microprocessors and started using them pretty much the moment they arrived in the 80s. It should be a marriage made in heaven.
But here's the thing. I read somewhere that a simple Int32.ToString() wasn't fast in netmf, so I tested it. A for loop 0 to 999, in the loop a line to convert the iterator to a string. LED on, then the same thing again, LED off.
When running this, the LED blinks at a rate of about twice a second, implying that the code can execute about 4000 iterations a second. 4000 Int32.ToString()s a second on a 168MHz processor. That IMO can only be described as catastrophic performance.
As far as the I2C bus goes, I just couldn't get it to work no matter what I tried. See here: http://forums.netduino.com/index.php?/topic/944-i2c-internaladdress-repeated-start-bit-support/[^]
When I tried this reflection it couldn't find the private members, and I've checked the source and they don't seem to be there in any version, so I am currently at a complete loss. I might be being thick but I've just lost patience with the thing. Even if I can get it to work it's not going to be quick enough.
Regards,
Rob Philpott.
|
|
|
|
|
I did use the net duino plus (v1) with the .net micro framework, it made it very easy to program it. It was a simple project with a ultrasonic distance sensor and a 3 line LCD to display information.
Didn't have any performance issues, but I guess it maybe because I never built any complex, performance dependent algorithms to use with it.
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
----
Our heads are round so our thoughts can change direction - Francis Picabia
|
|
|
|
|
|
Hello Rob,
You might want to try out Atmels "AtmelStudio" IDE. It is based on MS Visual Studio, has a sensible debugger, and is a free (free means: you trade in some personal data) download. It covers most, if not all Atmel ARM products as well as the 8/32 bit Atmel cores, and the Arduino too. Use it to code in C/C++. Compiling native code, it comes without all the .NET runtime overhead.
See "http://www.atmel.com/technologies/cpu_core/arm.aspx".
|
|
|
|
|
Stupid King Cnut1 doesn't know they aren't meant to be switched on at the slightest hint of rain.
And did you know that LED brake lamps were originally used as anti-collision beacons on DC-10s? They weren't? Who'd have thunk!
With thanks to MM
|
|
|
|
|
I am soooooooooooo with you on this one ! That post made my day. I wish I could just force-blind these people with a 30kW lamp for an hour.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Yes and if using them please switch them off when in traffic where their use is completely pointless.
Also what is it with drivers these days where they insist on sitting at traffic lights on dark nights with the brakes on (why doesn't anybody use the handbrake at lights anymore?) and possibly even fog lights, if behind one of those idiots the light show is so bright I have to keep putting my sunglasses on.
|
|
|
|
|
For automatic cars a foot on the brake while waiting at the lights is how it appears to be taught in US driving schools.
I learned to drive in England where most cars are, or at least used to be, manual ("stick shift" for the USians) and I was taught to go into neutral and put the handbrake on while waiting at the lights.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
For automatics the foot brake when waiting at lights is OK, they can't all be automatics though. Also with all the technology available today why not have a bit of technology to switch of the brake lights once the car is stopped for a little while.
For manuals I can't see a reason for such behaviour except for laziness maybe. Perhaps its the way they learn them these days.
|
|
|
|
|
UsernameNotDefined wrote: For automatics the foot brake when waiting at lights is OK, they can't all be automatics though.
The vast majority are. Only ~ 1 car in 15 sold in the US had a manual transmission a year ago[^]; and IIRC fro other coverage at the time, the reason it was considered newsworthy then was that there was a sudden large jump from previous level of 1 in 25. I don't recall reading anything to say if the jump to 6.5% then was sustained or was just a brief anomaly.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I'm not sure what the % of manuals to autos is in the UK is but its quite a bit more in favour of manuals. Probably something more like 1 to 15 the other way.
|
|
|
|
|
This is probably because it is considered that manual transmissions are more fuel efficient than automatics and when you have petrol ("gasolene" for the USians) at $10+ a gallon this is very important.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
I don't think it is, it's always been that way even when petrol costs were a very small factor. It's more that our roads require good usage of the gears, and until recently (2005? 2000 at best) automatics were really very bad at selecting the right gear at the right time. In contrast, in the Americas (and Australia) you have wide straight flat roads where you need to be in the same gear for 300 miles, and then towns, where you need to trundle between traffic lights and having to manage a clutch and gears is inconvenient.
In Britain in particular we've also got a cultural tradition of driving for fun (see all the sports cars that we used to be famous for making for concrete evidence of that). That's probably a result of the same thing, our curved and varying roads. It's impossible to have fun in an automatic.
|
|
|
|
|
Quote: It's impossible to have fun in an automatic Depends on the girl...
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
You beat me to it.
The report of my death was an exaggeration - Mark Twain
Simply Elegant Designs JimmyRopes Designs
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
I learned to drive on a diesel farm tractor with a hydrostatic ground drive, so maybe that's why I don't use the parking brake at the light, even with a manual shift.
But yes, as far as I know, sitting at the light with a foot on the brake, is how most people are taught in North America. All automatics, and all older column shift cars and light trucks had the 'parking brake' cable connected to a foot pedal. Few of the older generation here ever used a handbrake.
|
|
|
|
|
Because the agonizingly slow electric handbrake has become a thing.
You could also just not apply braking at 99% of the traffic lights, because they're not on hills.
|
|
|
|
|
That's post hoc justification, people have been doing that particular bad habit for a lot longer than electric handbrakes. Which I would never trust with anything, by the way. A purely mechanical system as a failsafe is a really good thing (hence the old habit of leaving a car in gear when parked).
|
|
|
|
|
BobJanova wrote: (hence the old habit of leaving a car in gear when parked).
My dad once left the car with no gear in. Sadly he forgot to pull the hand brake as well, resulting the car crashing into the garage wall. No harm to people done, but the incident cost him 1500.- on repair costs.
A ghost from the past. Known to others as "Linda".
|
|
|
|
|
Who builds a garage on a slope? And enough of a slope to let a car run away to more than slight-dent-in-the-bumper speeds?
|
|
|
|
|
BobJanova wrote: slight-dent-in-the-bumper speeds?
I wasn't more than a slight dent in the bumper. Maybe that has something to do with the fact that he just finished unloading the car and still had the trunk open as the car rolled away
A ghost from the past. Known to others as "Linda".
|
|
|
|
|
Then I have an alternative question which is how does a slight dent in the bumper require four figures to fix? (Or even need fixing at all, for that matter ...)
|
|
|
|