• [ST-Link STM32F4] Random Internal Command Errors

    I have been using Keil u5, ST-Link/V2's, and STM32F405's for various projects for a few years, but roughly two months ago I started getting "Internal Command Error" popups when trying to flash boards which otherwise work fine.

    These…

  • How to make Keil MDK listening an IP port and exchange information with other application

    Is there any way to make Keil MDK exchange information with other windows application through socket ?

    I want to develop a debug software. so I need the MDK to send some information (like variable value) to a debug tool (like eclipse) and receive debug…

  • WRPERR when set breakpoints

    The scenario is STM32L0 (ST Nucleo evaluation board) and custom firmware.

    When I execute the code in debug mode and it stops at main function, the value of FLASH->SR is 0x0000000C, and it looks good for me.
    Now, without running the code, if I simply…

  • led blinking problem in stm32f401re NUCLEO64(newbie)

    hi,

     earlier i was working on PIC controller, now i am shifting to ARM and i am having stm32f401re NUCLEO64 evaluation board.

    development tool chain i am using is Keil arm mdk , keil version 5. i found some notes for blinking the led on board and i followed…

  • Can I code STM32F103RBT6 into Assembly Langauage rather than C or C++?

    Hi Everyone!

    I have STM32F1xx family microcontroller. I've coded some projects into C language. Now, I want to code this microcontroller into Assembly laguage.

    If Yes, I can then please give an example code or any related information. 

    Thanks

  • Secondary UART bootloader example

    I'm looking for some example code to write a secondary UART based bootloader, my design has an external supervisor/watchdog IC on the board, this means that for the initial programming I need to disable this with a jumper.

    Currently the unit is programmed…

  • fwrite of "cnt < 4-byte" data results in ARM_Flash_ProgramData (cnt = 4-byte)

    Problem Code:

    /* main.c */
    uint8_t  testBuf[] = {1, 2, 3, 4, 5},
    
    FILE * fwr = fopen("tst1.txt", "w");
    fwrite(testBuf, sizeof(uint8_t), sizeof(testBuf), fwr);
    fflush(fwr);
    fclose(fwr);
    
    /* flash_cmsis_driver.c */
    int32_t ARM_Flash_ProgramData…

  • Is ARM Keil IDE case-sensitive for all ARM assembly instructions? Is it indentation-sensitive?

    Is ARM Keil IDE case-sensitive for all ARM assembly instructions? Is it indentation-sensitive?

  • PWM generation problem in STM32F446ZET

    Hello friends

    I am trying to generate PWM using TIM4 in STM32F446ZE, But There is no proper output from the controller

    Here i am sharing my code with you,   please help me out

    Counter register increments properly

    Specifications

    CLK_FREQ =16Mhz (internal…

  • Keil Download Program Error

    Hi,

    I got a discovery kit .(stm32l discovery kit) when i try to load some basic 

    blinky code to my processor -  after the compiling -  I got some error mesage ; 

    "No target connected " and "Error : Flash download failed target dll has been canceled "…

  • Problem with GCC and string.h and stdlib

    Note: This was originally posted on 8th October 2008 at http://forums.arm.com

    Hi everyone,

    i have following trouble with keil arm gnu compiler. i have recently moved to gnu and now i am having hard time to set it up.

    description of problem: i am using real…
  • where is the syntax for .sct (scatter file content) defined?  Did ARM originate this file type?

    Automatically generated when I create a new project with Keil:

    my.sct

    LR_IROM1 0x00400000 0x00020000  {    ; load region size_region

      ER_IROM1 0x00400000 0x00020000  {  ; load address = execution address

       *.o (RESET,…

  • how i can store/erase C variable in the internal non volatile memory of lpc2148?

    I m already read its datasheet but i unable to do this ......please help me to understand.

  • HI everyone, i'm trying to do an a SPI communication between the board STM32F746 and the MAX7219 to controller a matrix. i'm working in keil uvision 5 and programming without libraries, DMA, CMSIS or other. i programm through registers putting '

    HI everyone, i'm trying to do an a SPI communication between the board STM32F746 and the MAX7219 to controller a matrix. i'm working in keil uvision 5 and programming without libraries, DMA, CMSIS or other. i programm through registers putting '1'. i…

  • LPC2148 timer0 not working as expected

    I am new to ARM and I am trying to produce 1 second delay using timer 0 in LPC2148. But in debug session in Keil, it is giving delay of 4 seconds with 15MHz and 5 seconds with 12 MHz. What is the issue ?

    Here is my code.

    #include <lpc214x.h>
    int main…

  • FCARM doesn't create any output file

    I am using KEIL µVision 4.74.0.0 with ARM compiler 5.03.0.76 on Windows 10.

    When I put my web src files into fcarm.exe, I get absolutely no output, and also no error message. The tool calculates quite some time (maybe 10 s or so), and then outputs…

  • Flash Download failed - "Cortex-M0+"

    Hello,

    I am currently working on keil, with NUCLEO L053R8 from STMicroelectronics, and I face this issue

              (Error: Flash Download failed  -  "Cortex-M0+")

    since I have begun to use ST32CubeMX.

    I have already tried to :

       - change com port…

  • Use a GLCD on uKeil and STM32F7

    Hello everyone, I've a question about how to use the LCD 128x64?, i tried but i can not displayed something. I'm using the STM32F746zg and uVision Keil.i'm programming through regsiter, putting 1 in to the GPIO registers. I would like that someone please…

  • Could not stop ARM device!

    Hello.

    I am trying to load my code into a LPC2129 with ULINK2 and appears an error message saying: "Could not stop ARM device! Please check the JTAG cable". I tried to change the JTAG clock to 100 kHz and did not work. I tried with another ULINK2 but nothing…

  • Support for std::thread and other synchronization primitives, e.g. std::mutex...

    I would like to know if any of the compilers/libraries for Cortex-M support the std::thread type (from the <thread> header) or if there is any plan to support that in the near future. I am interested in both Keil MDK / DS-5 or GCC for ARM. Thank you!…

  • How to access local C variables in Inline-Assembly?

    How do I access local C variables in Keil using ARM inline Assembly?

  • Recovering from a hard fault cortex M3

    Hi,

    I'm new into  mixing C and ASM on Cortex M3 using keil, here is the question,

    Suppose that a function tries to access some memory that is not in the system, something like this, the system crashes with the hardfualt exception, so my question is…

  • Create standalone function to be loaded into Code memory

    I have an application, for an 8051 device, that accepts commands, acts on them, and provides a reply.  I want to implement a command that will load code (for an new function) into a reserved section of Code memory so that the code will run when a different…

  • List of configuration options in .uvprojx and .uvoptx files (Keil uVision 5)

    Hello!

    As an author of CMake <> uVision Synchronizer project, I am trying to find a list of all possible (or at least all mandatory) configuration options in uVision5 Project File (.uvprojx) and uVision5 project options (.uvoptx) XML files.

    Now the…

  • Getting Error " As not target connected" in STM32 controller

    Hi,

    I have generate led blinking project for MDK ARM Keil uvision5.25 using STM32CUbeX IDE. 
    Project is compiled successfully with 0 error. 
    Getting Error " As not target connected" when i try to load the firmware as per attached images. 
    Connecting…