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

  • Pc lint error of include file

    Running PC-Lint...
    PC-lint for C/C++ (NT) Ver. 8.00o, Copyright Gimpel Software 1985-2004
    C:\StellarisWare2\boards\rdk-s2e\ser2enet\config.c(25,9): Error 322: Unable to open include file 'string.h'

  • How to fool the Linker?

    Hi,

    It's about the STM32F103ZE uC and Keil uVision4.

    As part of trying to deeply understand the Keil ARM tools I just like to 'fool' the linker to place code in a valid random flash memory location and have it executed after reset.

  • Why shows debugger incorrect address?

    Hi,

    I'm using Keil uVision.
    I need my application to start at address 0x08001000 and not on the flash base address 0x08000000.
    So I changed the R/O Base address in the Linker window to 0x08001000.

    After linking and starting debugging (CTL+F5…

  • modbus

    hello all,
    i am implementing HMI touchscreen communication with LPC2148 i.e ARM7 using MODBUS RTU HEX ADDRESS(master). i am writing multiple register using function code=0x10

    so query which i receive from HMI is as follows for address=0001 and writing…

  • How to execute a memory test?

    Hi,

    I'm using the STM32F103ZE uC developping in C and asked to implement a full internal ram memory test.
    The memory runs from address 0x2000 0000 up to 0x2000 FFFF.

    When main() is started allready the stackpointer and data are initialized so…