Skip to main content
Renesas Singapore - Knowledgebase

How can I give access to the register of peripheral modules using CC-RX ?

Latest Updated:10/29/2014


I'm using the CC-RX compiler. The program that I created is not capable of correct access to the registers of peripheral modules. How do I give the program access to these registers ?


Access to registers in a peripheral module must proceed in the correct unit (size of the register).
In addition, the registers must not be affected by build options.
If you created the register declaration in the C language, add the statements below.

#pragma bit_order
#pragma unpack
For details, refer to the iodefine.h file which is generated on creation of the project.

Suitable Products
CS+ (formerly CubeSuite+)
High-performance Embedded Workshop
C/C++ Compiler Package for RX Family