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
23 views

STM32 USB VCP bug

I have been working on a project for the past two weeks now and debugging this one issue has taken up this entire week. Wondering if anyone can help, I will try to be as explicit and clear as ...
0
votes
0answers
158 views

STM32F205VC: USART framing error?

I'm trying to use USART in my program on STM32F205VC, but instead of sending my data I get some weird chars in PuTTY. I've used a Saleae Logical Analyzer and the result looks like this: This is my ...
0
votes
0answers
23 views

How to use external clock on STM32F205VC?

I'm using VisualGDB for stm32F205VC programming. I have an external clock on my board connected to OSC_IN and OSC_OUT that I have to use. How to switch to it?
0
votes
1answer
18 views

STM32F051R8: PWM timers don't work?

I'm working with MB1034B discovery board and STM32F051R8 microprocessor. I'm trying to output some PWM pulses using hardware timers. I use this tutorial (for STM32F4xx): ...
2
votes
1answer
35 views

STM32F3 Discovery reading values from sensor using I2C

I need to read values from on-board LSM303DLHC (connected via I2C) sensor and send them through UART. UART part is working but PuTTy shows: "S▒▒" every restart... Can anyone tell me what's wrong? I ...
1
vote
0answers
39 views

STM32 F205VCT6: GPIO B Port 6 and 7 do not work?

I'm using the STM32 F205VCT6. I have a simple blinking LED program written in C++ with VisualGDB (and VS 2013 Community). It works fine for pins like A1 and E2, but it doesn't for B6 and B7, where I ...
1
vote
1answer
38 views

STM32 SWD Issue

Greeting, I'm facing an issue while trying to program STM32L151C6 using STM32F4 Discovery board as programmer. What I did are the following: I removed CN3 jumpers from STM32F4 Discovery board page ...
1
vote
0answers
67 views

STM32 with FreeRTOS: using RS485 on USART with interrputs

