All Questions

Tagged with
Filter by
Sorted by
Tagged with
4
votes
3answers
237 views

What is actually sent/loaded to a microcontroller / STM32?

I see in all tutorials or sources, everybody creates a project in some IDEs and then loads code to the MCU again via those IDEs. What is sent to the MCU? Is it a sequence of binary numbers or some ...
1
vote
2answers
101 views

Writing commands to a microcontroller with a STM32f chip from python

Manual to the micro controller: https://drive.google.com/file/d/0B8PmY6nhQadKSVc5OE04c3ZJaFU/view?usp=sharing , where page 18-19 introduces the serial communication protocol. The micro controller on ...
26
votes
8answers
4k views

Why do we need a bootloader separate from our application program in microcontrollers?

Why do we need a separate program in the same flash program memory of a microcontroller, specifically STM32F103, which is called a bootloader? What is special about it to keep it separate from the ...
-1
votes
1answer
42 views

STM32F7_Discovery_Boards Digital Pin

Do any of the pins on CN9 or CN13 on the STM32F7 Discovery Board have a constant 3.3 or 5V output?
0
votes
2answers
60 views

Problem with the reset circuit for a MCU

I need help by understanding the problem with an existing MCU circuit concerning the Reset PIN (STM32 Cortex M0+: STM32L071K8): It seems something in the circuit is wrong, since it works only when I ...
20
votes
10answers
7k views

STM Microcontroller burns every time

I have some experience working with stm32 but I only ever used them on dev boards. I recently tried to solder stm32 and stm8 on a simple break-out board and program them with my st-linkv2 clone. On ...
1
vote
1answer
53 views

Configuring STM32 timer as frequency counter

I am trying to configuring one of the timer inputs on a STM32 to behave as a frequency counter for an external signal. The STM32 datasheet describes a "input capture mode" in section 17.3.6 (page 342) ...
2
votes
3answers
157 views

Bare minimum FreeRTOS

My only requirement is time triggered cooperative scheduler. I heard they are more reliable and predictable. If I want to use only the 'cooperative scheduler' of FreeRTOS for STM32F103 then is it ...
1
vote
1answer
25 views

RCC clock freq in STM32F103

If I select internal clock source to run my TIM3 in TM32F103 (TIMxCLK from RCC) as shown in the attached picture: CK_INT Then how to find out what is the freq of this clock? I am using External ...
11
votes
1answer
366 views

Understanding STM32 datasheet regarding decoupling capacitors

I'm trying to understand what ST recommends for decoupling caps for STM32F030CC. The diagram in the datasheet shows "2x100 nF" caps on the Vdd/Vss pairs. Does this mean 2 parallel 100nF caps per Vdd/...
0
votes
0answers
48 views

STM32F103 USB-CDC does not work

I am trying to communicate my Maple Mini clone board with PC without using a USART hardware. I've configured MCU with STM32Cube IDE which has STM32CubeMX in it. I've enabled USB hardware, set it to FS,...
0
votes
1answer
50 views

stm32 drawing current from 40 outputs at the same time

I have an hardware question about stm32 family. I am designing a circuit with STM32F103VB. datasheet mentions that i can draw up to 25 mA current per pin(page 37 table 7). I need to drive 40 npn ...
1
vote
0answers
50 views

How to properly implement I2C communication between two or more STM32s?

I have a master board with STM32F030R8 and two daughter boards with STM32F030C6. The objective is to communicate parameters between the boards periodically and also on-demand. With some effort I ...
0
votes
1answer
73 views

Storing values in the internal flash memory

I want to reserve a space in the internal flash memory of my microcontroller (STM32L4) to store the latest 100 measured values by a sensor (in a circular FIFO Fashion) and be able to load them again ...
9
votes
2answers
452 views

Why are logically related bit fields in MCU registers often in separate locations?

Forgive me if this question has already been answered, but I was unable to find an answer either on this page or in the wider Internet. I'm an experienced developer with decent knowledge regarding ...
2
votes
0answers
51 views

Address Sent bit is not set on STM32F4 Disco

I am trying to interface my STM32F4 Discovery board with a sensor that works over i2c, since the sensor required a specialized i2c protocol, I decided to implement my functions using registers. But ...
1
vote
2answers
130 views

STM32F7 device freeze: cannot access registers

I am encountering random freezes with the STM32F7. This issue is difficult to debug as any debug session launched in Eclipse crashes when trying to halt the core, which makes it impossible to see ...
0
votes
3answers
162 views

stm32 - is there a factory reset?

for the past couple of months I have been developing software for a custom build board. Due to a non disclosure agreement i am not allowed to share the schematics , PCB layout or software of the board....
0
votes
1answer
81 views

One led is blinking too frequently using the hardware timer (stm32f103vdh6)

i recently started my internship using embedded C and i'm having some trouble with one of the tasks: Two leds should be blinking at 1Hz, one using the hardware timer, and the other one using the RTX ...
0
votes
2answers
97 views

How to design an STM32 board with UART over a USB connection?

