• Possible to create .ELF file?

    Is it possible to create an .ELF file from a Cortex M4 project (STM32F407, C++, uVision 4.60)?

    (I would like to test STM Studio - but unfortunately it does not like my AXF file - but it would also accept an ELF file).

  • Inline Assembler 64 bit addition?

    I was at first very happy to see that with ARMCC 5 now inline assembler works with the thumb mode of Cortex M4.

    Just I fail to program an efficient inline assembler routine for 64 bit addition (later I want to do overflow checking, therefore I need…

  • MDK4.54-STM32F4: Watch window TIM2...

    Hi,
    if I load the Blinky example program to MCBSTM32F400 demo board, then open the watch window, then I cannot watch any of the the APB1 peripherals (e. g. TIM2, TIM3, ...). I get the message <cannot evaluate> in the "Value" column.

  • static const 2D array gives Error L6220E

    Hello, my application is utilizing almost all RAM.

    Now i need to add a feature and for that i declare a 2D array:

    static const char * states[][2] =
                                      {
                                         {"st10","st20"},
           …

  • DAbt_Handler error but there is memory there

    Hi All,

    I'm trying to debug an LP2294 (using a ulink 2) with RTX and external SRAM.

    Most (not all) of the time it won't reset but crashes with a DAbt_handler error.
    So I look at R14 and it shows address 0x119FE inside the os_sys_manager:…

  • Further Trace wish from Trace fan

    Yesterday I tested my new ULINK pro, and I was really completely excited because of the great possibilities.

    I was impressed by many things.

    Concerning the window "Exception Trace" I have one further wish, which hopefully could be not too difficult…

  • Application won't start

    Hi,
    I'm trying to port and older RTX project which uses external SDRAM.
    But before it gets to main() I'm getting an Undef_handler error.
    When I single step I find that the error occurs at a specific point (address 0x2A4 below) at a DD instruction…

  • Adding bootloader binary to C project

    Hi all,

    I see this is a common problem, I am using uVision 4 with an ARM 7.

    I have a bootloader at location 0x0 and application code that is located at 0x800.
    I currently use HEX2BIN and BIN2HEX to merge the files before I can downloaded them to…

  • emWin Configuration with Memory allocation issue

    I am trying to write my own LCD driver with emWin, I use the GUIDRV_Template, and GUICC_1 Color conversion. When I called the GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER, COLOR_CONVERSION, 0, 0),
    the device get into a dead loop, I checked the assambly code…

  • Multiple "Next Statement" Arrows in Debug Session

    I'm working with some code running on an LPC2378-based board. I'm attempting to JTAG debug the target using uLink2. When I'm stepping through code, however, program flow doesn't seem to follow the path I think it should and multiple "next instruction…

  • StellarisWare, SW-RDK-S2E, Alignment

    This is an update to
    http://www.keil.com/forum/17840/

    \StellarisWare\third_party\lwip-1.3.1\src\include\lwip\opt.h

    /**
     * MEM_ALIGNMENT: should be set to the alignment of the CPU
     *    4 byte alignment -> #define MEM_ALIGNMENT 4
     *    2 byte alignment…

  • Linker List

    Hi,
    I'm using LPC2368 as my cpu.
    While I debug my target - I have the ability to watch Disassembly lines in mixed mode (C code & Assembly), this help me to find the location of every command in my C code.
    Because I create "Data Abort" trap error…

  • Ulink Pro vs Unink2

    Hi,
    I'm using LPC24xx & LPC23xx (Not Cortex) with Ulink2.
    I notice that the Ulink Pro have some more features to debug than Ulink2.
    In the features it say that they support LPC23xx but I can't found if they give all the features for debug - or…

  • MQX and Compiler Optimization

    I am using MDK ARM 4.23 compiling for the Freescale K60 micro using version 3.7 of the MQX operating system.

    If I use any compiler optimization setting other than Level 0 for any of the operating system, the BSP, the PSP, or my code ... the resulting…

  • How to reduce Interrupt-Jitter

    Hello to everyone.
    This is my Code:

    void FIQ_Handler(void) __irq
    {
    T1CLRI = 0x55; // T1CLRI is an 8-bit register.
                   // Writing any value to this register clears the Timer1 interrupt.
    
    GP4SET = 0x00040000;    //  P4.2 to "1" to see interupt…

  • FlashFS fdelete() - does it reclaim free space

    Hi All,

    I am using FlashFS (MDK-ARM V4.22) with an SPI FLASH (Atmel AT45DB321C) and STM32F207.

    My problem is that when I delete files using fdelete() the free space (as reported by ffree()) is _never_ recovered, even though the files disappear from…

  • UDP connection sample for RL-ARM

    Is there any UDP_connection_with_PC sample for RL-ARM and LPC1768 ?

    If I use \Keil\ARM\Boards\Keil\MCB1700\RL\TCPnet\LEDClient\ as base for my test, then I can read UDP message from PC at udp_callback, but I can't read anything on PC from udp_send…

  • How to rename a uVision4 project?

    Hi,

    many times i need to rename an existing project due to some derived project.

    I'm using the uVision4 IDE.

    Now I just create a new project and copy all sourcefiles and project settings which costs a lot of time.
    With other IDE's i just find…

  • problem with qsort

    Hi,

    When I use the C++ function qsort, it hangs when the data contains duplicated values.
    Here is an example

    unsigned char Array[] = {0,5,7,1,3,9,5};
    
    int BCompare(const void* a, const void* b)
    {
        return(*(u8*)a - *(u8*)b);
    }
    
    
    void main(void…

  • uvopt file corrupt after debug session

    I'm working with a board based on LPC3250 chip and my uvopt file is always bad after debugging session.

    I've found the following line in uvopt file :

          <TargetDriverDllRegistry>
            <SetRegEntry>
              <Number>0</Number>
        …

  • USB Suspend state

    Hi All,

    I develop the USB CDC firmware(Modify the sample code from ST) using STR912FAW44 and keil MDK.
    The Adum 4160 is added to implement the USB isolation. The pull up 1.5K resistor is tied to 3.3V. The firmware works proberly if the USB cable is…

  • DFU Bootloader cannot jump to application

    Hi All,

    I am using STR912FAW44 and keil MDK to develop the DFU bootloader. When the program jumps to Application, it hangs there. I set up a breakpoint before jump, I find it always goes to undefined handler. I wonder what causes to go to the undefined…

  • ARM Simulator: Reset Vector Address

    Hi,

    I try to simulate a target with code memory starting at 0x80000000 (LPC 2220). When I try to simulate, I get prefetch abort.

    How can I tell the simulator to start at 0x80000000?

    I tried "R15 = 0x80000000" in the ini file. That helps for the…

  • Upgraded from uVision 3 to 4 and now I get error A9932E

    I have a single user license for RealView MDK-ARM and used it with uVision 3 for several years. Now I upgraded to uVision 4 on my new computer. I uninstalled the license on the old machine and installed it on the new one. No problem...

    Except, now…

  • RL-TCPNet problem

    I am using RL-TCPNet for TCP/IP communication with the pc.
    The controller is STM32F107.
    SysTick timer is set for 10 mS.

    It works fine, until the pc would send a few messages in a succession without delay.
    In this case only one (last) message is received…