Search found 722 matches

by stevestrong
Tue Mar 21, 2017 1:49 pm
Forum: General discussion
Topic: SPI Pin mapping????
Replies: 4
Views: 51

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

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

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

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

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

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

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

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.
by stevestrong
Mon Mar 13, 2017 2:55 pm
Forum: Generic STM32F103
Topic: Generic STM32F103R board not showing up in device manager and serial ports
Replies: 17
Views: 319

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

Yes, we need the schematics of the board to see how the red USB connector is wired on the board with the STM32 chip.

Btw, you should flash the bootloader when BOOT0 is set to "1", not BOOT1!
BOOT1 should be always tied to GND.
by stevestrong
Mon Mar 13, 2017 1:01 pm
Forum: Generic STM32F103
Topic: Generic STM32F103R board not showing up in device manager and serial ports
Replies: 17
Views: 319

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

RogerClark wrote:This is the second concurrent thread where people are having an issue with this.
see
http://stm32duino.com/viewtopic.php?f=28&t=1877

Yes, and the wiki does contain this info but quite hidden.
This issue should be mentioned within the installation procedure.

Go to advanced search