![]() Duino doesn’t know RE-chip and doesn’t compile arguing to variants.h And I can’t compile under mapple due to some Duino specific code I don’t want get rid of. If I just change board definition then I have problem with. Working option is RB (that is wrong) and I need to switch it to RE (somehow). Platform = GitHub - platformio/platform-ststm32: ST STM32: development platform for PlatformIO So, to solve of my problem I have to introduce RE-chip to PlatfromIO and STM32Duino Arduino core. RE has DACs (PA4 and PA5) and ADC at PA6+PA7. and easily changed through programmed changes in the magnetic field using Arduino. What can be wrong? Pin mapping? How can I check the mapping? I assume that PA6 is 22 HW-pin and PA7 is 23.Īfter some days of evaluation of the problem I found out that the roots of the problem is in that actually I habe F103RE chip but still develop for F103RB chip. The chip system does not contain any microfluidic tubing device. At the same time I receive correct values from the same sketch and the same board but from PB0 and PB1. Actually I can do analogRead from them but I always receive 40 values (12bit resolution) from these two pins whatever I connect to them. ![]() I can’t do analogRead from pins PA6 and PA7. What can be wrong and/or shall I use PWM_start routine from analog.h? The behaviour is the same regardless to pinMode(PA4, OUTPUT). It seems that PA4 and PA5 are HW-supported but their behaviour more looks like digital pin. As I understand analogWrite works with Arduino analog enabled pins and/or with hardware PWM supported pins. If I set them via analogWrite to something less than 2000 items (I use 12 bit resolution) than I receive zero PWM, if I set the value to something more than 2000 then I receive 100% of load. I can’t do analogWrite to PA4 and PA5 pins. I have two problems that seems to be connected: ![]() I’m using a custom board based on STM32F103RB chip with developer version of STM32 Arduino wth core STM32Duino (it is here GitHub - platformio/platform-ststm32: ST STM32: development platform for PlatformIO).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |