• C++ "class is too large" compilation error

    Pierre Roth
    Pierre Roth

    Hi,

    I've got a huge C++ class. When I compile it, the following error message occurs:
    error: class is too large
    I would like to know what this does exactly mean. Code too large, data too large ?
    What are the means to tackle this issue? I already…

    • over 10 years ago
    • Software Tools
    • Keil forum
  • Encryption Library Source Code in C for Keil Compiler

    Yogesh Gudekar
    Yogesh Gudekar

    I am looking for the following Encryption Library Source Code in C for Keil Compiler and for ST10,ARM7, ARM9, Cortex-M3 family of microcontroller.

    1) Data Encryption Standard (DES)
    2) Advance Encryption Standard (AES)
    3) Triple DES
    4) RSA Public Key…

    • over 10 years ago
    • Software Tools
    • Keil forum
  • strtod return ptr not advanced if converted value =0

    Loren Amelang
    Loren Amelang

    This code has worked for years in C51:

    -----
    CmdParm[CmdCnt / 2] = strtod(ParamBuf, &rPos);  // get a number
    // returns with rPos pointing to the next unconverted char in the ParamBuf
    if(rPos > ParamBuf)  // if something was converted
       CmdCnt +=…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • How to write datum more than 128 byte in on-chip flash?

    lin li
    lin li

    hello everyone: I have a question.

    I have an const array ,and its length is 142 words(284 bytes).I locate the array to the adress 0xC1F000,and I will write the on-chip flash to renew the array in my appliance.

    But I found that the XC167CI can only…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • Flash: /BHE active while /RD is active and /WR inactive - is it OK?

    Nikolay Baklanov
    Nikolay Baklanov

    Hello!

    The board is built on C167CS crystal, with external RAM and flash at two separate (with individual /CS) 16-bit non-multiplexed buses. The flash is split into two 8-bit-data chips, the WRCFG is set to have normal configuration of /WR and /BHE…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • No linker-warning when there is an overlapping of code

    Josef Aspelmayr
    Josef Aspelmayr

    Hello,

    I use the RENAMECLASS-command to define a BOOT_CODE-class.

    When I create the following classes:

    ICODE (0xC00200-0xC002ff), BOOT_CODE (0xC00300-0xC017FF)..
    
    

    ..and I force the linker to set the startup-code to:

    SECTIONS (?C_STARTUP_CODE…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • minomon XC16x

    Andrew Jordan
    Andrew Jordan

    Hi

    I have been learning how to upload and download with the use of minimon xc16x tool.

    So far I have managed to upload the software by using the command:

    _connect
    _clearselections
    _addselection c00000,c05E10
    _upload
    _save test1.hex

    From C00000…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Class B Illegal word operand access trap, how do I debug

    Oliver Sedlacek
    Oliver Sedlacek

    I'm getting Class B Illegal word operand access trap on a C161 board and I don't know why. The problem is reproducable, but moves unpredicatably as I modify the code. My trap handler spits out the top three stack entries, but they don't look credible…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Troubles with compiling expressions with static_cast (C++) in newer Keil IDE

    Nikolay Baklanov
    Nikolay Baklanov

    Hallo, All!

    These days I have migrated to newer Keil IDE version and found my older C++ project can not be compiled anymore. The IDE is installed and licenced correctly. If I return back to older version, everything is being compiled just perfectly…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Is there any way to eleminate the splash screen on uV3?

    Marcus Boege
    Marcus Boege

    Hi all,
    I found a related Topic on uV2 (http://www.keil.com/forum/docs/thread9355.asp). Unfortunally no practicable solution can be found there.

    Is there any Registry Switch etc. on uV3/WinXP?

    Best Regards,
    Marcus

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Can T3IN (P3.6) be used as external interrupt pin in C16x?

    Nikolay Baklanov
    Nikolay Baklanov

    Hello All,

    I have a short question, since got confused with "User's Manual, V2.0, Jul-2000, CS167CS Derivatives".

    I have to use either P3.6 or P3.7 as general purpose external interrupt input. As per pin T2IN, the manual clearly stated…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Setting Port Bit with ARTX

    Marco Cortecchia
    Marco Cortecchia

    I'm writing a library to set a Port BIT , that can be used on ARTX for xc167 . I use a function with parameters "PortAddr" and "PortBit" :

    *(PortAddr) |= ( 1<<PortBit );

    and analog function for Clear the bit .
    This function…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • C166; RAM slower than ROM

    Jo Leeuwesteijn
    Jo Leeuwesteijn

    Hi all,

    This problem has been on hold for a while but a collegue of mine is looking at it again:
    Our app is running from flash but we want to run it from RAM (in case we would have performance issues). RAM has less wait states. What we see on the scope…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Feature request: errors/warnings to standar error (stderr)

    Jo Leeuwesteijn
    Jo Leeuwesteijn

    Feature request:
    Our Keil C166 compiler does not make a distinction between standard output or standard error. It would be nice if error/warning messages would be displayed on standard error. This make it easier to redirect output, handle logging in…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Edge based vs.level based interrupt

    Jo Leeuwesteijn
    Jo Leeuwesteijn

    Hi all,

    The C167 has edge based external interrupts (programmable to rising/falling/both). Does anybody have a reference to info on how to interface it with a level based interrupt device (e.g. an external multi-port UART)? When you OR several interrupt…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Interrupt vector redirection problems

    Aw  S
    Aw S

    Hello! I use XC167CI and wrote bootloader described in C166: SHARE INTERRUPT VECTOR WITH BOOT LOADER http://www.keil.com/support/docs/2881.htm
    Differences with my code are:

    VEC_SEG  EQU 192
    VEC_OFF  EQU 4000H
    

    my irq_redir.a66 consist of

    ?PR?irq8…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • strtod()

    Marcus Boege
    Marcus Boege

    Hi,
    I've got a problem with strtod() from the stdlib and I still don't get it. I cannot find the mistake.

    Using the example from the online-help

    void tst_strtod (void) {
      float f;
      char s [] = "1.23 other";
      char *p;
    
      f = strtod (s,…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Link Error

    YoongGoog Cho
    YoongGoog Cho

    Hello!
    I got some error messages during linking procedure as below.

    linking...
    *** ERROR L110: CANNOT FIND SECTION OR REGBANK SECTION: ?PR?PFLASH CLASS: FLASH_CODE
    *** ERROR L127: UNRESOLVED EXTERNAL SYMBOL SYMBOL: _PR_PFLASH_s_ MODULE: MAIN.obj (MAIN…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Performance, PEC, ROM/flash -> RAM

    Jo Leeuwesteijn
    Jo Leeuwesteijn

    Hi all,

    Situation:
    Our code was running from flash, data was stored in RAM. Because of a faster processor we're going to get, we changed the startup so code gets copied to RAM and everything is running from RAM.

    We also have a PEC transfer for…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Stack problems

    Paul Blackmore
    Paul Blackmore

    I am running this code on an XC161

    #include <stdlib.h>
    #include <string.h>
    
    #define WIN_MAXTEXT         128
    #define WIN_TEXTLEN         21
    
    typedef struct {
      int count;
      int top;
      char caption[WIN_TEXTLEN+1];
      char lines[WIN_MAXTEXT][WIN_TEXTLEN+1…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Strange reset state (WDTCON) on watchdog reset

    Jo Leeuwesteijn
    Jo Leeuwesteijn

    Hi all,

    Our app tests the watchdog by not servicing the watchdog but also setting a magic flag in RAM to see if the reset was caused by the test or for real.

    I made a small test app to test watchdog behaviour and when I enter a while(1); I do get a…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Clear Memory section of start166.a66

    Yogesh Gudekar
    Yogesh Gudekar

    Hi all,
    i am using ST10.
    i like to know following thing. if someone having data for it please send.
    1) How Clear Memory section logic of start166.a66 works.
    2) Who initialized veriable ?C_CLRMEMSECSTART and how it get utilized in all logic?
    3) Can i…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • L166 map file

    Jo Leeuwesteijn
    Jo Leeuwesteijn

    Hi all,

    We're using a rather old development kit (3.x) for our project.

    1) Our current map-files do not give a summary of the total code/data size unfortunatly. Does the new linker (6.x?) produce more map-file output, including this info? It would…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • bit type

    Jo Leeuwesteijn
    Jo Leeuwesteijn

    Hi all,

    Is it possible to print bit types using:

    bit bitvalue;
    bitvalue = funcReturningBitType();
    sprintf(g_SIOString, "bit = %u\n", bitvalue);
    String_to_serial_port(g_SIOString);
    
    The function reads a sbit. When I do this, it prints "bit…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • A question about code optimization

    Tamir Michael
    Tamir Michael

    Hello all,
    I am experiencing problems with the following piece of code:

    lp_R0 = g_tcb[g_running_task].r0_ptr ;

    // restoring next task settings
    __asm
    {
    MOV R15, lp_R0
    MOV R0, [R15]
    POP R15
    POP R14
    .
    .
    All the compiler's optimizations…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • View related content from anywhere
  • More
  • Cancel
<>