Search found 8 matches

by ChoCho
Thu Jun 08, 2023 3:42 am
Forum: General discussion
Topic: Remapping serial pins
Replies: 0
Views: 9727

Remapping serial pins

I tried to remap the serial2 pins (PA2/PA3) to PD5/PD6 by using afio_remap(AFIO_REMAP_USART2) in my sketch, but it dose not work.

Please help !
by ChoCho
Thu Jul 16, 2020 8:19 am
Forum: General discussion
Topic: ADCTouchSensorSTM library not work for STM32F103RC board
Replies: 1
Views: 3648

ADCTouchSensorSTM library not work for STM32F103RC board

Dear All,

My project use the ADCTouchSensorSTM library (https://github.com/arpruss/ADCTouchSensor) with a STM32F103C8T6 board, it works with no problem.

But when I upgrade my project to a STM32F103RCT6 board, there is error for the ADCTouchSensorSTM library during compilation ...
by ChoCho
Thu Apr 16, 2020 6:21 am
Forum: General discussion
Topic: SD library SPI pins remap
Replies: 10
Views: 19470

Re: SD library SPI pins remap

I corrected to enableDebugPorts() and compilation OK. But SD is failed.

I tried using other pins as CS (PA11 or PA12 or PB8), for example :

pinMode(PA11, OUTPUT);
afio_remap(AFIO_REMAP_SPI1);

// connections : MOSI= PB5, MISO=PB4, SCK=PB3, CS=PA11
if (!SD.begin(PA11))
{
Serial2.println("DC16 ...
by ChoCho
Sun Apr 12, 2020 9:49 am
Forum: General discussion
Topic: SD library SPI pins remap
Replies: 10
Views: 19470

Re: SD library SPI pins remap

I added enabledebugPorts() in setup, but during compilation it said : 'enabledebugPorts' was not declared in this scope.
by ChoCho
Wed Apr 08, 2020 2:18 pm
Forum: General discussion
Topic: SD library SPI pins remap
Replies: 10
Views: 19470

Re: SD library SPI pins remap

The SPI2 method works !

But the SPI1 remap method do not work.
Here are the codes I use :

#include <Wire.h>
#include <SPI.h>
#include <SD.h>

void setup()
{
Serial.begin(57600);
Serial.println("Boot ...");
delay(50) ;

// using alternate SPI1 pins
// CS=PA15, SCK=PB3, MISO=PB4, MOSI=PB5 ...
by ChoCho
Tue Apr 07, 2020 2:21 am
Forum: General discussion
Topic: SD library SPI pins remap
Replies: 10
Views: 19470

Re: SD library SPI pins remap

Thank you all, I am using the STM32F1/F4 core files (Leaflabs-based core).

I have some working codes based on the standard SD library, changing to another SD library involve to much work and not preferred.
by ChoCho
Mon Apr 06, 2020 7:03 am
Forum: General discussion
Topic: SD library SPI pins remap
Replies: 10
Views: 19470

SD library SPI pins remap

Hi everyone,

I use a Generic STM32F103C8T6 to do a project. My project use the standard arduino SD library to read/write data, but the default SPI pins (PA4-PA7) are used for other purpose.

It seems that there is another set of SPI pins (PA15,PB3-PB5) that can be used, but I can't found any ...
by ChoCho
Mon Feb 17, 2020 2:12 am
Forum: General discussion
Topic: What core am I using ?
Replies: 2
Views: 2758

What core am I using ?

Hi everyone,

I have tried and installed several STM32 cores to see which one suite my need.

But I forget what core now I am using !

How do I check out which core and what version I am using ? Thanks you.

Go to advanced search