This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RE:bad or irreducable absolute expression

While compiling the code, I get the following error
RTE/Device/nRF52832_xxAA/gcc_startup_nrf52.S(35): error: bad or irreducible absolute expression

I would like to insert a snapshot of the screen here. But cant.

its in gcc_startup_nrf52.S file

I know its more to a chip specific but I am sure keil will help me in resolving this hoe much ever possible.


#ifdef __STARTUP_CONFIG
#include "startup_config.h"
#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
#endif
#endif

    .section .stack
#if defined(__STARTUP_CONFIG)
    .align __STARTUP_CONFIG_STACK_ALIGNEMENT                here is the error
    .equ    Stack_Size, __STARTUP_CONFIG_STACK_SIZE
#elif defined(__STACK_SIZE)
    .align 3
    .equ    Stack_Size, __STACK_SIZE
#else
    .align 3
    .equ    Stack_Size, 8192
#endif
    .globl __StackTop
    .globl __StackLimit
__StackLimit:
    .space Stack_Size

Kindly help
Siddharth