跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

Notes on iodefine RPDL.h when SCMR for RX62T is used in PDG2

Last Updated:06/14/2017

Question:

When I use SCMR for RX62T in PDG2, the definition of the BCP2 bit does not exist in iodefine_RPDL.h.

Answer:

iodefine_RPDL.h exists in the <i_src> folder in a project for RX62T generated by PDG2. In the iodefine_RPDL.h. file, the definition of the BCP2 bit in the SCMR register does not exist. To use BCP2, you need to change the iodefine_RPDL.h file.

Before modification, around line 5031 in iodefine_RPDL.h
union {
  unsigned char BYTE;
  struct {
   unsigned char :4;
   unsigned char SDIR:1;
   unsigned char SINV:1;
   unsigned char :1;
   unsigned char SMIF:1;
  } BIT;
 } SCMR;

 union {
unsigned char BYTE;
  struct {
   unsigned char BCP2:1;
   unsigned char :3;

   unsigned char SDIR:1;
   unsigned char SINV:1;
   unsigned char :1;
   unsigned char SMIF:1;
  } BIT;
} SCMR;

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
Code Generator
PDG