• RE: how to emit arbitary string to asm output in C code?

    Westonsupermare Pier
    Westonsupermare Pier

    Presumably this loses the naming you want

       foo:
    
    investigation_ procedures();
    
       bar:
    

    • over 3 years ago
    • Software Tools
    • Keil forum
  • SPI source code

    Avital BarShlomo
    Avital BarShlomo

    Hi,

    Does any one have a C source code for a master-SPI communication?
    I am NOT using any SPI hardware in my uC.

    Avital Bar-Shlomo

    • over 19 years ago
    • Software Tools
    • Keil forum
  • RE: Modify Startup Code

    Chris Wunderlich
    Chris Wunderlich

    When you select the file "Start_v2.a66" then look at the bottom of the file just below the horizontal scroll bar and you will find two tabs. Just select the tab "Configuration Wizard"

    • over 13 years ago
    • Software Tools
    • Keil forum
  • RE: How to make an interruptable code sequence in C?

    Christoph Franck
    Christoph Franck

    An interesting article. However, I'm not quite sure that every description is correct. On page 2, right side, it states that the loop

    for (i=0; i<BUF_SIZE; i++)
    buffer[i] = 0;
    

    does not have any side effects - but modifying _any_ object is…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • Compiler assumes array addresses are aligned for structs declared with __attribute__((packed))

    David Yao
    David Yao

    If I have a struct declared like the following:

    volatile struct {
        uint8_t foo;
        int16_t bar[1];
    } __attribute__((packed)) foobar;
    

    The code emitted uses LDRSH to access bar[0] and causes a hardfault at runtime. But If I were to declared it…

    • over 4 years ago
    • Software Tools
    • Keil forum
  • RE: Locating C code

    Thomas Brandl
    Thomas Brandl

    Use a linker control. Please read the Macro Assembler and Utilities User Guide, chapter 9 for further details.

    E.g. if you want to place function foo() in file bar.c at 0x0200, the control is ?PR?foo?bar(0200h).

    Thomas

    • over 13 years ago
    • Software Tools
    • Keil forum
  • RE: how to read/write to compact flash card

    Bala K
    Bala K

    i wish to use the Compact Flash Card for a presure scanner data logging system. i need to know how to interface 8051 & Compact Flash Card. this card i shall leter be inserting into a PC-CF reader & take the data on to a PC.
    pls help me with protocols…

    • over 17 years ago
    • Software Tools
    • Keil forum
  • RE: Locating Code

    Jay Daniel
    Jay Daniel

    You'd do this by sending a CODE() directive to the linker. For instance, if you had a file named BAR.C with a function FOO() in it, you'd specify:

    CODE(?PR?FOO?BAR(0xXXXX))

    where 0xXXXX is the memory address you want the function located…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • RE: 2input serial port with 8051

    Khawla Mohamed
    Khawla Mohamed

    I have a problem only on Rx (bar code reader and RF resivier).
    At TX we have only RF transmitter

    Thanks

    • over 12 years ago
    • Software Tools
    • Keil forum
  • RE: "Out of scope" variables on debug

    Reza_ab
    Reza_ab

    The optimizer removed the variable bar since you do not do anything with it. It is initialized but left unused, so all code related to the variable is removed.

    You can either

    • Do something with the variable.
    • Declare the variable as volatile, which stops…
    • over 1 year ago
    • Software Tools
    • Keil forum
<>