• Error while trying to initialize printf/scanf with __FILE

    Deepen
    Deepen

    Hi All,

    I am using Keil uVision 5 with STM32F411RE

    I have a piece of code as follows (source http://www.keil.com/support/man/docs/armlib/armlib_chr1358938931411.htm)

     

    #include <stdio.h>
    
    struct __FILE
    {
        int handle;
    };

    However, I keep seeing…

    • 7 months ago
    • Software Tools
    • Keil forum
  • std::mt19937 with ARM Compiler 6 uses sys_open and breaks retarget.c

    Roman Khazanskii
    Roman Khazanskii

    I'm using Keil V5.30.0.0 and ArmClang.exe V6.14.

    When I tried using std::mt19937, like so:

    #include <random>

    std::mt19937 mt;
    std::uniform_int_distribution< uint32_t > dist(0);

    auto a = dist( mt );

    I got linker errors:

    .\obj\rcu.axf: Error:…
    • 7 months ago
    • Software Tools
    • Keil forum
  • USART2 Interrupt occur just one time or too late or never. (stm32f10 Keil)

     Enthusiastic
    Enthusiastic
    Hello there. I have a homework to do stopwatch, but I'm having a few problems. 
    In code there are 4 button interrupt(B0-B3), 1 timer1 interrupt for 1 ms and USART2 interrupt.
    Buttons and timer interrupts work properly but USART2 interrupt work just…
    • 7 months ago
    • Software Tools
    • Keil forum
  • Code that causes freeze when in main function scope

    kudagaci
    kudagaci

    Hello everyone,

    I just started to study ARM this week and i was trying to retarget printf to make it work with UART. After many tries, it just started to work magically as i put the stdin and stdout lines(#16 &17) out of the main function scope. What's…

    • 7 months ago
    • Software Tools
    • Keil forum
  • Assembly simulation - ARMv8

    Carlos Reaño
    Carlos Reaño

    Hi!

    I can simulate ARMv7 assembly code with Keil, however, I cannot simulate ARMv8. Do you know if that is possible?

    Many thanks,

    Carlos

    • 8 months ago
    • Software Tools
    • Keil forum
  • (ARM) Set of Instructions to read a txt file?

    Jenny97
    Jenny97

    Hello. I'm working on a project and I need to take some values from a text file and save them in registers. I've searched in internet but there's not enought information about the set of instructions I must use to read the file. Any ideas? Any basic block…

    • 8 months ago
    • Software Tools
    • Keil forum
  • Command not supported.

    Aravind979
    Aravind979

    I'm a beginner to stm32 world, and currently using STM32F407VG and the KEIL version is MDK 5.30. I started with the basic example blinky code. And when I'm trying to flash the code a dialogue box is popping with a message "Command not su…

    • 8 months ago
    • Software Tools
    • Keil forum
  • How to save register values before __main function

    BJS
    BJS

    Hi,

    I'm working on a cortex M3 based MCU with Keil. After reset a device related information is stored in R4. This value is cleared after __main and before the main function. Is there a way I can store this value and later read it back somewhere after…

    • 8 months ago
    • Software Tools
    • Keil forum
  • Incorrect value displayed on system viewer window

    tsgowtham
    tsgowtham

    Hi,

    I'm using a STM32F4 Discovery board which has a STM32F407VG with a LIS3DSH accelerometer which is connected by SPI. I'm trying to read a register from the accelerometer and I tried writing the address of the register to SPI->DR. But SPI->DR shows…

    • Answered
    • 8 months ago
    • Software Tools
    • Keil forum
  • Reverse engeneering / debug / emulate .bin stripped firmware

    davidtgbe
    davidtgbe

    Hello,

    I am trying to find out GPIO mapping on a board with an STM32F407 (which firmware function is related to which GPIO). I know I could do it using a LA, but pins are note very accesible.

    I have no access to source code so... I only have a firmware…

    • 8 months ago
    • Software Tools
    • Keil forum
  • CPU cycle random changing

    User1988
    User1988

    Hello, i have an issue that seems to be from the compiler but i am not 100% sure. First of all the project was not made by me, but the company i work bought it from another company. As this project is related to a company i am not able to share many specific…

    • 8 months ago
    • Software Tools
    • Keil forum
  • How to debug stm32-Cortex M in production mode for stm32mp157-EV1?

    Mahsa
    Mahsa

    Hi guys

    I would like to debug stm32f7 on Stm32mp157_EV1 board via stlink.

     

    according to page 5 of http://www.keil.com/appnotes/files/apnt_319_v1.1.pdf

    i connected st link then went to Project, Selected St-link and then went to setting dialog,

    the text…

    • 8 months ago
    • Software Tools
    • Keil forum
  • MT25QL512ABB FLM for custom STM32F769

    Alexander Wagner
    Alexander Wagner

    Hello,

     I have a custom board which is based on the design of the STM32F769I-EVAL. I need to flash the QSPI flash in Keil.

    For this reason I need a custom FLM file because the QSPI CS PIN changed from PIN6 to PIN10.

    Unfortunately I can't get an algorithm…

    • 9 months ago
    • Software Tools
    • Keil forum
  • FLM and Keil version

    egc
    egc

    Hi all,

    One question regarding including a custom FLM file in the Flash Download dialog.

    Does the Keil version used to compile the FLM in the first place has any implication on whether or not the FLM can be used in other Keil versions?

    I compiled an initial…

    • 9 months ago
    • Software Tools
    • Keil forum
  • Keil error A1145E

    lm3915
    lm3915

    Hello. I am trying to start a project with STM32F358VCT6. I selected the MCU in CubeMX and only added one pin as GPIO to start with. When I open the project with Keil and try to compile it, I get this error:

    startup_stm32f358xx.s(227): error: A1145E:…

    • 9 months ago
    • Software Tools
    • Keil forum
  • My MCU jumps to os_idle_demon after some seconds Network STM32f

    Parisa Mohamadi
    Parisa Mohamadi

    Hello,

    Here is my program:

    int32_t socket;
    uint8_t *sendbuf;
     
     
    void Time3(void){
    TIM_TimeBaseInitTypeDef TimeStruct; 
    NVIC_InitTypeDef nvicStructure;
    	
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_3);
    nvicStructure.NVIC_IRQChannel = TIM3_IRQn;…

    • 9 months ago
    • Software Tools
    • Keil forum
  • Is it possible to run Keil MDK inside a Windows Docker Container?

    Syam Pearson
    Syam Pearson

    We have successfully installed keil-MDK 5.29 inside the docker container with base image Windows server 2019. We used the command line installation options given in the link www.keil.com/.../uv4_ov_install.htm
    and used the command line options given for…

    • 9 months ago
    • Software Tools
    • Keil forum
  • Keil USB Middleware not working with CubeMX

    Alexander Wagner
    Alexander Wagner

    Hello I try to use Keil RTOS2 with CubeMX.

    I got USB Host running with this combination. But I can't get Keil USB Device (CDC or HID) Middleware  running with CubeMX.

    If I only use CubeMX+STM Middleware or only Keil RTE it's working. Everything is…

    • 9 months ago
    • Software Tools
    • Keil forum
  • stm32f411 stlink problem

    bagherian_99
    bagherian_99

    hey , first i'm sorry for my question
    I get stm32f411 and start programming and I set stlink but when I want to download , i have below error.

    and also

    • Answered
    • 9 months ago
    • Software Tools
    • Keil forum
  • Code completion/suggestion not working with STM32 project

    vibram
    vibram

    Hi

    I create a basic project like led blinking on F411RE nucleo board with ST32Cube MX qnd opened the project with Keil.
    When I open keil, I have no code completion/suggestion even for very simple function like HAL_Delay

    When i use and build the code with…

    • 9 months ago
    • Software Tools
    • Keil forum
  • why debugger aborted?

    Saad Anees
    Saad Anees

    when i try to debug in simulator mode in the  keil this error is occurred.

    Error: Could not load file 'C:\Keil_v5\ARM\Project\Objects\add.axf'. Debugger aborted !

    what should i do?

    please help me.......

    • 9 months ago
    • Software Tools
    • Keil forum
  • Keil v5 having a dark background and cant fix it

    albert93
    albert93

    Hello, since i installed Keil uVision5 i have a dark background color for my UI and i cant get it to normal.

    Ididnt installed a dark theme or anything else.

    I checked the windows settings and the color settings but it wont get to the default how it actually…

    • 9 months ago
    • Software Tools
    • Keil forum
  • Debugger watch window doesn't show correct values

    Alrie
    Alrie

    Hey there,

    I'm using keil v5.27.1.0 with a stm32h745 nucleo board. i'm developing firmware code for a student project.

    i'm having a problem where the watch window shows jibberish values for variables. it's literally as simple as a line of code…

    • 9 months ago
    • Software Tools
    • Keil forum
  • Network Component recv() locked when Net4_CM3_L.lib(net_eth.o) compiled to off-chip RAM

    Matěj Jirka
    Matěj Jirka

    Hi guys,

    I am facing this problem for a long time and different versions of Keil.

    When net_eth.o is in off-chip RW_RAM1 (beginning at 0x60000000) networking does not work properly. (STM32F4xx, Network Component 7.12) Simplified Problem:

    Thread 1:

    netInitialize…

    • 10 months ago
    • Software Tools
    • Keil forum
  • Setting clock stm32f407 discovery

    Mkarpliuk
    Mkarpliuk

    Hello. I’m using stm32f407VG discovery and Keil uvision 5 and I can’t find an indtruction how to set clock properly. I wanna use internal 16 MHz SYSCLK for communication throughout virtual COM port. Here is a code I have found in a book, but it doesn…

    • 10 months ago
    • Software Tools
    • Keil forum
  • View related content from anywhere
  • More
  • Cancel
<>