• 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...
  • RTX5 dynamic thread stack size
    Hi, Is possible to let RTX5 to automatically increase the memory stack of some thread to avoid stack overflow? I thought the "global dynamic memory size" in "system configuracion" was for this...
  • malloc and two dimensional array ( char * * )
    I want to allocate memory which I can use as a two dimensional array. But the following code is not working unsigned char xdata ** memo; unsigned char i = 0; // n is number of rows // size is number...
  • Malloc
    How do i use the 'malloc' function. Can someone give me an example.. Thanks in advance...
  • Malloc
    I'm using the MCBx51 V2.1 prototype Board with the Keil uVision2 software, but I have some problems with memory allocation. This is the code that i had typed. p = malloc (1000); if (p == NULL...