The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core.

learn more… | top users | synonyms

0
votes
0answers
6 views

Dynamic IP address change using LwIP

I'm using LwIP ethernet stack to communicate my device (based on stm32f429 mc) with PC over UDP. It functions without any problem, but i need to change IP on user request after initializing LwIP. So, ...
1
vote
0answers
36 views

STM32 SRAM to DMA GPIO pins

I wish to transfer a large array of data to 8 output pins that are all on the same port. E.g. a 500 element 8bit array where each bit of each element represents the pin status. So 500 independent ...
2
votes
4answers
512 views

VBAT circuit explanation

I found this circuit in STM32F401VET6 schematic: As you can see, VBAT line has a lot of 100 nF capacitors. Is it there to mimic a battery? If yes, won't it be better to put a reverse leakage ...
0
votes
0answers
17 views

Netduino (Plus) 2 custom board not showing up in PC

I have made an netduino 2 board and the problem is, it doesn't appear in PC when connected through USB. But when it starts up with boot0 button pressed, it does show up in PC as STM in DFU Mode, ...
0
votes
0answers
39 views

STM32F030F4P6 - Application Not Starting

I have been developing code to control an LCD using STM32F030F4P6 mcu. So far everything was working fine. However I just added some new code with timer, and now when I uploaded the updated code, ...
0
votes
0answers
53 views

STM32 Shutting down debug session

I'm facing with a problem regarding debug session. When I start debug session, after the configuration of USART2 the debug session is closed. Keil message: Cannot access target. Shutting down ...
0
votes
1answer
70 views

STM32F4 HAL I2C only sends address

I am working on a project where I need to set a simple LCD. This LCD use the 'ST7032i' chip to control the LCD. I want to control the LCD over an I²C interface. As controller I use a STM32F4 ...
0
votes
1answer
79 views

Power consumption of Cortex-M7-based microcontrollers

I'm designing a USB-powered microcontroller board, and I'm considering choosing a Cortex-M7-based microcontroller for it (I want a double-precision FPU, along with other features M7 offers). Currently,...
0
votes
1answer
79 views

ADC continuous conversion STM32F103

I'm facing with a problem regarding continuous acquisition of ADC channel in STM32F103. I use the interrupt at the end of conversion to call a callback function to store the acquired value. The ...
0
votes
0answers
56 views

STM32F107 and mems LIS3DH spi data exchange problems

I'm trying to configure LIS3DH chip via SPI interface. Here is my code: ...
3
votes
1answer
37 views

What is the purpose of masking the LFSR value in STM32's noise generation?

