• about the pointer point to the function
    Hi: I want to build an array that contain the pointer of some function in our program. a simulated example is as below //claim two function int x(void); int y (void); main() { int *(p)(void...
  • debugger pointing to wrong code lines
    Hi, I need some help figuring out some bizarre behavior with the uVision debug environment. If I set a breakpoint in the following code, the debugger stops at the line labeled --BP-- for any and...
  • Pointer stored in wrong code class.
    Can anyone tell me why the following code for the C167 will place the pointer in either the NDATA0 class or the XDATA0 class depending on which line is uncommented? typedef struct { short type;...
  • Wrong data on UART2
    Hi, I have an STTM32F103C8 MCU ("Blue pill") board. What I write to UART1 goes well to he PC. But if I try send data over UART2 only some of the sent characers appear on the PC. You can see he...
  • How to make a pointer point to a constant string in RAM
    I'm using Keil3 for arm. 1\I wanna change the string's content,eg from "2007" to "2008" 2\I wanna a pointer ,not a array,to point to the string. But when I do as follows: char *ptr = "2007"; ptr...