• Stack pointer gets corrupted
    At the beginning of main I have two variables, namely: unsigned char audioDataBuffer1[512]; unsigned char audioDataBuffer2[512]; Later in the code I use them as buffers for audio data from SD...
  • Advice on Pointer arithmetic please?
    Could anyone enlighten me on pointer arithmetic please? Assigning a constant is fine, but a warning is generated when using a variable. (The code does do what I expect though.) The warning is :...
  • Pointer conversion / arithmetic
    Hello, I am trying to create an address (memory model huge) by adding an offset to a base address: void test (unsigned short offset) { unsigned char *adr; adr = 0x120000 + (long) adr; } ...
  • Double precision maths library
    Has anyone any idea where I can get a double precision maths library which will work with the Keil C51 compiler.
  • Stack pointer gets corrupted in debugger
    Hi everyone I am usinng the NXP KL43L256Z4 Cortex M0+, compiler MDK-ARM uVision V5.25.2 When I am in a breakpoint, I change any register value (ex. R6 = 0xFFFFFF), in the next step the Stackpointer...