2009-06-08 10:11 PM
ST32F101RB hello world software
2011-05-17 04:13 AM
Okay, here's a simple example...
It's quite ugly and I'm a little embarrassed to post it. But it may save someone some time. Unfortunately it's using the Fwlib v2. In my working code, I replaced a lot of the library functions with direct writes thru pointers. The library seems to do a lot of runtime calcs.. also the Gnu linker links in all functions from a file if one is used. In stripping this back for the example, I tried to use the library.. I couldn't get the serial init stuff going so I left my direct writes... sorry, I'll try to fix. I've been thinking about coming up with some sort of a howto on this. Anyways, what I've got is here: On the 2009-6-9 entry, file to download is Blinky0.1.tar.gz.2011-05-17 04:13 AM
Quote:
... buried in checkboxes and options by the IDE packagers, so you never really see it.
Yes, that is both the advantage and the problem with so-called ''IDEs''! :-? It's supposed to be an ''advantage'' because it saves you having to wade through all the arcane options and settings, and having to set up your own script files, etc. The problem comes, as you say, when it doesn't work - and you're left really not knowing what's going on ''under the bonnet (hood)''. I think ST have really missed a trick here relative to a certain other well-known Cortex-M3 vendor - who provides low-cost, complete, ready-to-go kits including tools and examples specifically tailored to those tools.