Search found 724 matches

by stevestrong
Fri Mar 24, 2017 6:36 pm
Forum: Projects
Topic: STM32F103 minimal synth
Replies: 12
Views: 128

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: 3
Views: 51

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: 54

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: 54

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: 131

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: 70

[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: 70

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)?...
by stevestrong
Sun Mar 19, 2017 9:35 am
Forum: General discussion
Topic: Update program with SD card
Replies: 2
Views: 55

Re: Update program with SD card

Check the bootloader upload sketch, it should be possible to load the data to be written from SD card instead of flash.
by stevestrong
Tue Mar 14, 2017 1:38 pm
Forum: IDE's
Topic: Notepad++ Confuguration
Replies: 6
Views: 345

Re: Notepad++ Confuguration

by stevestrong
Tue Mar 14, 2017 1:34 pm
Forum: Generic STM32F103
Topic: Generic STM32F103R board not showing up in device manager and serial ports
Replies: 17
Views: 338

Re: Generic STM32F103R board not showing up in device manager and serial ports

According to the datasheet, BOOT0 is solely as input available on pin 60 of the LQFP64 package. Please check if you can access it.
BOOT1 is connected to PB2.
Now you know how and which pins you should control to flash the bootloader and upload further software.

Go to advanced search