• Pointer to stack variables
    I have a function that creates an instance of a structure on the users stack. The structure is called object and it is located at address 0xEFB0. boolean CAN1_read(ubyte mbx, CAN_MSG *msg) { ubyte...
  • Stack Pointer
    Hello... I need to do a malloc-like function in XDATA with stack-like characteristics . Please advise on where I can find information regarding the stack pointer that is inherent in the RAM of the...
  • Stack Pointers
    We are using our own developed RTOS, Our developed software is working fine up to optimization level 6, but when we change the level to 8, the software was not working. We observed that the stack pointer...
  • Modify the stack pointer for a memory check
    Hello everybody! I want to do an memory check on a XC16X board. My problem is, that I don't know how to check the stack? Can I copy the stack and move the pointer, or is there any other way to do that...
  • Pointer interpreted as a NULL pointer. Bug?
    I have a struture which is correctly allocated at address 0x4000 (read from the M66 file). The DPP0 is used by Keil to point to the NDATA memory chunk: DPP0 = 1 so the pointer to my struture, when...