Sorry if this seems a stupid question but I'm designing a custom PCB based on the STM32F303RE microcontroller and am slightly confused as to how the UART should be connected in the hardware in order ...
0
votes
1answer
88 views

Problem getting board to board I2C communication to work on STM32

I have two boards working on STM32F030R8 and F030C6 respectively. I have been trying to get the boards communicate with each other using I2C but so far, no good. One of my boards run at 48MHz and the ...
-2
votes
2answers
113 views

LCD display is garbled in between operations on STM32

I'm using a 16x2 LCD for a project on STM32F030R8. I wrote a library for interfacing and everything was working fine until recently. It displays garbled junk values in between operations, especially ...
1
vote
0answers
62 views

STM32F042 ADC Interrupt with STMCUBEMX

I need to read 15 channels ADC. However my MCU is specific named STM32F042K6T6. I decided to use an analog MUX to read every channel from just one pin. But, I didn't read accurately the datas by ...
1
vote
1answer
54 views

Using the GPIOs of an STM32 Discovery board

I would like to start learning how to program an STM32, because of this I bought the STM32L152C Discovery board. It's a very nice board, full of goodies, but I would like to use just part of them: ...
0
votes
0answers
83 views

CAN bus bit timing STM32F7 (bxCAN)

I am struggling with a bit timing of CAN bus. Perhaps, someone will be able to explain me, how it actually works. There are two configurations of the CAN controller inside STM32 (bxCAN). The desired ...
1
vote
3answers
83 views

SPI and I2C connections by using mosfet (high side, low side)

I need to design sensors card in altium for sensors connected I2C and SPI. When I searched modules on internet, while some used mosfet to handle high and low side others did not use mosfets. I could ...
0
votes
1answer
36 views

DMA Init code for ADC sampled data

I am trying to figure out how this DMA Initialization code is used to sample following 4 ADC channels and save data in 'adc_data'. ...
0
votes
0answers
36 views

Change SWD pin Back to SWD mode at run time in STM32F030F4

Im using PA_14 (SWCLK) as Output mode in stm32f030f4 microcontroller. I change state of this pin to output mode for a buzzer that is not in service at all time. At the end of the buzzer function I ...
1
vote
1answer
68 views

Finding ADC pins from Init code

I am trying to figure out the GPIO Pins that are used for ADC input looking at the following ADC Initialization code for STM32L476RG. ...
0
votes
1answer
82 views

how to enable FPU in cubemx

For STM32F407 Discovery board how do I enable its FPU from CubeMX? The following instruction is used in handwritten code. How can I get it generated from CubeMX? // Enable FPU SCB->CPACR |= ...
0
votes
1answer
118 views

STM32F746 - DISCO I2C HAL_TIMEOUT

I am attempting to implement I2C interface on the STM32F7-Discovery Board using the a VEML 6070 UV light sensor (https://www.vishay.com/docs/84277/veml6070.pdf). The 7-bit slave address for the ...
0
votes
0answers
38 views

Can I use the st-link/programmer on nucleo l432kc to program external baords?

Can I use the st-link/programmer on nucleo l432kc to program external boards? I know that I need the SWCLK and SWDIO pins and they don't seem to be connected to external headers but I saw some people ...
0
votes
1answer
72 views

Using a MOSFET to turn on/off LEDs which could get reverse voltages

I formerly asked about a LED circuit a long time ago. The circuit I want to make is 'reverse-voltage notifier'. If the input is reversed, then a LED(below, D2) will lit. Of course, if the input is ...
0
votes
2answers
69 views

LCD Display behaving weird with STM32 [closed]

16x2 LCD operating in 4-bit mode. At first, I tried initializing the LCD in 4-bit mode using software. Did not work. After repeated tries however, LCD started working. But for some reason I had to ...
2
votes
3answers
170 views

Current limit control using microcontroller

What I want is to open the MOSFET once the current passing through it exceeds 3A. A fuse is already being used, but more protection is needed. There are some options to do it. I could measure the ...
1
vote
2answers
140 views

Firmware only runs when I press the reset button

I've created a board using the STM32F405R6T6. I am experiencing some problems: after I program the firmware onto the microcontroller, withdraw the power and reinsert, the firmware only starts to run ...
0
votes
0answers
103 views

Crystal Oscillator (STM32F4)

I am currently working with a STM32F427 MCU and have a few questions in my mind. Is my schematic for the HSE correct? Can you tell me, why some schematics on the Internet use a Resistor in series ...
0
votes
1answer
102 views

Debugging on STM32F103

I have been on this for about two days now and I'm so frustrated already I don't know what I'm not getting right. I want to be able to use the stm link utility with my stm32f103c8t6 so that I can use ...
0
votes
0answers
118 views

Having trouble reading from registers with STM32F4 HAL_I2C libraries

I'm new to STM32 programming and am programming on a STM32F429 Microcontroller. My main goal is to integrate a Sparkfun UV sensor VEML6075 into the microcontroller as an external payload. TLDR: Tried ...