Questions tagged [stm32f0]

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

124 questions
0
votes
2 answers

how do I select an STM32 for low external interrupt time?

I have a circuit which needs to respond in around 0.5uS to an external interrupt. I built the circuit with an STM32F031K6 and a 20MHz oscillator set to run on the 2x PLL, giving a 40MHz clock. I was surprised to see that although one clock cycle…
prune
  • 77
  • 1
  • 9
0
votes
1 answer

STM32cubeIDE ignore my code and using MX config

I have a question. Is there any option to disable CubeMx in STM32cubeIDE? I just want use UART. So I write PINs and UART configuration in my main.c file. However CubeMX already had UART's pins configured and completely ignored my pins…
0
votes
1 answer

Where are the files defining NVIC for STM32 in PlatformIO when using CubeMX?

I've recently switched to using PlatformIO for developing for STM32 using the following workflow: Create a .ioc file using the CubeMX utility Generate source code and the PlatformIO configuration from that .ioc file from the stm32pio command line…
Hayden McCabe
  • 494
  • 2
  • 14
0
votes
0 answers

Strange memory issue with sscanf

Using gcc-arm-none-eabi-5_42016q3-20160926 tool chain in eclipse. Processor: STM32F030 I have a 3 line program that starts before any hardware initializations to isolate the problem: int a; char * num="3"; memset(0x20000970,0XAA,…
0
votes
1 answer

STM32F042G6 won't jump to bootloader

I have a piece of code which is supposed to turn a board into bootloader mode when it's powered on with a button (not on boot pins) pressed. blah blah int main(void) { delay(1000); #ifdef ENABLE_OVERCLOCK clk_init(); #endif #if…
0
votes
1 answer

Using Tim2 inside interrupt handler for STM32F1

I am blinking LED using TIM2 General timer. Code in main.c HAL_TIM_Base_Start_IT(&htim2); void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim){ if(htim->Instance==TIM2){ HAL_GPIO_TogglePin(GPIOB, LED_Pin); } } When the…
ussrback
  • 491
  • 2
  • 8
  • 22
0
votes
0 answers

Sounds firmware installation has failed for internal reason

I am using OpenSTM Workbench to try and program an STM32F0 MCU. I am using Eclipse (with OpenSTM extension) on Windows 10. I keep getting the following error when I try to install the peripheral library for my variant when creating a…
user12271420
0
votes
1 answer

STM32F072C8T7 (Boot0) Bootloader using USB

In my project, I am using an STM32F072C8T7 MCU. In this MCU, there is just one boot pin named as BOOT0. According to the application note, I have to configure the BOOT0 -> GND to choose the main flash as the boot space. I have done that and the…
adnan
  • 103
  • 3
0
votes
2 answers

How to convert STM32 snippet (code examples) written for target device STM32F072B to STM32F030r8

Dears, I am newbie in embedded systems. I have downloaded code examples from st.com written for target device STM32F072B. As I am using Nucleo-64 with STM32F030r8 MCU, I need to convert the downloaded code examples to support my target device…
niyast
  • 11
  • 4
0
votes
1 answer

Does anyone have an STM32L0xx with TLC59116 I2C Example code?

I am writing a basic LED program to light LEDs on a custom board using an STM32L0xx chip and the TI TLC59116F, and I'm having some trouble interpreting the data sheet. I used STM32CubeMX to set up the initial pins and init I2C, and have come up with…
TyrantUT
  • 29
  • 1
  • 5
0
votes
1 answer

Unable to use PC15 as GPIO input on stm32f030rc

I'm working on a project using an stm32f030rc. I need to use PC15 as a GPIO input but it appears I'm unable to. I understand the couple PC14/PC15 is shared with the LFE oscillator, but of course I'm not using that function. Moreover, I am able to…
Maldus
  • 10,548
  • 4
  • 24
  • 36
0
votes
2 answers

Incorrect value when reading GPIOB_IDR register

I struggle with stm32f030r8 arm programming on atollic true studio ide. I have some problem with reading correct data from idr register. I make pull down PUPR register of GPIOB(0,1,2,3). Other pins of GPIOB is output that i make with MODER…
0
votes
0 answers

I get the sent at command and the response , both in the same response buffer

I am using SIM800 with STM32F0 in a project. I am using UART protocol for communication between them. After sending the AT-COMMAND and I am waiting for response, I got both (AT-CMD + RESP) Example: sent: AT+FSLS=C:\ \r\n resp: AT+FSLS=E:\ \r\n…
0
votes
1 answer

How to implement CAN Bus on STM32F042k6 without Std Lib and CubeMX

I am trying since a couple of days to implement a CAN Bus communication for my above mentioned board without success. I wish to do this using the Registers only. Can someone give some hints on how I should proceed? or a link?. Thanks in advance.
Steve Mclaren
  • 31
  • 1
  • 5
0
votes
1 answer

How to communicate with an Android device through USB type C using P-NUCLEO-USB002?

We are students in second year of the engineering cycle at ECE Paris, Lyon, a general engineering school in Paris. As part of our annual enhanced project, we are currently working on a project that aims to reduce the degradation of a smartphone's…
1 2 3
8 9