• Cannot Start Program Without Debug

    I use a simple delay clock code. But whenever I use this code program won't start without entering debug mode in KEIL. I plug stlink out and reconnect but it wont work if I don't enter the debug mode. Is there any solution to this. If not then what else…

  • Error while trying to initialize printf/scanf with __FILE

    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…

  • std::mt19937 with ARM Compiler 6 uses sys_open and breaks retarget.c

    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:…
  • USART2 Interrupt occur just one time or too late or never. (stm32f10 Keil)

    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…
  • Code that causes freeze when in main function scope

    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…

  • Assembly simulation - ARMv8

    Hi!

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

    Many thanks,

    Carlos

  • (ARM) Set of Instructions to read a txt file?

    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…

  • Command not supported.

    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…

  • How to save register values before __main function

    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…

  • Incorrect value displayed on system viewer window

    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…

  • Reverse engeneering / debug / emulate .bin stripped firmware

    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…

  • CPU cycle random changing

    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…

  • How to debug stm32-Cortex M in production mode for stm32mp157-EV1?

    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…

  • MT25QL512ABB FLM for custom STM32F769

    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…

  • FLM and Keil version

    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…

  • Keil error A1145E

    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:…

  • My MCU jumps to os_idle_demon after some seconds Network STM32f

    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;…

  • Is it possible to run Keil MDK inside a Windows Docker Container?

    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…

  • Keil USB Middleware not working with CubeMX

    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…

  • stm32f411 stlink problem

    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

  • Code completion/suggestion not working with STM32 project

    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…

  • why debugger aborted?

    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.......

  • Keil v5 having a dark background and cant fix it

    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…

  • Debugger watch window doesn't show correct values

    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…

  • Network Component recv() locked when Net4_CM3_L.lib(net_eth.o) compiled to off-chip RAM

    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…