All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
62 views

stm32 HardFault in keil

a few hours ago , i created C++ project in keil i wrote my code and next i download in to my board. when i went debug it , code directly get to HardFault exception ...
0
votes
2answers
71 views

Custom bootloader passing control to application code in STM32

I am trying to understand that if for STM32F405 MCU a custom bootloader is used on the MCU then each of the two projects for the custom bootloader and the application code will have their own 'startup....
0
votes
2answers
73 views

How to upgrade StdPeriph drivers for STM32F103 project [closed]

I have an old project which is built on using "StdPeriph drivers" for STM32F103 MCU and Keil environment. It uses various drivers for gpio, adc, can, dac, dma, i2c, spi, tim, uart etc. As these ...
3
votes
2answers
130 views

How to solve Keil compiler 'Error: L6218E: Undefined symbol' on STM32

I am trying to run a simple tutorial (external interrupt example) on my NUCLEO-F746ZG board. I use STM32CubeMx software version 5.2.0 and Keil software version 5.28.0.0 as compiler. I get the ...
1
vote
2answers
81 views

Task Execution time measurement on Keil for STM32F103

Is there any builtin feature available in Keil uVision to measure execution time of a function or task for STM32F103?
2
votes
1answer
206 views

single or multiple interrupt handlers in stm32

I am coming from 8-bit world to 32-bit world specifically stm32f103. At present I am only doing study and discussion with my fellows to know the major differences in the two worlds and also to select ...
0
votes
1answer
123 views

Why I can't change variable in it.c?

I have stm32vldiscovery project. I want to use external interrupt by PA0 (user button). When I press the button (PA0), then function EXTI0_IRQHandler must set ldOn equal 0. But ldOn always is 1. ...
0
votes
1answer
341 views

Call member function from interrupt in STM32 [closed]

I have created a new STM32 project using cube. I have changed main.c to main.cpp and enabled ...
7
votes
1answer
614 views

What does [WEAK] mean in STM32 startup assembly code?

I was reading the STM32F407 startup file in Keil software to gather some information. I faced this problem: What is the [WEAK] symbol used for? A part of the code ...
1
vote
1answer
500 views

Chip Erase vs. Sector Erase

In Keil IDE Software there are two ways to erase chip before program it. What does do "Erase Sectors" mode? When to use "Erase sectors" mode and when to use "Erase Full Chip" Mode?
2
votes
1answer
347 views

STM32F4 - DMA Transfer Error with ADC

Code here is configuring DMA2 for transferring 160 samples each from two analog channels from ADC1 to memory. The ADC,DMA,NVIC etc. seem properly configured but for some reason I am getting transfer ...
0
votes
1answer
544 views

DS18S20 Temp sensor HAL Library

I am using stm32f303k8t6 nucleo board and Keil V5 IDE. I want to measure temperature with DS18S20 sensor over one wire interface. I have downloaded the HAL library from https://github.com/nimaltd/...
0
votes
1answer
50 views

Migrating uVision project within the same controller family

I've have a uVision project which is built on STM32F030C8 microcontroller. I'm using STM32F0xx standard peripheral library in my application. Now I need to migrate to a higher version of the ...
0
votes
0answers
57 views

Cant select NUCLEO-L433RC-P in Keil

I recently received NUCLEO-L433RC-P, which I want to start using with the Keil application. I installed the STM32L4xx_DFP package, but I can't select the board under the "Manage Run-Time Environment" ...
-3
votes
1answer
175 views

can someone explain me this error #error 35 #error directive [closed]

i would like to know if someone can help me on this issue I have two lines nearly the same, the only difference is "!" before the condition ( if .... is good but not if ! ....) error: #35: #error ...
-4
votes
3answers
506 views
1
vote
1answer
118 views

How to update MCU application

I'm currently developing with Keil µvision5 and STM32CubeMX on a Nucléo Board L053R8 (LQP64). Now I would like to transfer my program to my prototype board which has a STM32F051K6T8 (LQP32). Do I ...
3
votes
1answer
183 views

Can't run code in Keil for STM32L433RCT6P on NUCLEO-L433RC-P

