Questions tagged [rl78]
11 questions
2
votes
0 answers
E2 Studio debugging
I have a problem debugging a simple file using E2 studio with CCRL toolchain. I am using E1 and the target device is the RL78/L13 80 Pins. I receive the following message
Error in final launch sequence
Failed to execute MI command:
target…

Benny-Ortiz
- 31
- 2
1
vote
2 answers
Where does LLVM translate UnreachableInst into abort function call?
I am searching where is UnreachableInst translated into _abort call.
Below is the story.
I'm currenly trying for Rust to be avaiable for Renesas RL78 target.
To end this, I got a LLVM source code from Open Source Tools for Renesas, and use that as a…

Mizunashi
- 313
- 1
- 7
1
vote
3 answers
static inline function in header file and misra c rule 8.5 problem
I'm using "IAR RL78" and "RL78-R5F10BGG" microcontroller. I also have enabled MISRA C 2004 in IAR.
I wanna define one of my functions as "inline". This inline function is supposed to be used in various c file. So I have defined the function in one…

Anmk
- 193
- 1
- 9
1
vote
0 answers
Embedded C , Renesas RL78, Transfer of data
I am trying to send 10-bit data from a Renesas MCU to another MCU. I am using 10-bit ADC, so the sensor data is in 10-bit format and then it is stored in a 2-byte variable. For example:
variable type:-
uint8_t data[2] = { 97, 65 };
uint8_t…

Murlidhar Roy
- 29
- 7
1
vote
0 answers
Hot Plug-in debug on RL78 - cannot stop execution
I'm trying to enable hot plug-in debug option on RL78 MCU by setting the HPIEN bit in the corresponding option byte.
When I attach the E1 debugger to the running target, I can use Live Watch to inspect the RAM variables, however, trying to break the…

Dmitry Grigoryev
- 3,156
- 1
- 25
- 53
1
vote
0 answers
Output Section With Split Address Range
On an RL78 there is a section of flash (0x2000) that is mirrored into the RAM address space (0xF2000). Jump tables must be in the mirrored code space. This is all so that it can use near pointers instead of far pointers.
The problem is that .text…

Graznarak
- 3,626
- 4
- 28
- 47
1
vote
1 answer
Pointer to a register on a 16 bit controller
How do you declare a pointer on a 16 bit Renesas RL78 microcontroller using IAR's EWB RL78 compiler to a register which has a 20 bit address?
Ex:
static int *ptr = (int *)0xF1000;
The above does not work because pointers are 16 bit addresses.

kamikazze
- 13
- 4
0
votes
1 answer
PC-LINT error 5448: token is not a valid binary operator in a preprocessor subexpression
today I wanna try analyze my source code via PC-LINT.
I configured PC lint for my compiler - RL78. And it seems like it works.
Meanwhile I added more files to analyze, and then I noticed one strange error.
error: 5448: token is not a valid binary…

raptor
- 1
- 2
0
votes
1 answer
Looking for IDE for PD78F0485 MCU (Renesas)
I cannot find an environment to work with PD78F0485 MCU.
It is RL78/Lx3. But I only see support for 78L1, 78L2, 78L3,.... but not for Lx3(this MCU).
Can you help me?
I tried with e2studio, CS++, IAR...

vcld
- 3
- 2
0
votes
0 answers
Can't create right alias to __saddr in IAR RL78 or it's a bug in optimization?
I think IAR loose __saddr atribute when creating alias
Assume we have SFR with next description:
__saddr __no_init volatile union
{
unsigned char P3;
__BITS8 P3_bit;
} @ 0xFFF03;
Now we want to use P3 indirect, by…

rl78family
- 1
- 1
0
votes
0 answers
Stack pointer in Assembly
I have a C exercise call a function from assembly. "Calculate perimeter of a triangle".
int a = 3, b = 4, c =5;
int Calculate_triangle(int a, int b, int c);
I have a code of Assembly here
PUSH HL
PUSH AX
MOVW AX, [HL]
ADDW AX, [HL+8]
ADDW AX,…

Quang Minh Lê
- 169
- 1
- 2
- 13