Hi friends, I am using Keil RVMDK 4.10 for Stellaris LM3S6965 micro-controller.
An exception error occurred when compiling Test.c file, which uses external "__attribute__((bitband))" structure.
Header file Test.h
typedef unsigned int uint32_t; //! @brief structure for bit mapped variables typedef struct __ST_BITBAND { uint32_t Bit0:1; //!< Bit 0 of the variable }ST_BITBAND __attribute__((bitband)); extern ST_BITBAND Var; // Var is externally declared #define Modbus_Flag Var.Bit0 // Assigned the name for bit 0 of Var
Source file Test.c
#include "Test.h" void Func(void) { Modbus_Flag = 1; // Set the Bit 0 of Var variable }
When I compile the Test.c, compiler gives Exception.
Please suggest me any work around for this.
Thanks, Kishore.
Keil support!