I'm making a project with a Bluepill (the cheap one that mounts a STM32103C8T6) where I was using the LibMaple adaptation for Arduino IDE. I had to know when does the micro reset by the iwatchdog. I wasn't able to know that because I think LibMaple doesn't have enable low level of programming.
Because of that, I decided to switch to the STM32duino adaptation (this one, I don't know its oficcial name: https://github.com/stm32duino/wiki/wiki), and now I can know when the reset by iwatchdog happens (thanks to de IWATCHDOG library).
The problem is that now the ADC on PA6 (used as an analog input) doesn't work correctly. The ADC's raw values just goes from 0 to ~815, instead of 0 from 4095 of the 12 bits. In addition, I'm using an humidity prove (DHT22 I think) and now it doesn't give me any value (may this is due to the library). I have tried disabling debug ports as I do with LibMaple, but I couldn't. I also tried remapping the SPI1, because MISO1 seems to be defined on PA6, but it didn't work (may I didn't do it right because I edited the wrong file). Using LibMaple, the project works correctly, so I suppose that it is a software problem that I can't handle.
I also want to know if I can solve the iwatchdog issue with the LibMaple. That would be awesome, because I'm really familiarized with LibMaple, and most of my projects doesn't need to go to low level programming.
Thankssss
