Support for stm32f100rb "stm32vl discovery"
Hi, it seems that there are currently no device files provided for the STM32F100 family. It is advised to edit xpcc/tools/DeviceFileGenerator to modify existing or add new devices. However, it is unclear to me how to do so. Can you provide me with some help to add support for the STM32F100 family? Kind regards, Jonas
Hi Jonas,
it seems that there are currently no device files provided for the STM32F100 family.
We haven’t been working with the F1 yet, so a lot of background things are missing, like a tested linker- and startup script. You’d also have to check the peripheral implementations, since the F1 is quite old and probably has slightly different register layouts compared to the F3/F4. Unless you have some experience with stuff like that, it will probably be pretty hard to add support for the F100 right now, sorry.
It is advised to edit xpcc/tools/DeviceFileGenerator to modify existing or add new devices. However, it is unclear to me how to do so.
I haven’t had the time yet to document the DFG. However, understanding the DFG is not extremely important, as the device files can (and need to) be edited manually. It’s just a rather complicated “short-circuit” for generating _all_ possible device files. BUT: the DFG can already generate device files for all all STM32F*, but they are more than we can write support for or test with our small team ;-)
Can you provide me with some help to add support for the STM32F100 family?
Here is a dump of all the newest device files that the DFG can generate: https://www.dropbox.com/s/mocxy5jbrth68ad/xml.zip You can simply unzip this folder and replace the `xpcc/src/architecture/platform/xml` folder with it. The device file that fits the STM32F100RBT6B is probably the stm32f100_101_102_103-c_r_t-4_6.xml. But without the proper linker- and startup script, there is no point in the device file, sorry to disappoint… Cheers, Niklas
Hi, just some additions... On 12/03/2014 09:10 PM, Niklas Hauser wrote:
Unless you have some experience with stuff like that, it will probably be pretty hard to add support for the F100 right now, sorry.
Yes, unfortunately it will not be super easy to add support for the stm32f1, but if you have some experience programming mircocontrollers and some time at hand it can certainly be done. It just isn't as easy as only adding a new device file.
Can you provide me with some help to add support for the STM32F100 family?
Here is a dump of all the newest device files that the DFG can generate: https://www.dropbox.com/s/mocxy5jbrth68ad/xml.zip
You can simply unzip this folder and replace the `xpcc/src/architecture/platform/xml` folder with it. The device file that fits the STM32F100RBT6B is probably the stm32f100_101_102_103-c_r_t-4_6.xml.
But without the proper linker- and startup script, there is no point in the device file, sorry to disappoint…
Actually we used to have support for the stm32f1 about two years ago. It was just removed during our cleanup, because we neither had the manpower nor the right hardware to test it. The old code is still available in our master branch. While I would not recommend using it, it can serve as a reference on how to add support for stm32f1 on the develop branch. You can e.g. find the old startup code here: https://github.com/roboterclubaachen/xpcc/blob/master/src/xpcc/architecture/... Best regards, Kevin
participants (3)
-
Jonas Rahlf
-
Kevin Laeufer
-
Niklas Hauser