Blackpill one pin can't be set #15629
Replies: 6 comments 31 replies
-
Which firmware are you running? Maybe, a link to your I have only used: |
Beta Was this translation helpful? Give feedback.
-
I have built firmware using his instructions, when we were trying to sort out some USB issues. Where did you get your boards from, be aware that there are clones? Is there a chip on the back of the board? You can do a build for the smallest flash and use that on any board ... of course NOT getting access to the added flash. I had to do that on boards with faulty added flash. He has been very helpful in the past sorting out issues. |
Beta Was this translation helpful? Give feedback.
-
@davefes @scruss thanks for your replies. This is what I get with a ctrl-D:
I never got as far as actually attempting to flash the board as the build always failed before that. Of course I can't find the instructions I followed now, but it was the last step that failed due to missing libraries. I checked the folders where the libraries were supposed to be, and they were there, so I don't know why it couldn't find them. Anyway if there's a prebuilt version I'm more than happy to use that. I'm not techie enough to be able to sort out compile and build problems. I can follow instructions, but that's about the limit of my expertise. :( Yes I suspect my boards are probably clones. I bought them a while back and they've been languishing in my box of bits. I don't know how mp was installed on one of them, I don't recall doing it. Maybe it came preflashed? The chip has "stm32f411ceu6g?23211v? chn gq 224" written on it. The question marks are characters I couldn't decipher, even with a magnifying glass. There is no chip soldered to the underneath. I have an ST-Link programmer but I have never used it. I had a couple of chips with stm chips on them but no usb plug, but never got around to actually trying to program the boards. I guess I'll be doing to reading on how to work it! I have found that, if I hit the reset button on the board, I can open it with Dolphin and see all my python files, and I can add and delete files too. Thanks again for your help, much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Yeah, or rebuilding in my case. I have a couple of ancient and venerable radio control transmitters circa late 70's early 80's that I converted to 2.4GHZ with FrSky Tx modules and home brewed encoders. One using an Arduino Nano and the other using a Teensy LC. Tried them recently and neither of them worked, not sure why. The Teensy LC isn't suported any more, and the Nano was getting a bit long in the tooth, so I thought I'd replace them with something that could run micropython. I had a couple of Blackpills lying around in my parts box, so they were pressed into service. Just about got the coding done, but the hard bit is all the soldering. I also have a couple of more complex Tx's which I'm probably going to put ESP32's into, and maybe 900MHz modules, but that's a long term project... |
Beta Was this translation helpful? Give feedback.
-
On a related note I've pushed up a new MR for a board profile for this board: #15646 The schematic for the Black Pill v2.0 can be found here: https://stm32-base.org/assets/pdf/boards/original-schematic-STM32F411CEU6_WeAct_Black_Pill_V2.0.pdf Of note, and indeed on any STM32F411, Pins A11 and A12 are the USB interface pins! |
Beta Was this translation helpful? Give feedback.
-
@andrewleech you are correct, A12 does exactly the same thing. When I was first trying to track down this problem I only got as far as |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem with one pin, A11, on my Blackpill. When I run the command:
x = Pin('A11', Pin.IN, Pin.PULL_UP)
Thonny crashes with this error:
PROBLEM IN THONNY'S BACK-END: Exception while handling 'execute_source' (ConnectionError: device reports readiness to read but returned no data (device disconnected or multiple access on port?)).
To get the board working again I have to press the reset button on the board, then reconnect with Thonny.
If I run
x = Pin('A11')
it works fine, and then displaying x returnsPin(Pin.cpu.A11, mode=Pin.ALT, alt=10)
I can even define the pin with Pin.ALT and alt=10, but nothing else works.
This is the only pin that has this problem, all the others seem to work fine (so far...) including A10 and A12.
Is it just a faulty pin that I can never use, or is there a way to correct this? I'm suspecting the former...
All advice gratefully received.
Beta Was this translation helpful? Give feedback.
All reactions