2012-08-15 08:15 AM
Hi,
I've asked this question via email to STM in May, but didn't get any response, so I'll try again here: Is there a machine-readable IO map description for the STM32 family available anywhere? By this I mean some type of parsable information that includes the units (e.g. GPIO, Ethernet, USB, etc.), the registers and their respective enums and bitlocations. TI and NXP both distribute those in XML format, but I'm happy to use anything really (going to have write code for conversion in any case). Does STM have some equivalent? Doing this by hand from the datasheets is far too error-prone, but I'd really like to use the STM32F4 series in the upcoming tasks. Best regards, Johannes2012-08-15 09:59 AM
The toolchain provider usually have something like this, to setup a project according the selected controller type.
Eclipse based IDEs use XML afaik, of Crossworks I'm definitely sure. But it might be buried somewhere in the folder tree, and have a layout to suit their needs, not yours.2012-08-16 04:24 AM
But surely the toolchain vendors don't type all the information off the datasheet, or do they? And I would think that all the datasheet data and header files from ST are also generated by some authorative machine-readable document. This is what I'm after. I've actually downloaded Crossworks, but couldn't find any matching XML. Probably in one of the additional packs (which is some encrypted blob if I see it correctly).
2012-08-16 04:59 AM
But surely the toolchain vendors don't type all the information off the datasheet, or do they?
I'm not sure how they do it. It is probably more helpful to contact ST directly, or via a sales representative. Albeit this forum is found under ''my.st.com'', you will rarely find comments from ST people here. I am not.I've actually downloaded Crossworks, but couldn't find any matching XML. Probably in one of the additional packs (which is some encrypted blob if I see it correctly).
It is in the CPU support packages. The file format is described in the toolchain manual. However, this was just a statement that there actually is something you looking for. If it's made by ST or someone else is beyond my knowledge.
2012-08-16 08:18 AM
Keil has machine readable, binary, SFR files. As I recall Rowley had some very nice files as part of their board/chip support packages. And I remember having to correct and port some of those as I worked with some Stellaris chips that were ahead of the IDE support.
I suspect that most use mechanisms the parse the include files supplied by the vendor, or have one of their myriad staff type in or digest and format into an internally consistent manner. So yes, I'd assume the compiler team do have someone who does this. In Open Source you rely on someone, perhaps yourself, to do this donkey work. I know I've done it myself for several architectures and platforms when I want to absorb them into the tools I build. Keil has often used an in source definition method which allows you to configure startup register settings. If these are present a ''Configuration Wizard'' Tab/View appears along side the source. Rowley provides it's board and chip support files as ZLIB archives, the tool chain unpacks these when installed.