I read on section 14.3.8 of the STM32F4 reference manual that you can mask the LFSR output value partially or totally. At first I thought that it was used to change the pseudo random pattern (...
0
votes
2answers
54 views

STM32 starts timing out receiving data UART after reading 1 byte

I am having trouble using the UART on the STM32F103 where it stops receiving data, while not setting any of the error flags. The UART device is an ESP8266 at 115,200 baud. I am sending it ...
0
votes
1answer
42 views

STM32F107 SPI -> UART maximal transfer rate

I am designing a board with STM32F107 microcontroller and AD7680 ADC. What I need is to read data from ADC, increment sequence number after reading each sample, and send ADC values via UART or USB OTG ...
0
votes
0answers
54 views

Question about data transition in UART - Using HAL Drives - STM32F4

*Anwser at the end. I am working with SMT3240G-EVAL, I am working on a project in which I want to be able to send and receive messages using UART. I am starting with embedded development so I don’t ...
-1
votes
0answers
69 views

Problem sending with UART-DMA HAL Library STM32

*****Go to the edits to see what i did. Hello I hope someone can help me with this problem I am having, I have been trying to send and receive an array of bytes of different sizes using UART and DMA....
-1
votes
0answers
51 views

STM32F103C8T6 pwm generation

I wrote this code to generate a PWM but I did not get an output. What am I doing wrong? ...
-3
votes
0answers
82 views

How can I trace on Cortex-M4 without additional hardware?

I have a STM32F3DISCOVERY (MB1035B) from ST that has a STM32F303VCT6 – uC (Cortex M4 platform). The data sheets says you can use SWD, JTAG and the Cortex-M4-Embedded Trace Macrocell (ETM-M4) to debug. ...
0
votes
1answer
65 views

stm32 audio levels

I'm using an STM32F746G for exploring embedded audio DSP. My experiments sound great in headphones but when I connect the audio output to external amplifiers, the signal level is low and there's a ...
0
votes
0answers
59 views

ARM strange behaviour clock speed

I am just starting with ARM and have made a small breakout board with an STM32F030 in TSSOP20 package. I've uploaded the following program which works when the clockspeed of the device is set to 8MHz ...
9
votes
3answers
117 views

Using the ST-LINK Utility to configure the RTC to current time

What I was doing I am using a STM32 microcontroller and for my project I need to be able to send data at specific times of the day (say, at 11am and 2pm). The microcontroller needs to know what time ...
1
vote
1answer
46 views

STM32 Backup registers stability

I'm using backup domain of stm32 for storing date and some important information. The board drives a thermal printer and some other parts that produce interference on power. It seems that sometimes it ...
3
votes
1answer
90 views

Why does usb have start of frame packets?

I'm developing some high-speed USB firmware for the STM32F746VG, and on page 1411 (under section 37.16.3, step 2), it tells me that I should enable start of frame interrupts. I know that usb hosts ...
0
votes
0answers
37 views

STM32 communicating with LCD module HY28B

I'm currently in trouble with displaying something on the HY28B LCD module . I configured my LCD module in 16bits mode by soldering the right short at the right place and I'm using an STM32 discovery ...
0
votes
0answers
75 views

UART baudrate issues on STM32F0xx board

I'm using STM32F0xx board for project. In this board there are two UART interfaces. UART1 is supporting upto 115200 baudrate and more than that, but UART2 is supporting upto only 38400 baudrate. If I ...
3
votes
2answers
68 views

Is printf debugging over JTAG (not SWD) with STM32 possible?

The question is very similar to this one: I'd like to to printf debugging via the ST-LINK adapter and JTAG, not SWD, in IAR Workbench. Is this possible?
0
votes
1answer
55 views

STM32 F4 GPIO clock rate

I am looking at the STM32 F4 series Discovery board. I have the eval board on my desk currently. I want to use this system to send data from USB to a 3 byte parallel data bus using an external clock ...
2
votes
2answers
101 views

External power to STM32F4 Discovery board

I've recently finished programming the STM32F429ZI DISC1 board. I'm fairly new to this and now want to move away from connecting it to the PC via USB and power it up via a power supply. At present I ...
-1
votes
1answer
99 views

What are situations to use an actual EEPROM over using emulated EEPROM in flash?

I am using stm32 which offers EEPROM emulation on its flash. http://www.st.com/content/ccc/resource/technical/document/application_note/2e/d4/65/6b/87/dd/40/25/DM00049914.pdf/files/DM00049914.pdf/jcr:...
0
votes
1answer
125 views

Wrong signal on MISO line

I am trying to setup communication between my MCU and slave chip but here are the results from logic analyzer: I have basic knowledge of SPI protocol but as far as I know, data should be sampled at ...
0
votes
0answers
19 views

Difference between external event mode versus external interrupt mode for stm32 [duplicate]

I am configuring GPIOs for stm32f0 MCU using CubeMX. I encountered this "GPIO mode" setting. It seems that GPIO mode can be triggered by "External event mode" or "External interrupt mode". See image ...
0
votes
1answer
42 views

ST L4 series datasheet specifications and 1 wire

When you open STM32L476 specification on the The DFSDM peripheral supports (42/232) it says that "Manchester coded 1 wire interface support". Does this means it supports 1-Wire bus like for DS18S20 or ...
1
vote
1answer
100 views

STM32 HAL SPI Remap Single Pin

I would like to know if it is possible to remap a single pin of a multi-pin (SPI) peripheral? For instance, I have a STM32F107 and I want to use UART4, SPI3 and Ethernet. PC10 = UART4_TX - Remap ...
0
votes
0answers
132 views

STM32 prototype unable to connect to PC using ST-Link/V2 SWD

Circuit Diagram Background & What I have tried. I have wired wrapped this setup myself using a fresh STM32F411RC MCU from digikey (on a proto-advantage LQFP-64 to DIP-64 breakout board). I've ...
0
votes
2answers
76 views

Will this P channel Mosfet switch work from a 3v3 GPIO

I'm designing a circuit that I can reuse over again to switch loads of different kinds from around 8-30v and from around 0.5-15amp. Like a universal Solid state relay but I want my own custom circuit ...
1
vote
1answer
123 views

Can the STM32 DMA speed be controlled by the timer?

Is it possible to have the DMA controller on an STM32 transfer each packet only when a timer update event occurs or can you only control the start of a whole chunk of DMA? The use case is (on an ...
2
votes
1answer
234 views

STM32 “USB Device” vs. “USB OTG HS” - what is the difference?

I recently downloaded the stm32 app for MCU search and found out that for example STM32F429 has "NO" in "USB Device" peripheral, while it says "YES" in "USB OTG FS" and "USB OTG HS". Which is quite ...
0
votes
1answer
48 views

Can't get STM32 DAC to output anything

I'm trying to make a generic STM32F103 board output a sawtooth wave on DAC channel 1 but I'm getting nothing. The code is very straightforward and I've endlessly studied the datasheet, Google, various ...
3
votes
3answers
381 views

STM32 non floating point unit chips

I would like to know how STM32F2 chips and below that doesn't handle floating point unit, perform float operation. I read here, it mentions that the floating point is handled by library functions, ...
1
vote
1answer
61 views

STM32F103 PLL Ready Flag Never Set

I am trying to set PLL as my system clock source upon startup of my microcontroller, STM32f103 I have commented all the defines in my system_stm32f10x.c ...
0
votes
2answers
100 views

Can this stm32f0 interrupt routine that activates on every byte received be fast enough for 6Mbps?

I am using the STM32F0 discovery board. I am looking at this tutorial on UART with the STM32F0. http://letanphuc.net/2015/09/stm32f0-uart-tutorial-5/ ...
0
votes
1answer
79 views

PAL data with ADC?

Is it possible to receive PAL video data from ADC of STM32 for example ? I made a program which convert analog data to digital data (tested with analog accelerometer). It is the same for PAL video ...
0
votes
0answers
92 views

STM32 Encoder mode + Input Capture on the same timer

I want to use CH1 and CH2 in encoder mode and also CH3 in input capture mode, all this using one timer (TIM3). Is it possible? I didn't found any warnings in datasheet. I looked at the block diagrams ...
0
votes
0answers
23 views

Appropriate conditions to use the various boot modes in stm32f0 [duplicate]

I am reading the datasheet of STM32F0. 3 boot modes were mentioned; boot from User Flash memory boot from System Memory boot from embedded SRAM I am confused when should one use which mode. Under ...
0
votes
1answer
88 views

Which boot mode does the STM32F0 discovery kit use?

I am using the STM32F0 discovery kit which looks like this; In the MCU datasheet, it mentioned about 3 boot modes; boot from User Flash memory boot from System Memory boot from embedded SRAM ...
1
vote
2answers
360 views

When would be occasions to use a lower clock given that high speed would always be preferable?

I am using STM32F0 MCU and STM32 CubeMX configurator. I encountered the clock configuration below When would be occasions to use a lower clock speed? Wouldn't faster always be preferable?
-2
votes
2answers
138 views

STM32L4 USART problem

I tried to develop an USART example on stm32L476 discovery kit, but I've got some problems with the HAL driver-s, I think I'm using wrong USART interface Clock enable, and USART GPIO Clock enable ...
4
votes
2answers
106 views

Is this a fake STM32F105? There is no parts listed with that many pins

I am working with a device that has a 100 pin qfp it is labeled: ARM Z STM32F105R8T6 But this part only seems to be available in a 64 pin package. The R in the number dictates that it is a 64 pin ...
0
votes
1answer
169 views

STM32F4 Flash memory programming

So I have STM32F4 board and long story short - I am stuck at putting a user defined number (0 - 60) in FLASH memory, so after restarting, I could use last-used-settings. How do I allocate correct ...
5
votes
1answer
515 views

STM32F4 : Floating point instructions too slow

I'm working on an audio application on the Nucleo F411RE and I've noticed that my processing was too slow, making the application skip some samples. Looking at my disassembly I figured given the ...