Recently at Embedded World 2018 in Nuremberg I got, for free, NUCLEO-L433RC-P with STM32L433RCT6P chip onboard. I want to broaden my knowledge in STM32 chips. Before, I did simple stuf on STM32F4. ...
0
votes
1answer
403 views

Placing a key variable in internal flash Memory

I am trying to place a variable named secret_key at location 0x08002000 in STM32Nucleo-board which has STM32L476RG on board with 1MB flash. Question 1: Why am i ...
0
votes
3answers
2k views

keil v5 STM32F4 - Cannot access memory

I am using an STM32F407VGT board with an STLINK V2 programmer in keil IDE. I have downloaded to the board a very simple code: ...
2
votes
1answer
204 views

How to interpret the values sent by an MPU-9255?

Well, I am using this holiday in Brazil to improve my skills in C. I have learned how to use I2C and how to communicate with the MPU9255 (with help from this question). The last trouble I am facing is ...
0
votes
1answer
551 views

MPU9255 without lib on STM32

I have a code on Arduino to read the data from MPU9255 with no libraries, using it direct through I2C. I am trying to do the same on Keil uVision with Bluepill, just to learn how to use I2C with HAL ...
0
votes
1answer
170 views

Not Able to Simulate STM32 Program In Keil

I just start Working on Stm32F070RBT6.I am using CubeMx to Configure Keil and And Keil uVision5 to simulate.I tried Blinky Example and run it in simulator mode.But The Example Is not working perfectly....
0
votes
1answer
718 views

What is causing my error in executing arm-none-eabi-gcc.exe from Keil uVision?

I'm attempting to set up Keil uVision to build a simple C++ program for the STM32F3 microcontroller. I've downloaded the GNU ARM toolchain on my Windows computer and placed it into the directory ...
5
votes
2answers
4k views

STM32 RTC freeze when power is off

I am using an STM32F745VGT6 user board with Keil µVision 5. I want to use the internal RTC calendar with the internal clock (LSI). My question is: first power on clock start 02:00:00 then time is ...
6
votes
2answers
5k views

What's the difference between setting SysTick Interrupt in NVIC and using it as an exception?

I'm using an STM32F303 MCU and I've noticed that the SysTick can be set up to cause an exception, which seems to mentioned quite often in various User Guides. This way, it will have a priority level ...
4
votes
3answers
456 views

smt32 f10x invalid characters over uart

I'm currently working on a quadcopter using the STM32F103. Instead of using the provided Std Periph Driver which is big I'm creating my own Periph Driver which is object oriented which also helps me ...
0
votes
1answer
189 views

STM32F4 LIS3MDL Magnetometer Hard-Iron Effect Elimination

I am using LIS3MDL 3 axis magnetometer sensor for car detection project. while I am using raw data, I understand that if sensor is exposed to hard-iron effect then this sensor can not read old values. ...
1
vote
0answers
605 views

How to use functions from math library in Keil uVision MDK ARM?

I want to use log() function (natural logarithm) in one of my calculation of Temperature using the Stein Hart Equation. Microcontroller used is STM32L476 . ...
1
vote
0answers
544 views

Keil - Configuring Logic Analyzer tool

I am working with the Keil compiler in a project using the STM32F769I-DISC1. For debugging I use the ST-Link provided by the board. The idea is to use the on-chip DAC using TIM6 for triggering the ...
1
vote
0answers
544 views

J-Link device selection error in Keil

I try to load a program into STM32L011K4 using J-Link. The mistakes I get and the steps I follow are as follows: PROBLEM-1. J-link could not find STM32L011K4 My Steps: Click options for Target → ...
0
votes
1answer
37 views

Need help for a trouble with Keil C window

I tried to program STM32 with Keil C but when I try to "Set Path" to the library, there is a problem like this: As you can see, the "Option for Target" window doesn't show all everything, there is ...
1
vote
1answer
4k views

MicroSD card reading problem with an STM32 chip

I am practicing the microSD card on a PCB board with the STM32F405 chip. The testing program is generated by STM32CubeMX. The code is very easy to understand. The problem is that an error happens ...
6
votes
1answer
2k views

