Search found 727 matches

by stevestrong
Mon Mar 27, 2017 8:35 am
Forum: Libraries & Hardware
Topic: Bluepill and PB1
Replies: 5
Views: 79

Re: Bluepill and PB1

You didn't say first for which board was the extract.

But now it is clear, and I think you are right, it should be added for generic C8.
Prepare a PR and post it.
by stevestrong
Mon Mar 27, 2017 8:29 am
Forum: IDE's
Topic: STM32F103C won't retain program, is it loading into RAM
Replies: 9
Views: 59

Re: STM32F103C won't retain program, is it loading into RAM

The serial map depends on the upload method as following: [*] bootloader & st-link: Serial = USBSerial Serial1 = USART1 Serial2 = USART2 Serial3 = USART3 [*] serial: Serial = USART1 Serial1 = USART2 Serial2 = USART3 See http://www.stm32duino.com/viewtopic.php?f=28&t=1915&p=25462#p25373.
by stevestrong
Mon Mar 27, 2017 8:25 am
Forum: Libraries & Hardware
Topic: Bluepill and PB1
Replies: 5
Views: 79

Re: Bluepill and PB1

One of the reasons is that on the maple mini clone board PB1 is the LED pin, and it is not available on the board pins.
by stevestrong
Fri Mar 24, 2017 6:36 pm
Forum: Projects
Topic: STM32F103 minimal synth
Replies: 14
Views: 177

Re: STM32F103 minimal synth

Isn't actually Tone lib better suited?
by stevestrong
Fri Mar 24, 2017 10:30 am
Forum: Generic STM32F103
Topic: RF24 Library on hardware SPI2
Replies: 8
Views: 102

Re: RF24 Library on hardware SPI2

To use SPI2, you should declare in RF24_STM.cpp:

Code: Select all

SPIClass SPI_2(2);

and replace all SPI instances by SPI_2.
by stevestrong
Tue Mar 21, 2017 1:49 pm
Forum: General discussion
Topic: SPI Pin mapping????
Replies: 4
Views: 55

Re: SPI Pin mapping????

Add

Code: Select all

#include "libmaple/gpio.h"
...
afio_remap(AFIO_REMAP_SPI1);

in setup before generating anything on other GPIO.
by stevestrong
Tue Mar 21, 2017 1:30 pm
Forum: General discussion
Topic: SPI Pin mapping????
Replies: 4
Views: 55

Re: SPI Pin mapping????

Nutsy wrote:SPI1 can be on 2 sets of pins 4 5 6 7 or 17 18 19 20...
Is this true?

Yes, see chapter 9.3.10 of RM0008.
by stevestrong
Tue Mar 21, 2017 8:26 am
Forum: Generic STM32F103
Topic: HELP - STM32F103 board as simple interface ?
Replies: 2
Views: 143

Re: HELP - STM32F103 board as simple interface ?

You need:
< input: voltage divider (with resistors) to convert 0-5V to 0-3.3V, fed to any of the analog input pins
> output: an external chip (digital potentiometer), like this one: https://www.sparkfun.com/products/10613
by stevestrong
Sun Mar 19, 2017 10:09 am
Forum: General discussion
Topic: trying to understand how the compiler works...
Replies: 3
Views: 71

[SOLVED] trying to understand how the compiler works...

OK, I think that the compiler generates the following code from #define write8(i++): digitalWrite(PB0, (i&BIT0)?HIGH:LOW); i++; digitalWrite(PB1, (i&BIT1)?HIGH:LOW); i++; digitalWrite(PB2, (i&BIT2)?HIGH:LOW); i++; digitalWrite(PB3, (i&BIT3)?HIGH:LOW); i++; digitalWrite(PB4, (i&BI...
by stevestrong
Sun Mar 19, 2017 9:55 am
Forum: General discussion
Topic: trying to understand how the compiler works...
Replies: 3
Views: 71

trying to understand how the compiler works...

I am still fighting to understand what is determining the compiler to mess up my code, or to generate a code which I don't expect... Just toggling some GPIOs on maple mini clone: #include <libmaple/gpio.h> // set pins to output the 8 bit value #if 1 #define write8(c) {digitalWrite(PB0, (c&BIT0)?...

Go to advanced search