Questions tagged [stm32f0]

STM32 F0 are entry-level ARM Cortex-M0 MCUs from ST Microelectronics.

124 questions
1
vote
2 answers

STM32F030F4 does not start I2C1 correctly in Bare Metal

STM32F030F4 does not start I2C1 correctly. this is my code: //Clocks------------------------------------------------ RCC->AHBENR = 0x200000; RCC->APB1ENR = 0x4040 ; //------------------------------------------------------ …
1
vote
0 answers

STM32F091Rc interfacing with external(I2C) RTC MCP79411

I am trying to interface STM32F091Rc with MCP79411 through i2c bus, i am able to get Unique ID from the chip(MCP79411) but not able to set or get RTC date and time from the chip. I am using CUBEMX to generate I2C initialization and other required…
1
vote
1 answer

STM32CubeMX is generating Makefiles with repeated C_SOURCES

I'm just starting to learn STM32 development (on Ubuntu 16.04). I've used STM32CubeMX to build a Makefile-based project. The generated Makefiles have repeated entries in C_SOURCES which (obviously) cause linking to fail because of duplicated…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
1
vote
3 answers

STM32f091rc UART Receive function returning only the last byte of the packet instead of the full data packet

I have been working on STM32f091rc board, trying to get UART1 and UART2 work. I tried sending 8 bytes of packet from a controller to the STM board. Due to some reasons, my function is just displaying the last byte of the packet. My Receiving…
1
vote
1 answer

OpenOCD read_bank command asks for more arguments

We are trying to read out portions of our STM32F0x microcontrollers with OpenOCD, which we also use to program them. However, the flash read_bank command doesn't work as documented. Whatever we input, the error is: flash read_bank 0 test.bin:…
Janos
  • 796
  • 1
  • 9
  • 26
1
vote
1 answer

Overrun in ST32 HAL SPI slave interrupt

I have a difficulty with ST32F030 and Slave SPI I'm trying to have it respond to an spi command:- Master sends 0x05, slave responds with an array of 7 bytes. It kind of works the first time, but then loses sync, and get OVR bit set. I can't figure…
OXO
  • 61
  • 4
  • 14
1
vote
1 answer

STM32F0: Interrupt on EXTI1 / EXTI2 not firing, while EXTI4 is working. *confused*

can you please help me out here and tell me what I am doing wrong? EXTI1 and EXTI2 will not fire, while EXTI4 is however working flawlessly. It's not the hardware. If I switch the pins, the new EXTI4 button will keep firing, while the button that I…
1
vote
1 answer

STM32F0 discovery I2C transfer using DMA

I'm trying to get data from an I2C sensor (BNO055) using DMA, but I can't start DMA transmission. I've found plenty of examples for F1, F3 adn F4 STM microcontrollers, but nothing helpful for F0. What I do is: I initialize sensor using poll method…
sztef
  • 11
  • 1
  • 3
1
vote
1 answer

STM32 blocking delays not consistent with interrupts disabled

I am running on an STM32F0xx micro, and I have the following code that simply toggles a pin using blocking delays (yes I know blocking delays are bad, not point here). uint32_t ticks = 0; // Disable interrupts __disable_irq(); for (int bit = 0; bit…
ryeager
  • 873
  • 1
  • 10
  • 24
0
votes
0 answers

stm32f030cct6 SWDIO is pulldown when i try to program and my STLINK can't find the tarjet

I am trying to program a stm32f030cct6 with a ST-Link v2. When I try to connect using CubeProgramer says: "Tarjet not found". I connect to NREST, CLK and SWDIO, I'm measuring the signals with an oscilloscope and SWDIO is in PullDown when it should…
0
votes
1 answer

Triggering interrupt on GPIO_Pin_4 (GPIOB) on STM32F042

I am looking for a sample code for triggering an interrupt upon signal changes on GPIO_Pin_4 (GPIOB) on STM32F042. I saw some examples for STMF10x and STMF4x, but nothing for STM32F042. I am not using HAL.
user14665305
  • 87
  • 1
  • 9
0
votes
0 answers

IWDG timer doesn't work on STM32F030K6T6 microcontroller

I have to enable IWDG on my STM32 based project. It doesn't work properly as I expect to. Below is the code which CubeMX created. hiwdg.Instance = IWDG; hiwdg.Init.Prescaler = IWDG_PRESCALER_8; hiwdg.Init.Window = 4095; hiwdg.Init.Reload =…
K3IV4N
  • 3
  • 3
0
votes
0 answers

STM32F0X disable read protection / set RDP to 0 via openOCD

i am trying to back up the firmware of an STM32F030 sitting on a PCB being the operating panel a lawnmover robot as in https://openmower.de/ , a new model (SA900ECO) and later to flash it . It worked with openocd like a charm to Backup an STM32F1X…
jak83
  • 1
  • 1
0
votes
0 answers

STM chip refuses to connect to one computer, but connects fine to another one

so I'm somewhat of a noob when it comes to anything around STM chips. I have received an STM32F042F6 chip from my school, worked with it successfully on one Windows laptop. Since then I haven't had time to tinker with it at all and I have bought a…
0
votes
0 answers

STM32F072B-DISCO Example code from manual results error (chapter 7.3.6) with with the "extern TSL_LinRot_T MyLinRots[];

I am using the STM32F072B-DISCO, trying to implement an example code for the touch sensing and followed the instructions of the "Getting Started with touch sensing Control on STM32 MCU". The code given in chapter 7.2.6 results in…
Lyoner
  • 155
  • 8
1 2 3
8 9