I just found xpcc, and it seems very promising. In my project I use an
STM32F103RC, and if I try to build a really simple project for it, I
get this error: "Error: XPCC Error: Could not find xml device file.”.
We wanted to only add Device Files for devices that we have tested.
I think I will just add a bunch of device files, so that we can get hackers like you to not have to also deal with the hacky and undocumented device file generator (sorry).
I looked in the tools/device_file_generator directory, but I don't
really know how to use it. So my question is, what do I have to do to
be able to use this mcu?
Here are all of my up-to-date device files:
It contains the right file for the STM32F103rc (stm32f103-r_v_z-c_d_e.xml) plus a bunch more stuff.
We don’t yet generate linkerscripts automatically (*poke* *poke* @ekiwi), so you also need to add a file to src/xpcc/architecture/platform/linker/stm32 called stm32f103_c.ld with this content:
MEMORY
{
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 256k
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 48k
}
INCLUDE stm32_ram.ld