• Calculating the Stack Space and the code size
    1) Is there any method of determining whether the stack space allocated is enough for the program execution. 2) Is there any feature in UVision 2 to determing the code size generated by the hex file...
  • Calculation of stack sizes...
    Hallo I wonder if there are any good methodes of calculating the stack size for ex user or IRQ stack size? Is there any "best practice"? Or is it just add up the size of data structures and/ot...
  • Program size calculation
    Hello all, I am a little confused: The generated HEX file size of my program is double the size of the sum of all program conponents as they appear in the generated memory map. How can this be? ...
  • Auto calculation of array size
    Dear all, For some reason, I need to declare an array like that #define STRING2_DESCRIPTOR_LENGTH 16 BYTE code product_string_descriptor[] = { STRING2_DESCRIPTOR_LENGTH, 0x03, 'U', 0x00, 'S...
  • dynamic array size calculation
    config.h: ========= #define STRING 0x03 #define USB_MANUFACTURER_NAME {'T'<<8, 'E'<<8, 'S'<<8, 'T'<<8, '1'<<8} #define USB_MN_LENGTH 5 // (sizeof(USB_MANUFACTURER_NAME) >> 1) usb_enum.h: ======= struct...