Search found 94 matches

by fredbox
Thu Aug 17, 2017 3:06 pm
Forum: Off topic
Topic: Aliexpress delivery times
Replies: 12
Views: 284

Re: Aliexpress delivery times

Prior to joining this forum, I had never ordered anything from AliExpress. Since June of last year, I have ordered from about 70 different sellers. Every item has been delivered. Only a couple were after the promised delivery date. In one case, the seller issued a small refund that I didn't request....
by fredbox
Wed Aug 02, 2017 5:24 pm
Forum: STM32F103 Boards
Topic: Black STM32F103 board from aliexpress with different pcb layout
Replies: 13
Views: 388

Re: Black STM32F103 board from aliexpress with different pcb layout

If the bootloader is running, you should see the led blinking. Did you remember to move the jumper on Boot0 back to 0? Boot0 and Boot1 should both be 0 to use the bootloader.
by fredbox
Wed Aug 02, 2017 4:12 pm
Forum: STM32F103 Boards
Topic: Black STM32F103 board from aliexpress with different pcb layout
Replies: 13
Views: 388

Re: Black STM32F103 board from aliexpress with different pcb layout

You may need a different USB serial adapter. My CH340 board was getting similar errors, but the CP2102 I have found and flashed it the first time. Make sure Boot0=1 and Boot1=0 before you try to upload the bootloader. There was/is an issue with some serial drivers not supporting parity. The Black Pi...
by fredbox
Sat Jul 22, 2017 5:01 pm
Forum: Builds and Announcements
Topic: Combined bootloader and sketch
Replies: 7
Views: 287

Re: Combined bootloader and sketch

Change line 18 to

Code: Select all

printf("\nUsage. %s bootloader.bin sketch.bin output.bin - Incorrect number of args\n\n", argv[0]);

$ ./main

Usage. ./main bootloader.bin sketch.bin output.bin - Incorrect number of args
That will allow usage to use the name of the executable program.
by fredbox
Sat Jul 22, 2017 2:45 pm
Forum: Builds and Announcements
Topic: Combined bootloader and sketch
Replies: 7
Views: 287

Re: Combined bootloader and sketch

The code compiles with no changes on Linux. For Windows, you can use tcc if Visual Studio is not installed. I use that quite a lot for Windows exe files. Linux: $ make main cc main.c -o main $ ls -la main* -rwxr-xr-x 1 fred fred 8930 Jul 22 09:12 main -rw-r--r-- 1 fred fred 2136 Jul 22 09:11 main.c ...
by fredbox
Wed Jul 12, 2017 12:38 am
Forum: STM Nucleo boards
Topic: Is OUTPUT_OPEN_DRAIN supported
Replies: 15
Views: 289

Re: Is OUTPUT_OPEN_DRAIN supported

const uint8_t led_pin = 33; uint8_t led = 0; void setup() { pinMode(led_pin, OUTPUT_OPEN_DRAIN); } void loop() { digitalWrite(led_pin, led); led = 1 - led; delay(500); } Sketch uses 12292 bytes (11%) of program storage space. Maximum is 110592 bytes. Global variables use 2560 bytes of dynamic memor...
by fredbox
Mon Jul 10, 2017 7:48 pm
Forum: STM32F103 Boards
Topic: [SOLVED] USB UNSPECIFIED
Replies: 2
Views: 162

Re: USB UNSPECIFIED

Did you install the bootloader? Your board won't be recognized until you program the bootloader into the board.
http://wiki.stm32duino.com/index.php?ti ... bootloader
by fredbox
Tue Jul 04, 2017 10:44 pm
Forum: Projects
Topic: RTC CLOCK on BLUE PILL with Four 7 segments
Replies: 16
Views: 837

Re: RTC CLOCK on BLUE PILL with Four 7 segments

The easy way to get a small 4 digit 7-segment clock display is to use one of the TM1637 modules from Ali or eBay. Two data lines, power and ground, a small amount of code and you are good. These displays are simple enough that you can bit-bang without a library - see this example . If you need 8 dig...
by fredbox
Mon Jun 26, 2017 2:05 am
Forum: General discussion
Topic: does stm32f1 gets too hot in a project box? and temperature sensor
Replies: 6
Views: 206

Re: does stm32f1 gets too hot in a project box? and temperature sensor

I bought my 3D printer last September and one of the first things I printed was an enclosure to hold a blue pill and a DB9 RS232 adapter board. The project has been powered on ever since I put it together. It doesn't feel the slightest bit warm. Power is from a 5V USB power cube like those used for ...