Hello, I need to use zephyr for the microcontroller stm32f101c8t6tr but it seems that it’s not fully supported by zephyr since I didn’t find its dtsi file.
Alternatively, I created my stm32f101X8.dtsi file taking as a reference other stm32 files in the project, but I would like to know if it’s correct, or if you could share a better example it would be greatly appreciated. Also additional considerations for adapting zephyr to work with this mcu.
/////////////// start of stm32f101X8.dtsi file ///////////////
#include <mem.h>
#include <st/f1/stm32f1.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(10)>;
};
soc {
compatible = "st,stm32f101", "st,stm32f1", "simple-bus";
/delete-node/ timers1;
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(64)>;
erase-block-size = <DT_SIZE_K(1)>;
};
};
spi2: spi@40003800 {
compatible = "st,stm32-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40003800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00004000>;
interrupts = <36 5>;
status = "disabled";
};
adc1: adc@40012400 {
compatible = "st,stm32f1-adc", "st,stm32-adc";
reg = <0x40012400 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000200>;
interrupts = <18 0>; // Interrupción del ADC, verifica el número correcto
status = "okay";
#io-channel-cells = <1>;
resolutions = <12>;
sampling-times = <2 8 14 29 42 56 72 240>;
st,adc-sequencer = <FULLY_CONFIGURABLE>;
};
};
};
/////////////// end of stm32f101X8.dtsi file ///////////////