176 questions
0
votes
0
answers
64
views
Question about PMA Layout and BTABLE Size on STM32F103
I have two possible interpretations of how the USB BTABLE and PMA layout work on the STM32F103.
I will provide two diagrams (Figure A and Figure B) to illustrate the scenario.
STM32F1 USB PMA
Scenario:...
1
vote
0
answers
74
views
I can't figure out why my stm32 spi peripheral is not working
So i am learning the stm32f103c8t6 board, and after having used the hal, i am trying to create my own peripheral driver, but i can't seem to get the spi working, I am trying to communicate with an spi ...
0
votes
1
answer
126
views
Error Could not verify ST device when Debugging code for my Blue Pill board
Created a new STM32 project and made settings below:
HSE: Crystal/Ceramic Resonator
SYS: Debug: Serial Wire
Clock: 72 MHz
Here's the debugger settings on STM32CubeIDE (version 1.19.1) with a simple ...
0
votes
0
answers
40
views
Independent WatchDog Reset Source Not Detected in RCC->CSR Register stm32f103c8t6
I got Problem with Reset Sources in stm32f103c8t6. when an independent watchdog reset occurs, IWD Reset Flag in RCC->CSR (Bit29) is not set!
it works fine with SW and External and Power On Reset ...
2
votes
1
answer
70
views
stm32f103c8t6 timer 1 pwm outputs not working
I'm working on a project that needs 3 pwm outputs. I'm already tried with timer 2,3,4, and they work fine with my library. But I wanted to port my pwm library to timer 1 and now I see that A8, A9, A10 ...
4
votes
0
answers
146
views
stm32 master and slave spi+dma communication
I config stm32 by using cubemx, and try to achieve the funciton to communication between master and slave.
Here is the configuration of cubemx
master
and I directly use HAL_SPI_TransmitReceive_DMA(&...
1
vote
1
answer
90
views
STM32F103C8T6 (Blue Pill) Can't Get the Register Value In First Read From NRF24L01+ via SPI
I have a STM32F103C8T6 Blue Pill board and NRF24L01+ RF module with 5V to 3.3V NRF24 adapter. I wore a code for reading and writing NRF24 register via SPI serial communication. In order to read any ...
0
votes
1
answer
78
views
STM32F103C8T6 i2c never generates start condition
I wanted to create a simple library for i2c, but I stucked in start generation. my code is this:
void i2c_init()
{
gpio_init(GPIOB, 6, GPIO_AFOUT_OPENDRAIN); // Initialize PortB-Pin6 for OpenDrain ...
1
vote
0
answers
92
views
__WFI() does not work as it should in STMCube
I'm programming in C on STM32f103rbT6. I'm using STM32CubeIDE.
For some strange reason, the __WFI function, instead of waiting for an interrupt to occur, automatically calls itself and doesn't wait ...
2
votes
0
answers
151
views
STM32CubeMx doesn't generate whole code for USB
Win10, STM32CubeMx ver. 6.5.0, STM32CubeIDE ver. 1.18.0, MCU - STM32F103C6
I'm creating a new project using either STM32CubeMX or STM32CubeIDE. In the Pinout & Configuration window, I configure ...
0
votes
0
answers
131
views
How to read sector data from 1K mifare card using RC522 and STM32F103C8T6 and display as HID using USB
We purchased a RFID writer and a few readers from a firm. We write a code on the RFID cards using the writer. To write it uses a serial port terminal program called Termite. Encoded data looks ...
0
votes
1
answer
51
views
why PLL not change in STM32f103c8
I have written the following code snippet to set the system clock to 32MHz.
#include "stm32f10x.h"
void SystemClock_Config(void);
int main(void)
{
SystemClock_Config();
while(1){}
...
0
votes
0
answers
74
views
Serial communication problem on stm32f103c8 (Proteus)
i'm learning stm32f103 programming and i tried using the USART1. this is my code but when i test it on proteus it doesn't show anything. i've checked and it seems to not shift the data at all. i use ...
0
votes
1
answer
332
views
HID REPORT is not aligned with the bytes
I'm currently creating a HID device with a STM32 to work with windows, and I struggle a lot with the Report.
I always have an "this device cannot start - error 10, the report is not aligned with ...
0
votes
0
answers
76
views
STM32 freeze at osKernelStart() after jump from bootloader
my stm32f103 freeze after osKernelStart() after jump from bootloader but if I flash at that address it run normally.
I try with blinking LED simple one but it still freeze too.
while (1)
{
...