STM32 interrupts and C++ don't go well together [duplicate]

I set up TIM3 to fire an interrupt in my project and it just wouldn't work. I tried everything I could and still couldn't find whats the problem. Then I created a clean project and copy/pasted only ...
1
vote
1answer
796 views

How to use a CAN database .dbc with STM32F using Keil Uvision?

I am a beginner in software / firmware development, I've only just got away from Arduino and onto STM32F105. I am using Keil Uvision to develop my code. I have built a simple CAN Bus gateway using 2 ...
1
vote
0answers
2k views

Bootloader jump to main application problem using STM32 with Keil Uvision

I am developing for the STM32F0 using Keil uVision. I have a custom bootloader loaded running at address 0x08000000. I need the bootloader to jump to my main application which I flash at address ...
1
vote
0answers
2k 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 ...
1
vote
1answer
2k views

Standard Peripheral Library and HAL drivers together in Keil

it seems that: ST has moved to Cubemx code initializer and generates only HAL drivers Keil has introduced DFP and Manage-Run-time-Environment which use HAL drives although ST's cubemx and Keil's ...
-1
votes
2answers
1k views

Getting started with STM32F4 with Keil

I bought a STM32F410RB Nucleo board which has a STM32F410RB Cortex-M4 MCU. I'm trying to program it with Keil but I didn't find any example for my board. All examples are for other nucleo boards. I ...
13
votes
3answers
8k views

Minimal code required to startup a STM32F4?

Which is the most efficient way/minimal code required to startup a STM32F4? The startup files that come from ST seem to have a lot of unnecessary code.
1
vote
0answers
474 views

Retargeting printf in Keil on STM32F4-Discovery

I've found lots of ways on the internet to retarget printf to SWO (Single Wire Output) but none worked for me. I'm using Keil µVision 5 which contains a "software component" to retarget printf but ...
-3
votes
1answer
513 views

Search for matching string on the other string

I have a problem with strstr function, I receive characters from UART with interrupt & save them in the n length array(buffer array). Then in main loop I check ...
0
votes
1answer
2k views

Resolve SWD Communication Failure

I have developed a board with stm32f373VB and I'm trying to test the PCB with ULINK/2 and uVision V4.70.0. I got a SWD Communication Failure, and I can't program the uC. And here is the layout: Any ...
1
vote
1answer
453 views

Using the STM32 Nucleo L152RE with uVision

I've been messing around with the Nucleo with mbed for the last week or so, but I'm keen to get out of that and back into some lower level C to give me more flexbility. I have the problem, however, ...
1
vote
2answers
581 views

How to use characters in strings outside of the printable ASCII range?

I am trying to create a string with characters outside the ASCII printable range. I am using an STM32 microcontroller using the µVision IDE with the Keil compiler. The documentation allows various ...
0
votes
2answers
761 views

Problem with update to Keil uVision 5 with STM32F4 discovery

My dev system doesnt work in Keil with STM32F4 discovery (STM32F407VG). I am using uVision 5. All my drivers are up to date. The code gets compiled without any errors, however, I cant get the Logic ...
2
votes
2answers
5k views

Timer interrupt on stm32f103

I'm having a little suprise with timer interrupt on update event. I thought that if timer is configured to count up, update event will occure just after the overflow, i.e. when CNT will become equal ...
1
vote
1answer
508 views

What does the “OPT” build target stand for?

When exploring the example projects, I've noticed that the regular Blinky project has 3 targets. I think I understand what Flash and RAM stand for (it's all a bit confusing), but I haven't seen "OPT" ...
0
votes
1answer
1k views

Why doesn't the STM32f0 go to the interrupt routine? (in the debugger)

I'm trying to execute my project in the debugger but it doesn't go to the interrupt routine. the project is correct and it works without the debugger nicely. How do I use it? Ok, here we go! at ...
2
votes
1answer
11k views

Using CooCox as an alternative to Keil MDK-ARM - any limitations?

A very popular and advertised tool for programming ARM microcontrollers is Keil MDK-ARM. The evaluation version can be downloaded here. However there is a code-size limitation of 32 kB for using ...