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

Code of downloaded startup routine is wrong(CC-RL)

Last Updated:06/28/2017

Question:

I am using RL78 Compiler CC-RL.

I set a value for on-chip debug operation permission in the on-chip debug option byte. However, when I downloaded to the E1 emulator and checked the disassembling result of the startup routine, cstart.asm, the directive was different from what I coded in cstart.asm.

Can you tell me a probable cause for this?

Answer:

The area where the program of cstart.asm is allocated and the area for debug monitor programs might overlap.

Confirm that the -DEBUG_MONITOR option is specified in the linker.
If it is not specified, specify the -DEBUG_MONITOR option and check the result.

For on-chip debugging, you must secure the area for debug monitor programs in addition to setting the on-chip debug option byte.

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family