I've got simple task in my project using usart and interrupts. It's works by receiving anything, and sending back "12345" string (I'm preparing project for something more complex). In task I have ...
2
votes
1answer
63 views

STM32 Virtual COM port baud rate

I'm using the STM32 VCP firmware and I want to transmit data to my PC from STM32F4 discovery board. The configuration of the virtual COM port is fine, the properties are the following in device ...
0
votes
0answers
27 views

STM32 L1 Bootloader: What is needed after a full memory erase?

I am trying to program a STM32 L1(51C8Ux) via the standard bootloader. I have written a hex file to the memory locations the hex file specifies. After reset, the program doesn't execute. Prior to ...
0
votes
1answer
82 views

STM32F4 VCP transmit/receive data

I'm using STM32 VCP firmware on STM32F4 discovery. I generated the code with CubeMX and I could successfully integrate it into my Eclipse project. After calling the initialisation functions, the ...
0
votes
1answer
45 views

STM32 L1 Bootloader: how to set the reset vector

I am trying to program a STM32 L1(51C8Ux) via the standard bootloader and when I do the memory gets written to, but the code doesn't execute (after reset that is). I assume as part of the memory ...
2
votes
1answer
26 views

How to use level-triggered interrupts with STM32F1xx?

I'm getting conflicting info on whether I can use level-triggered (as opposed to edge-triggered) interrupts with the STM32F1xx microcontroller. In ST's CMSIS-compliant Standard Peripheral Libraries, ...
1
vote
1answer
55 views

PWM LED using TIM1 on STM32

I need to PWM my LED on STM32F3 Discovery which is on PE8. I have found code which is using PWM on PA8 and PC8 (one using TIM1) but unfortunately I can't change it to PE8. How to do it? Or maybe you ...
0
votes
0answers
21 views

Clipped sine input for HSE clock input on STM32F303?

I am using a STM32F303 and need a very high stability clock ie around 1ppm over temperature. One of the modules I am looking at outputs what is described as "clipped sine". Can this drive the ...
7
votes
4answers
1k views

My first STM32 code - please criticize me

I have just wrote my first code on STM32 - blinking LED. It combines a fragments from different sources; please criticize me so I can learn how to write proper code and don't learn stupid habits. ...
-1
votes
1answer
51 views

STM32F205 - can i use a timer to generate a low pulse of specified length

I want a pin to be high by default and then generate two 125-250 µs pulses with 0.1 µs resolution using a command. I was thinking about using TIM1 in one-pulse mode but I don't see a way to invert the ...
3
votes
2answers
217 views

STM32 Understanding GPIO Settings

In STM32 Standard Peripheral library, we need to configure the GPIO. But there are 3 functions which I not sure how to configure them; GPIO_InitStructure.GPIO_Speed GPIO_InitStructure.GPIO_OType ...
0
votes
1answer
53 views

How float to binary conversion works

I was looking for solution how convert float value to binary in STM32 and I found this: float foo = 1.23; uint32_t bar; bar = *((uint32_t *)&foo); My ...
0
votes
1answer
81 views

STM32F411 Nucleo board - what the ferrite bead is used for?

I'm trying to design my own pcb for the stm32f411 and when i saw the datasheet of the stm32f411 ( http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00115249.pdf ) ...
2
votes
1answer
167 views

STM32 SPI Peripheral bug?

I'm using STM32F051R8T6 on STM32F0-Discovery board and M25P80 flash IC as a peripheral. I've got the SPI configured in 3-line (+ 1 software chip select line), full-duplex mode and I'm using polling to ...
1
vote
1answer
64 views

Why is it necessary to halt program execution for the breakpoint to be effective?

When I'm following this procedure, program execution is successfully stopped when the payload program is run: Setting breakpoint to beginning of program which is gets loaded by the bootloader ...
0
votes
1answer
79 views

LWiP Web Server: Running website using html files

Is there any way to run web server site on lwip library without conversion html to hex, but directly using html files?
0
votes
2answers
149 views

STM32F103RB ADC (pics included) strange values for temperature sensor (LM35)

I've connected one battery/2 batteries (GND and A0) and the measuremet displayed on the com26 port is ok. I've connected the LM35 (The LM35 has 1 celsius degree for 10mV measured value) on the VCC and ...
0
votes
0answers
74 views

STM32 J-Link connection

I have this JTAG connection diagram: According to this, I'm connecting only the pins 1, 2, 3, 5, 7, 9, 13 and 15 to the target, with the 10K pull-up resistors shown. Question is, other than these ...
3
votes
1answer
72 views

STM32 Semihosting - SIGTRAP received when printf called

Have followed this guide here (http://www.wolinlabs.com/blog/stm32f4.semihosting.html) to get semihosting on the STM32F103 working. Basically my goal is to get printf working over JTAG (ST-Link/v2). ...
0
votes
1answer
85 views

STM32F4 - DMA with bigger steps

I'm programming an STM32F4 Discovery board to push a sequence of 12 bit values into the DAC data register. This works well using timer interrupts: inside my IRQ handler, I have code that looks like: ...
2
votes
1answer
110 views

Printf style debugging via SWD

Is it possible to send arbitrary messages (as with printf()) via SWD for debugging?
0
votes
1answer
60 views

STM32 memory page size

I can't find the size of a page of memory in an STM32L0 (specifically STM32L053R8, see DocID 025844). I don't see a referenced as to the size of a page of memory. Note: This is also in reference to ...
0
votes
1answer
91 views

How can the Vss or Vdd pins of a MCU handle sink or source current?

Today I was seeing the datasheet of STM32F103 MCUs and I came across with an interesting thing. assume I have an STM32F103RET6. it's a 64pin MCU of STM32 series. the pinout is this: It has 4 ...
0
votes
1answer
40 views

lwIP webserver download

I'm using a STM32F4 with lwIP to host a website, and I also have an SD card which I save csv type files to using FatFS. Just wondering how I would allow users to download files directly from the SD ...
0
votes
0answers
45 views

Nested Vector Interrupt between USB interrupt and pin interrupt scheduling

I am making a software SPI for a sensor with stm32f072 microcontroller. I have to display it in PC and am using USB protocol for this. While sending data from sensor to USB is completely alright. But ...
0
votes
1answer
95 views

lwIP - Best way to send data from microcontroller

Currently, I am using Server Side Includes to transfer data from my microcontroller to my webpage. The issue with this approach is that if I want to graph the data I have to store the SSI value in a ...
0
votes
0answers
44 views

STM23 and TLK105 Ethernet acts strange

I am conntecting STM32F107 and TLK105 from Texas Instruments and it works fine most of the time. The problem is a very strange behavior such as: - TLK software reset is not done correctly - Reading ...
1
vote
1answer
170 views

Minimal circuit for ARM STM32F411

I'm trying to determine what a "minimal" circuit is to get an STM32F411 processor running and able to blink an LED. I wish to use the internal PLL and no external crystal at this point. I've looked ...
2
votes
1answer
127 views

Is printf debugging over USB with STM32 possible?

I've been doing a lot of searching to try find some examples for printf debugging over USB for the STM32 (specifically stm32f1x). I have found a few examples for UART/USART however I can't find any ...
2
votes
1answer
106 views

ARM CPU burning hot within 30s after voltage regulator failure

I have an STM32F3 DISCOVERY board (3V CPU, http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF254044), and I accidentally dropped a 25V lead on a wire that I didn't think was connected to the ...
0
votes
2answers
93 views

Current taken from USB by STM32F3 Discovery board?

I am trying to find out what the board draws from the USB supply at max MHz. I really don't want to cut cables if this info is available somewhere already
1
vote
1answer
186 views

What free IDE does everyone use for the stm32?

I'm currently using Atmel SAM series. The choice was easy: IDE is Atmel Studio which is very good, free and I used it for developing AVR before. The debugger I have is the Atmel ICE which I also used ...
3
votes
1answer
145 views

STM32F0 Interrupt Debugging

Issue: I'm having an impossible time debugging why one of my interrupts isn't working. I'm trying to setup a hardware interrupt on PA3, but as soon as I initialize it, the interrupt triggers and then ...
3
votes
2answers
812 views

STM32 - Problem debugging using openocd and st-link

I am trying to follow this guide "Installing a toolchain for Cortex-M3/STM32 on GNU/Linux" (available: https://www.olimex.com/Products/ARM/ST/STM32-H103/) with the STM32-H103 development board from ...
4
votes
1answer
215 views

What is relation between ARM libraries

What is relation between CMSIS libs released by ARM.com, libraries provided by manufacture and GCC ARM libraries ? What is the exact purpose of each? Which of them Should I use?
1
vote
3answers
281 views

Which ARM MCU family is better for beginners? [closed]

Which ARM MCU family is better for beginners? I mean which family: Is straightforward and easier to learn Has more/better learning and development resources available Has bigger and better ...
1
vote
0answers
124 views

STM32F407 TIM8 complementary

I can't figure out why my code doesn't work! I've worked with TIM1 and everything works fine but when I change to TIM8, PC6 and PC7 are always on and the complementaries always off. Please help me out ...
0
votes
0answers
70 views

STM32L1 Bootloading from USART

I am trying to move an application from the STM32L1 discovery board (which has the STM32L152 chip) onto a PCB containing the STM32L151RC. On the discovery board, I was able to follow the application ...
1
vote
0answers
53 views

Cannot change DMA configuration after first transfer

I'm using a stm32f10x microcontroller and I'm trying to program its DMA module for normal mode transfers. The first transfer works perfectly, but after it's over, I try to change the source, ...
0
votes
1answer
68 views

Real time tasks with CooOs

i am using CooOs with 4 tasks.the problem is that only the first task run (indefinetly).What i want to do is to toggle each task 3 seconds then switch to the other.I know that i can do that with ...
1
vote
2answers
108 views

How to configure Coide to use DSP library for STM32f3?

I am struggling to use the DSP library provided by ST for my STM32f3 discovery board. I am using Coide. I started by including arm_math.h since all the DSP library files refer to it. I am getting ...
0
votes
1answer
72 views

USB Busy when transmiting data

WHat should I do when I am sending data using USB, when the callback in my firmware gives me USB BUSY? Once, I received USB Busy state, I could no longer send data to my host from my firmware, but my ...