Search found 1006 matches

by stevestrong
Thu May 25, 2017 6:36 am
Forum: Generic STM32F103
Topic: Blue pill and SD card
Replies: 10
Views: 118

Re: Blue pill and SD card

Have you checked the 3.3V supply? On the blue pill the 5V->3.3V voltage regulator is not very strong.
It seems that the read data is mostly 0x00, so there still must be something wrong there.
by stevestrong
Wed May 24, 2017 11:19 pm
Forum: Generic STM32F103
Topic: Blue pill and SD card
Replies: 10
Views: 118

Re: Blue pill and SD card

skematic wrote:I want to try lowering SPI speed, where can I do this?

In the main loop, you have:

Code: Select all

  if (!sd.cardBegin(SD_CHIP_SELECT, SPI_HALF_SPEED)) {

Replace "SPI_HALF_SPEED" by "SPI_CLOCK_DIV8" (or 16 instead of 8)
by stevestrong
Wed May 24, 2017 1:26 pm
Forum: General discussion
Topic: Software I2C usage
Replies: 1
Views: 30

Re: Software I2C usage

Please stop multiple posting same issue.
by stevestrong
Wed May 24, 2017 1:16 pm
Forum: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 13
Views: 297

Re: I2C on the STM32F103C8T6

Be careful, PB4 can be alternatively reserved by SWD interface when you upload over serial (PA9/10) or STLink or any debug probe. Only by uploading over STM32duino bootloader, PB4 can be used as GPIO, and thus for I2C, too. Otherwise you have to manually edit boards.txt and remove "-DCONFIG_MAP...
by stevestrong
Wed May 24, 2017 1:12 pm
Forum: Generic STM32F103
Topic: Blue pill and SD card
Replies: 10
Views: 118

Re: Blue pill and SD card

As @ag123 said, lower the SPI speed when using the level translator.
by stevestrong
Wed May 24, 2017 8:54 am
Forum: General discussion
Topic: Interfacing MPX4250AP
Replies: 7
Views: 93

Re: Interfacing MPX4250AP

Seems so, but 10x those values would be also good, to reduce the current.
by stevestrong
Tue May 23, 2017 8:46 pm
Forum: General discussion
Topic: wrong serial boud rate
Replies: 6
Views: 76

Re: wrong serial boud rate

Have you tried the blinky example? Does it blink with correct timing?
by stevestrong
Tue May 23, 2017 5:01 pm
Forum: IDE's
Topic: assembly output
Replies: 3
Views: 54

Re: assembly output

What kind of errors do you get?
It may be that you have to remove some other compiler directive in order to get this work.
by stevestrong
Tue May 23, 2017 2:21 pm
Forum: General discussion
Topic: Interfacing MPX4250AP
Replies: 7
Views: 93

Re: Interfacing MPX4250AP

The STM32F1 device internal reference voltage for the ADC can be set either to 1V or 3.3V.
So if you set it to 3.3V, all analog input levels above 3.3V will result in 4095.
That's why you have to use voltage divider if you want to use the complete range of 0..5V transposed to 0..4095.
by stevestrong
Tue May 23, 2017 2:19 pm
Forum: IDE's
Topic: assembly output
Replies: 3
Views: 54

Re: assembly output

Use the -S option to gcc (or g++).

You need to edit the platform.txt file and add the "-S" directive to C and/or CPP flags.

Go to advanced search