Browse Source

save

development
gudae 2 days ago
parent
commit
f5dfae3549
  1. BIN
      DefaultBuild/app_cmd_parser.obj
  2. BIN
      DefaultBuild/app_owi_service.obj
  3. BIN
      DefaultBuild/app_result.obj
  4. BIN
      DefaultBuild/app_scheduler.obj
  5. BIN
      DefaultBuild/delay.obj
  6. BIN
      DefaultBuild/dipSwitch.obj
  7. BIN
      DefaultBuild/gatectrl.obj
  8. BIN
      DefaultBuild/i2c.obj
  9. BIN
      DefaultBuild/multical.abs
  10. 4
      DefaultBuild/multical.clnk
  11. 564
      DefaultBuild/multical.map
  12. 3286
      DefaultBuild/multical.mot
  13. BIN
      DefaultBuild/owi.obj
  14. BIN
      DefaultBuild/r_cg_cgc.obj
  15. BIN
      DefaultBuild/r_cg_cgc_user.obj
  16. BIN
      DefaultBuild/r_cg_port.obj
  17. BIN
      DefaultBuild/r_cg_port_user.obj
  18. BIN
      DefaultBuild/r_cg_serial.obj
  19. BIN
      DefaultBuild/r_cg_serial_user.obj
  20. BIN
      DefaultBuild/r_cg_wdt.obj
  21. BIN
      DefaultBuild/r_cg_wdt_user.obj
  22. BIN
      DefaultBuild/r_main.obj
  23. BIN
      DefaultBuild/r_systeminit.obj
  24. BIN
      DefaultBuild/uart.obj
  25. 67
      QualityReport(multical,DefaultBuild).txt
  26. 82
      multical.mtpj
  27. 37
      multical.rcpe
  28. 94
      multical.temp.mtud
  29. 2
      r_cg_cgc.c
  30. 2
      r_cg_cgc.h
  31. 2
      r_cg_cgc_user.c
  32. 2
      r_cg_macrodriver.h
  33. 2
      r_cg_port.c
  34. 2
      r_cg_port.h
  35. 2
      r_cg_port_user.c
  36. 2
      r_cg_serial.c
  37. 2
      r_cg_serial.h
  38. 87
      r_cg_serial_user.c
  39. 2
      r_cg_userdefine.h
  40. 6
      r_cg_wdt.c
  41. 2
      r_cg_wdt.h
  42. 15
      r_cg_wdt_user.c
  43. 76
      r_main.c
  44. 4
      r_systeminit.c

BIN
DefaultBuild/app_cmd_parser.obj

Binary file not shown.

BIN
DefaultBuild/app_owi_service.obj

Binary file not shown.

BIN
DefaultBuild/app_result.obj

Binary file not shown.

BIN
DefaultBuild/app_scheduler.obj

Binary file not shown.

BIN
DefaultBuild/delay.obj

Binary file not shown.

BIN
DefaultBuild/dipSwitch.obj

Binary file not shown.

BIN
DefaultBuild/gatectrl.obj

Binary file not shown.

BIN
DefaultBuild/i2c.obj

Binary file not shown.

BIN
DefaultBuild/multical.abs

Binary file not shown.

4
DefaultBuild/multical.clnk

@ -18,6 +18,8 @@
-Input=DefaultBuild\app_cmd_parser.obj
-Input=DefaultBuild\app_scheduler.obj
-Input=DefaultBuild\app_owi_service.obj
-Input=DefaultBuild\r_cg_wdt.obj
-Input=DefaultBuild\r_cg_wdt_user.obj
-SECURITY_ID=00000000000000000000
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF
-DEBug
@ -26,7 +28,7 @@
-OUtput=DefaultBuild\multical.abs
-OCDBG=84
-DEBUG_MONITOR=3FE00-3FFFF
-USER_OPT_BYTE=E9FFF8
-USER_OPT_BYTE=78FFF8
-OCDTR
-LISt=DefaultBuild\multical.map
-SHow=SYmbol,Total_size

564
DefaultBuild/multical.map

@ -1,4 +1,4 @@
Renesas Optimizing Linker (W3.07.00 ) 30-Mar-2026 12:53:32
Renesas Optimizing Linker (W3.07.00 ) 09-Apr-2026 15:22:46
*** Options ***
@ -23,6 +23,8 @@ Renesas Optimizing Linker (W3.07.00 ) 30-Mar-2026 12:53:32
-Input=DefaultBuild\app_cmd_parser.obj
-Input=DefaultBuild\app_scheduler.obj
-Input=DefaultBuild\app_owi_service.obj
-Input=DefaultBuild\r_cg_wdt.obj
-Input=DefaultBuild\r_cg_wdt_user.obj
-SECURITY_ID=00000000000000000000
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF
-DEBug
@ -31,7 +33,7 @@ Renesas Optimizing Linker (W3.07.00 ) 30-Mar-2026 12:53:32
-OUtput=DefaultBuild\multical.abs
-OCDBG=84
-DEBUG_MONITOR=3FE00-3FFFF
-USER_OPT_BYTE=E9FFF8
-USER_OPT_BYTE=78FFF8
-OCDTR
-LISt=DefaultBuild\multical.map
-SHow=SYmbol,Total_size
@ -68,13 +70,13 @@ SECTION START END SIZE ALIGN
.data
000000d8 00000918 841 2
.text
00000919 00000acd 1b5 1
00000919 00000ac9 1b1 1
.const
00003000 00003625 626 2
.textf
00003626 00007204 3bdf 1
00003626 00007263 3c3e 1
.SLIB
00007205 00009b0d 2909 1
00007264 00009b6c 2909 1
.monitor2
0003fe00 0003ffff 200 1
.bss
@ -90,7 +92,7 @@ SECTION START END SIZE ALIGN
RAMDATA SECTION: 00003bf9 Byte(s)
ROMDATA SECTION: 00001113 Byte(s)
PROGRAM SECTION: 0000669d Byte(s)
PROGRAM SECTION: 000066f8 Byte(s)
*** Symbol List ***
@ -120,7 +122,7 @@ FILE=rlink_generates_02
SECTION=.data
FILE=DefaultBuild\r_main.obj
000000d8 000008fa 823
000000d8 000008fb 824
FILE=DefaultBuild\owi.obj
000008fc 00000908 d
FILE=DefaultBuild\i2c.obj
@ -140,38 +142,38 @@ FILE=DefaultBuild\cstart.obj
_atexit
0000098b 0 none ,g *
FILE=DefaultBuild\r_cg_serial_user.obj
0000098c 00000acd 142
0000098c 00000ac9 13e
_r_uart0_interrupt_receive@1
0000098c 61 func ,l *
0000098c 5f func ,l *
_r_uart0_interrupt_send@1
000009ed 2f func ,l *
000009eb 2f func ,l *
_r_uart1_interrupt_receive@1
00000a1c 61 func ,l *
00000a1a 5f func ,l *
_r_uart1_interrupt_send@1
00000a7d 2f func ,l *
00000a79 2f func ,l *
_r_iica0_interrupt@1
00000aac 22 func ,l *
00000aa8 22 func ,l *
SECTION=.const
FILE=DefaultBuild\r_main.obj
00003000 00003440 441
_nvm_read_cmd@8@execute_write_coeff_sequence@1
_nvm_read_cmd@9@execute_write_coeff_sequence@1
0000342a 3 data ,l *
_cmd_nvm_read@16@execute_shadow_write_copy_nvm_sequence@1
_cmd_nvm_read@17@execute_shadow_write_copy_nvm_sequence@1
0000342d 3 data ,l *
_cmd_15_0000@15@execute_shadow_write_copy_nvm_sequence@1
_cmd_15_0000@16@execute_shadow_write_copy_nvm_sequence@1
00003430 3 data ,l *
_cmd_crc_42@14@execute_shadow_write_copy_nvm_sequence@1
_cmd_crc_42@15@execute_shadow_write_copy_nvm_sequence@1
00003433 3 data ,l *
_cmd_crc_40@13@execute_shadow_write_copy_nvm_sequence@1
_cmd_crc_40@14@execute_shadow_write_copy_nvm_sequence@1
00003436 3 data ,l *
_cmd_1a@12@execute_shadow_write_copy_nvm_sequence@1
_cmd_1a@13@execute_shadow_write_copy_nvm_sequence@1
00003439 1 data ,l *
_cmd_14@11@execute_shadow_write_copy_nvm_sequence@1
_cmd_14@12@execute_shadow_write_copy_nvm_sequence@1
0000343a 1 data ,l *
_cmd_15_3c5b@10@execute_shadow_write_copy_nvm_sequence@1
_cmd_15_3c5b@11@execute_shadow_write_copy_nvm_sequence@1
0000343b 3 data ,l *
_cmd_crc_44@9@execute_shadow_write_copy_nvm_sequence@1
_cmd_crc_44@10@execute_shadow_write_copy_nvm_sequence@1
0000343e 3 data ,l *
FILE=DefaultBuild\owi.obj
00003442 000034fb ba
@ -192,501 +194,511 @@ FILE=DefaultBuild\stkinit.obj
LSTINIT3
00003669 0 none ,l *
FILE=DefaultBuild\r_main.obj
0000366a 000055ab 1f42
0000366a 00005658 1fef
_RS485_Bridge_Push
0000366a 2b func ,g *
_RS485_Bridge_ResetFifo@1
00003695 e func ,l *
_app_startup_guard_delay@1
000036a3 28 func ,l *
_app_clear_uart_runtime_state@1
000036cb 4d func ,l *
_app_runtime_reset@1
000036a3 c func ,l *
00003718 c func ,l *
_rs485_abort_and_reset_pipeline@1
000036af 29 func ,l *
00003724 29 func ,l *
_RS485_Bridge_ReadLine@1
000036d8 91 func ,l *
0000374d 91 func ,l *
_Is_V_Response_For@1
00003769 40 func ,l *
000037de 40 func ,l *
_UART1_WaitTxIdle@1
000037a9 2c func ,l *
0000381e 2c func ,l *
_UART1_SendString_Safe@1
000037d5 39 func ,l *
0000384a 39 func ,l *
_RS485_Bridge_DrainToPC@1
0000380e 4d func ,l *
00003883 4d func ,l *
_hex2byte@1
0000385b 56 func ,l *
000038d0 56 func ,l *
_is_long_owi_read_len@1
000038b1 13 func ,l *
00003926 13 func ,l *
_do_stable_owi_read@1
000038c4 99 func ,l *
00003939 99 func ,l *
_parse_x_prefix@1
0000395d 153 func ,l *
000039d2 153 func ,l *
_OUT_PRINT@1
00003ab0 d func ,l *
00003b25 d func ,l *
_send_end_response@1
00003abd 7 func ,l *
00003b32 7 func ,l *
_parse_x_v_cmd@1
00003ac4 57 func ,l *
00003b39 57 func ,l *
_send_n_response@1
00003b1b 2b func ,l *
00003b90 2b func ,l *
_parse_x_o_cmd@1
00003b46 57 func ,l *
00003bbb 57 func ,l *
_send_v_response@1
00003b9d 3f func ,l *
00003c12 3f func ,l *
_UART0_WaitTxDone_Flag@1
00003bdc 3f func ,l *
00003c51 3f func ,l *
_RS485_FlushJunk@1
00003c1b 1b func ,l *
00003c90 1b func ,l *
_PC_PrintLine_CRLF@1
00003c36 81 func ,l *
00003cab 81 func ,l *
_scan_one_addr_rs485@1
00003cb7 119 func ,l *
00003d2c 119 func ,l *
_build_line_from_rx@1
00003dd0 63 func ,l *
00003e45 63 func ,l *
_detect_protocol@1
00003e33 37 func ,l *
00003ea8 37 func ,l *
_cmd_unknown@1
00003e6a 10 func ,l *
00003edf 10 func ,l *
_print_owi_write_result@1
00003e7a 5a func ,l *
00003eef 5a func ,l *
_print_owi_read_result@1
00003ed4 d5 func ,l *
00003f49 d5 func ,l *
_run_connect_verify_one_channel@1
00003fa9 1a8 func ,l *
0000401e 1a8 func ,l *
_print_connect_sweep_result@1
00004151 52 func ,l *
000041c6 52 func ,l *
_execute_connect_verify_sequence@1
000041a3 9f func ,l *
00004218 9f func ,l *
_execute_direct_read_sequence@1
00004242 17d func ,l *
000042b7 17d func ,l *
_execute_write_coeff_sequence@1
000043bf 1f6 func ,l *
00004434 1f6 func ,l *
_execute_shadow_write_copy_nvm_sequence@1
000045b5 59a func ,l *
0000462a 59a func ,l *
_execute_owi_service_from_job@1
00004b4f 11e func ,l *
00004bc4 11e func ,l *
_forward_line_rs485_and_bridge@1
00004c6d 208 func ,l *
00004ce2 208 func ,l *
_process_cmd@1
00004e75 6d func ,l *
00004eea 6d func ,l *
_process_cmd_by_prefix@1
00004ee2 11 func ,l *
00004f57 11 func ,l *
_process_one_line_now@1
00004ef3 43b func ,l *
00004f68 43b func ,l *
_process_one_line@1
0000532e 98 func ,l *
000053a3 98 func ,l *
_app_runtime_try_start@1
000053c6 1a func ,l *
0000543b 1a func ,l *
_app_job_tick@1
000053e0 cb func ,l *
00005455 cb func ,l *
_handle_uart_command_line
000054ab 7b func ,g *
00005520 9c func ,g *
_main
00005526 6f func ,g *
000055bc 91 func ,g *
_R_MAIN_UserInit
00005595 17 func ,g *
0000564d c func ,g *
FILE=DefaultBuild\r_systeminit.obj
000055ac 000055ec 41
00005659 0000569d 45
_R_Systeminit
000055ac 3a func ,g *
00005659 3e func ,g *
_hdwinit
000055e6 7 func ,g *
00005697 7 func ,g *
FILE=DefaultBuild\r_cg_cgc.obj
000055ed 00005616 2a
0000569e 000056c7 2a
_R_CGC_Create
000055ed 2a func ,g *
0000569e 2a func ,g *
FILE=DefaultBuild\r_cg_cgc_user.obj
00005617 00005619 3
000056c8 000056ca 3
_R_CGC_Get_ResetSource
00005617 3 func ,g *
000056c8 3 func ,g *
FILE=DefaultBuild\r_cg_serial.obj
0000561a 000058fd 2e4
000056cb 000059ae 2e4
_R_SAU0_Create
0000561a 10 func ,g *
000056cb 10 func ,g *
_R_UART0_Create
0000562a 6e func ,g *
000056db 6e func ,g *
_R_UART0_Start
00005698 26 func ,g *
00005749 26 func ,g *
_R_UART0_Stop
000056be 1e func ,g *
0000576f 1e func ,g *
_R_UART0_Receive
000056dc 18 func ,g *
0000578d 18 func ,g *
_R_UART0_Send
000056f4 26 func ,g *
000057a5 26 func ,g *
_R_SAU1_Create
0000571a 10 func ,g *
000057cb 10 func ,g *
_R_UART1_Create
0000572a 6e func ,g *
000057db 6e func ,g *
_R_UART1_Start
00005798 26 func ,g *
00005849 26 func ,g *
_R_UART1_Stop
000057be 1e func ,g *
0000586f 1e func ,g *
_R_UART1_Receive
000057dc 18 func ,g *
0000588d 18 func ,g *
_R_UART1_Send
000057f4 26 func ,g *
000058a5 26 func ,g *
_R_IICA0_Create
0000581a 50 func ,g *
000058cb 50 func ,g *
_R_IICA0_Stop
0000586a 5 func ,g *
0000591b 5 func ,g *
_R_IICA0_StopCondition
0000586f 5 func ,g *
00005920 5 func ,g *
_R_IICA0_Master_Send
00005874 43 func ,g *
00005925 43 func ,g *
_R_IICA0_Master_Receive
000058b7 47 func ,g *
00005968 47 func ,g *
FILE=DefaultBuild\r_cg_serial_user.obj
000058fe 00005aa0 1a3
000059af 00005af4 146
_r_uart0_callback_receiveend@1
000058fe 5e func ,l *
000059af 1 func ,l *
_r_uart0_callback_softwareoverrun@1
0000595c 1 func ,l *
000059b0 1 func ,l *
_r_uart0_callback_sendend@1
0000595d 9 func ,l *
000059b1 9 func ,l *
_r_uart0_callback_error@1
00005966 5c func ,l *
000059ba 5c func ,l *
_r_uart1_callback_receiveend@1
000059c2 31 func ,l *
00005a16 31 func ,l *
_r_uart1_callback_softwareoverrun@1
000059f3 1 func ,l *
00005a47 1 func ,l *
_r_uart1_callback_sendend@1
000059f4 4 func ,l *
00005a48 4 func ,l *
_r_uart1_callback_error@1
000059f8 1 func ,l *
00005a4c 1 func ,l *
_iica0_masterhandler@1
000059f9 91 func ,l *
00005a4d 91 func ,l *
_r_iica0_callback_master_error@1
00005a8a 7 func ,l *
00005ade 7 func ,l *
_r_iica0_callback_master_receiveend@1
00005a91 8 func ,l *
00005ae5 8 func ,l *
_r_iica0_callback_master_sendend@1
00005a99 8 func ,l *
00005aed 8 func ,l *
FILE=DefaultBuild\r_cg_port.obj
00005aa1 00005af9 59
00005af5 00005b4d 59
_R_PORT_Create
00005aa1 59 func ,g *
00005af5 59 func ,g *
FILE=DefaultBuild\owi.obj
00005afa 00006293 79a
00005b4e 000062e7 79a
_GPIO_Clear
00005afa 12 func ,g *
00005b4e 12 func ,g *
_GPIO_Input
00005b0c 11 func ,g *
00005b60 11 func ,g *
_GPIO_Read
00005b1d 9 func ,g *
00005b71 9 func ,g *
_OWI_Release@1
00005b26 11 func ,l *
00005b7a 11 func ,l *
_GPIO_StrongDriveHighKick@1
00005b37 32 func ,l *
00005b8b 32 func ,l *
_GPIO_ForceHighKick
00005b69 8 func ,g *
00005bbd 8 func ,g *
_OWI_DriveLow@1
00005b71 12 func ,l *
00005bc5 12 func ,l *
_OWI_HasTimeout
00005b83 4 func ,g *
00005bd7 4 func ,g *
_OWI_ClearTimeout
00005b87 e func ,g *
00005bdb e func ,g *
_OWI_GetLastTimeoutByteIndex
00005b95 4 func ,g *
00005be9 4 func ,g *
_OWI_GetLastTimeoutBitIndex
00005b99 4 func ,g *
00005bed 4 func ,g *
_OWI_Init
00005b9d 1b func ,g *
00005bf1 1b func ,g *
_OWI_Start
00005bb8 17 func ,g *
00005c0c 17 func ,g *
_OWI_Stop
00005bcf 14 func ,g *
00005c23 14 func ,g *
_OWI_StopRead@1
00005be3 17 func ,l *
00005c37 17 func ,l *
_OWI_WaitForFallingEdge@1
00005bfa 4b func ,l *
00005c4e 4b func ,l *
_OWI_ReadByte_StreamSynced@1
00005c45 73 func ,l *
00005c99 73 func ,l *
_OWI_SecureStop
00005cb8 51 func ,g *
00005d0c 51 func ,g *
_OWI_WriteBit
00005d09 37 func ,g *
00005d5d 37 func ,g *
_OWI_WriteByte
00005d40 2a func ,g *
00005d94 2a func ,g *
_OWI_ReadBit
00005d6a af func ,g *
00005dbe af func ,g *
_OWI_ReadByte
00005e19 48 func ,g *
00005e6d 48 func ,g *
_OWI_T_ReadBytesAndPrint
00005e61 130 func ,g *
00005eb5 130 func ,g *
_owi_result_init@1
00005f91 21 func ,l *
00005fe5 21 func ,l *
_owi_result_latch_timeout@1
00005fb2 29 func ,l *
00006006 29 func ,l *
_OWI_T_CommandModeRaw
00005fdb 4d func ,g *
0000602f 4d func ,g *
_OWI_CommandModeRaw
00006028 4d func ,g *
0000607c 4d func ,g *
_OWI_ReadBytesRaw
00006075 bc func ,g *
000060c9 bc func ,g *
_OWI_disable
00006131 15 func ,g *
00006185 15 func ,g *
_OWI_T_CommandMode
00006146 26 func ,g *
0000619a 26 func ,g *
_OWI_CommandMode
0000616c 26 func ,g *
000061c0 26 func ,g *
_OWI_ReadBytesAndPrint
00006192 102 func ,g *
000061e6 102 func ,g *
FILE=DefaultBuild\i2c.obj
00006294 00006414 181
000062e8 00006468 181
_disable
00006294 26 func ,g *
000062e8 26 func ,g *
_I2C_EnablePower
000062ba 4 func ,g *
0000630e 4 func ,g *
_I2C_DisablePower
000062be 3 func ,g *
00006312 3 func ,g *
_I2C_T_Command_Mode_receiveData
000062c1 4d func ,g *
00006315 4d func ,g *
_I2C_Command_Mode_receiveData
0000630e 3e func ,g *
00006362 3e func ,g *
_I2C_Command_Mode_Send
0000634c c9 func ,g *
000063a0 c9 func ,g *
FILE=DefaultBuild\uart.obj
00006415 00006616 202
00006469 0000666a 202
_rs485_recover
00006415 56 func ,g *
00006469 56 func ,g *
_UART1_WaitTxIdle@1
0000646b 2c func ,l *
000064bf 2c func ,l *
_rs485_set_tx
00006497 b func ,g *
000064eb b func ,g *
_rs485_init
000064a2 c func ,g *
000064f6 c func ,g *
_UART0_WaitTxDone_Us
000064ae 2f func ,g *
00006502 2f func ,g *
_RS485_Send
000064dd 4a func ,g *
00006531 4a func ,g *
_RS485_SendString
00006527 11 func ,g *
0000657b 11 func ,g *
_uart_send_string
00006538 11 func ,g *
0000658c 11 func ,g *
_uart1_send_string
00006549 40 func ,g *
0000659d 40 func ,g *
_uart_send_hex
00006589 43 func ,g *
000065dd 43 func ,g *
_uart1_send_hex
000065cc 4b func ,g *
00006620 4b func ,g *
FILE=DefaultBuild\delay.obj
00006617 000066d5 bf
0000666b 00006729 bf
_delay
00006617 18 func ,g *
0000666b 18 func ,g *
_delay_us
0000662f 82 func ,g *
00006683 82 func ,g *
_delay_ms
000066b1 25 func ,g *
00006705 25 func ,g *
FILE=DefaultBuild\dipSwitch.obj
000066d6 000066e6 11
0000672a 0000673a 11
_DipSwitch_Init
000066d6 8 func ,g *
0000672a 8 func ,g *
_DipSwitch_ReadAddr_0to31
000066de 9 func ,g *
00006732 9 func ,g *
FILE=DefaultBuild\gatectrl.obj
000066e7 00006aaa 3c4
0000673b 00006afe 3c4
_Gate_SetByNum
000066e7 372 func ,g *
0000673b 372 func ,g *
_Cal_Init
00006a59 21 func ,g *
00006aad 21 func ,g *
_Eol_Init
00006a7a 21 func ,g *
00006ace 21 func ,g *
_GateCtrl_SelectChannel
00006a9b 10 func ,g *
00006aef 10 func ,g *
FILE=DefaultBuild\app_result.obj
00006aab 00006ab4 a
00006aff 00006b08 a
_app_result_print_ok
00006aab 5 func ,g *
00006aff 5 func ,g *
_app_result_print_err
00006ab0 5 func ,g *
00006b04 5 func ,g *
FILE=DefaultBuild\app_cmd_parser.obj
00006ab5 00006f26 472
00006b09 00006f7a 472
_parse_x_v_addr@1
00006ab5 62 func ,l *
00006b09 62 func ,l *
_find_payload_pos@1
00006b17 1b func ,l *
00006b6b 1b func ,l *
_hex_nibble@1
00006b32 31 func ,l *
00006b86 31 func ,l *
_hex_pair_to_u8@1
00006b63 2f func ,l *
00006bb7 2f func ,l *
_app_cmd_parse_line
00006b92 395 func ,g *
00006be6 395 func ,g *
FILE=DefaultBuild\app_scheduler.obj
00006f27 00006fc2 9c
00006f7b 00007016 9c
_app_scheduler_init
00006f27 15 func ,g *
00006f7b 15 func ,g *
_app_scheduler_push
00006f3c 38 func ,g *
00006f90 38 func ,g *
_app_scheduler_pop
00006f74 31 func ,g *
00006fc8 31 func ,g *
_app_scheduler_is_empty
00006fa5 9 func ,g *
00006ff9 9 func ,g *
_app_scheduler_clear
00006fae 15 func ,g *
00007002 15 func ,g *
FILE=DefaultBuild\app_owi_service.obj
00006fc3 00007204 242
00007017 00007258 242
_app_owi_from_raw@1
00006fc3 86 func ,l *
00007017 86 func ,l *
_is_long_owi_read@1
00007049 15 func ,l *
0000709d 15 func ,l *
_looks_bad_tail@1
0000705e 5c func ,l *
000070b2 5c func ,l *
_looks_bad_last_bytes@1
000070ba 48 func ,l *
0000710e 48 func ,l *
_needs_retry_for_long_read@1
00007102 3a func ,l *
00007156 3a func ,l *
_app_owi_read_basic
0000713c 6f func ,g *
00007190 6f func ,g *
_app_owi_write_basic
000071ab 2d func ,g *
000071ff 2d func ,g *
_app_owi_write_t_basic
000071d8 2d func ,g *
0000722c 2d func ,g *
FILE=DefaultBuild\r_cg_wdt.obj
00007259 00007263 b
_R_WDT_Create
00007259 7 func ,g *
_R_WDT_Restart
00007260 4 func ,g *
SECTION=.SLIB
FILE=isdigit
00007205 0000720e a
00007264 0000726d a
_isdigit
00007205 0 none ,g *
00007264 0 none ,g *
FILE=memcmp
0000720f 00007220 12
0000726e 0000727f 12
_memcmp
0000720f 0 none ,g *
0000726e 0 none ,g *
FILE=memcpy
00007221 00007230 10
00007280 0000728f 10
_memcpy
00007221 0 none ,g *
00007280 0 none ,g *
FILE=memset
00007231 0000723e e
00007290 0000729d e
_memset
00007231 0 none ,g *
00007290 0 none ,g *
FILE=sprintf
0000723f 00007337 f9
0000729e 00007396 f9
_sprintf
0000723f e1 func ,g *
0000729e e1 func ,g *
__REL_sp@1
00007320 18 func ,l *
0000737f 18 func ,l *
FILE=strchr
00007338 00007345 e
00007397 000073a4 e
_strchr
00007338 0 none ,g *
00007397 0 none ,g *
FILE=strcpy
00007346 00007352 d
000073a5 000073b1 d
_strcpy
00007346 0 none ,g *
000073a5 0 none ,g *
FILE=strlen
00007353 0000735d b
000073b2 000073bc b
_strlen
00007353 0 none ,g *
000073b2 0 none ,g *
FILE=strncpy
0000735e 00007371 14
000073bd 000073d0 14
_strncpy
0000735e 0 none ,g *
000073bd 0 none ,g *
FILE=strstr
00007372 00007390 1f
000073d1 000073ef 1f
_strstr
00007372 0 none ,g *
000073d1 0 none ,g *
FILE=toupper
00007391 0000739e e
000073f0 000073fd e
_toupper
00007391 0 none ,g *
000073f0 0 none ,g *
FILE=_REL_print
0000739f 000092f6 1f58
000073fe 00009355 1f58
__REL_print
0000739f 1046 func ,g *
000073fe 1046 func ,g *
__REL_fltprn@1
000083e5 941 func ,l *
00008444 941 func ,l *
__REL_henkan1@1
00008d26 28 func ,l *
00008d85 28 func ,l *
__REL_henkan2@1
00008d4e 33 func ,l *
00008dad 33 func ,l *
__REL_pri@1
00008d81 298 func ,l *
00008de0 298 func ,l *
__REL_fltgeti@1
00009019 19d func ,l *
00009078 19d func ,l *
__REL_inmod@1
000091b6 141 func ,l *
00009215 141 func ,l *
FILE=_COM_fdiv
000092f7 00009424 12e
00009356 00009483 12e
__COM_fdiv
00009356 0 none ,g *
000093b5 0 none ,g *
FILE=_COM_feq
00009425 0000943a 16
00009484 00009499 16
__COM_feq
00009425 0 none ,g *
00009484 0 none ,g *
FILE=_COM_fge
0000943b 00009450 16
0000949a 000094af 16
__COM_fge
0000943b 0 none ,g *
0000949a 0 none ,g *
FILE=_COM_flt
00009451 00009466 16
000094b0 000094c5 16
__COM_flt
00009451 0 none ,g *
000094b0 0 none ,g *
FILE=_COM_fmul
00009467 00009553 ed
000094c6 000095b2 ed
__COM_fmul
000094b2 0 none ,g *
00009511 0 none ,g *
FILE=_COM_fne
00009554 00009564 11
000095b3 000095c3 11
__COM_fne
00009554 0 none ,g *
000095b3 0 none ,g *
FILE=_COM_ftosl
00009565 0000956c 8
000095c4 000095cb 8
__COM_ftosl
00009565 0 none ,g *
000095c4 0 none ,g *
FILE=_COM_sidiv
0000956d 0000958e 22
000095cc 000095ed 22
__COM_sidiv
0000956f 0 none ,g *
000095ce 0 none ,g *
FILE=_COM_sirem
0000958f 000095ae 20
000095ee 0000960d 20
__COM_sirem
0000958f 0 none ,g *
000095ee 0 none ,g *
FILE=_COM_ulldiv
000095af 000095d8 2a
0000960e 00009637 2a
__COM_ulldiv
000095af 0 none ,g *
0000960e 0 none ,g *
FILE=_COM_ullrem
000095d9 00009609 31
00009638 00009668 31
__COM_ullrem
000095d9 0 none ,g *
00009638 0 none ,g *
FILE=_REL_f_inf
0000960a 00009611 8
00009669 00009670 8
__REL_f_inf
0000960a 0 none ,g *
00009669 0 none ,g *
FILE=_REL_f_norm
00009612 00009621 10
00009671 00009680 10
__REL_f_norm
00009612 0 none ,g *
00009671 0 none ,g *
FILE=_REL_f_round
00009622 00009634 13
00009681 00009693 13
__REL_f_round
00009622 0 none ,g *
00009681 0 none ,g *
FILE=_REL_fcmp
00009635 0000966c 38
00009694 000096cb 38
__REL_fcmp
00009635 0 none ,g *
00009694 0 none ,g *
FILE=_REL_fordered_core
0000966d 00009688 1c
000096cc 000096e7 1c
__REL_fordered_core
0000966d 0 none ,g *
000096cc 0 none ,g *
FILE=_REL_ftol
00009689 000096bd 35
000096e8 0000971c 35
__REL_ftol
00009689 0 none ,g *
000096e8 0 none ,g *
FILE=_REL_lldiv
000096be 000098c3 206
0000971d 00009922 206
__REL_lldiv
000096da 0 none ,g *
00009739 0 none ,g *
FILE=_REL_llrem
000098c4 00009ac7 204
00009923 00009b26 204
__REL_llrem
000098e1 0 none ,g *
00009940 0 none ,g *
FILE=_REL_ltosl
00009ac8 00009aec 25
00009b27 00009b4b 25
__REL_ltosl
00009ac8 0 none ,g *
00009b27 0 none ,g *
FILE=_COM_lshr
00009aed 00009b0d 21
00009b4c 00009b6c 21
__COM_lshr
00009af7 0 none ,g *
00009b56 0 none ,g *
SECTION=.monitor2
FILE=rlink_generates_02
@ -699,9 +711,9 @@ FILE=DefaultBuild\r_main.obj
000fb500 800 data ,l *
_g_app_runtime_job@5
000fbd00 290 data ,l *
_g_uart1_txbuf@6
_g_uart1_txbuf@7
000fbf90 400 data ,l *
_txbuf@17@forward_line_rs485_and_bridge@1
_txbuf@18@forward_line_rs485_and_bridge@1
000fc390 404 data ,l *
FILE=DefaultBuild\r_cg_serial.obj
000fc794 000fc7b3 20
@ -774,7 +786,7 @@ FILE=_REL_print
SECTION=.dataR
FILE=DefaultBuild\r_main.obj
000fe8b8 000ff0da 823
000fe8b8 000ff0db 824
_uart_rx_done
000fe8b8 1 data ,g *
_uart_rx_index
@ -811,8 +823,10 @@ FILE=DefaultBuild\r_main.obj
000ff0d6 2 data ,l *
_s_rb_tail@4
000ff0d8 2 data ,l *
_s_prefix_mode@7
_g_rs485_recover_streak@6
000ff0da 1 data ,l *
_s_prefix_mode@8
000ff0db 1 data ,l *
FILE=DefaultBuild\owi.obj
000ff0dc 000ff0e8 d
_bit_period_us@1
@ -862,11 +876,11 @@ FILE=rlink_generates_05
__s.text
00000919 0 none ,g *
__e.text
00000ace 0 none ,g *
00000aca 0 none ,g *
__s.textf
00003626 0 none ,g *
__e.textf
00007205 0 none ,g *
00007264 0 none ,g *
__s.const
00003000 0 none ,g *
__e.const
@ -908,9 +922,9 @@ FILE=rlink_generates_05
__e.RLIB
000000c4 0 none ,g *
__s.SLIB
00007205 0 none ,g *
00007264 0 none ,g *
__e.SLIB
00009b0e 0 none ,g *
00009b6d 0 none ,g *
__s.option_byte
000000c0 0 none ,g *
__e.option_byte

3286
DefaultBuild/multical.mot

File diff suppressed because it is too large

BIN
DefaultBuild/owi.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_cgc.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_cgc_user.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_port.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_port_user.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_serial.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_serial_user.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_wdt.obj

Binary file not shown.

BIN
DefaultBuild/r_cg_wdt_user.obj

Binary file not shown.

BIN
DefaultBuild/r_main.obj

Binary file not shown.

BIN
DefaultBuild/r_systeminit.obj

Binary file not shown.

BIN
DefaultBuild/uart.obj

Binary file not shown.

67
QualityReport(multical,DefaultBuild).txt

@ -1,19 +1,10 @@
QualityReport
2026년 3월 30일 월요일 오후 12:53:33
2026년 4월 9일 목요일 오후 3:22:46
------ Start build(multical, DefaultBuild) ------
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\Bin\ccrl.exe app_owi_service.c -cpu=S3 -o DefaultBuild\app_owi_service.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF" -g -g_line -I "..\..\Documents\카카오톡 받은 파일\IDH1.1\IDH1.1" -I ..\IDH1.1 -I . -c -msg_lang=english
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\Bin\ccrl.exe r_main.c -cpu=S3 -o DefaultBuild\r_main.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF" -g -g_line -I "..\..\Documents\카카오톡 받은 파일\IDH1.1\IDH1.1" -I ..\IDH1.1 -I . -c -msg_lang=english
W0511106:The folder "..\..\Documents\카카오톡 받은 파일\IDH1.1\IDH1.1" specified by the "-I" option is not found.
W0511187:The evaluation period for the option "-Odefault" of CC-RL V1 has expired. It is implicitly changed to "-Olite". Please consider purchasing the product to continue using "-Odefault". By explicitly specifying "-Olite" or "-Onothing", this warning message disappears.
W0511106:The folder "..\..\Documents\카카오톡 받은 파일\IDH1.1\IDH1.1" specified by the "-I" option is not found.
W0511187:The evaluation period for the option "-Odefault" of CC-RL V1 has expired. It is implicitly changed to "-Olite". Please consider purchasing the product to continue using "-Odefault". By explicitly specifying "-Olite" or "-Onothing", this warning message disappears.
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(18):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(19):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(20):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(25):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(26):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(27):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(18):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(19):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(20):W0520301:Typedef name has already been declared (with same type)
@ -21,37 +12,23 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(25
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(26):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(27):W0520301:Typedef name has already been declared (with same type)
i2c.h(8):W0520047:Incompatible redefinition of macro "RAM_BYTES" (declared at line 15 of "uart.h")
r_main.c(645):W0520172:External/internal linkage conflict with previous declaration
r_main.c(764):W0520177:Variable "dbg" was declared but never referenced
r_main.c(1255):W0520177:Variable "dbg" was declared but never referenced
r_main.c(1864):W0520177:Variable "total_us" was declared but never referenced
r_main.c(1865):W0520177:Variable "idle_us" was declared but never referenced
r_main.c(1867):W0520177:Variable "got_any" was declared but never referenced
r_main.c(91):W0520177:Variable "s_end_pat" was declared but never referenced
r_main.c(221):W0520177:Function "UART1_SendBytes_Safe" was declared but never referenced
r_main.c(382):W0520177:Function "bridge_wait_until_end" was declared but never referenced
r_main.c(723):W0520177:Function "connect_verify_reset" was declared but never referenced
r_main.c(728):W0520177:Function "print_hex_line" was declared but never referenced
r_main.c(1573):W0520177:Function "execute_owi_service_from_line" was declared but never referenced
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\Bin\ccrl.exe owi.c -cpu=S3 -o DefaultBuild\owi.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF" -g -g_line -I "..\..\Documents\카카오톡 받은 파일\IDH1.1\IDH1.1" -I ..\IDH1.1 -I . -c -msg_lang=english
W0511106:The folder "..\..\Documents\카카오톡 받은 파일\IDH1.1\IDH1.1" specified by the "-I" option is not found.
W0511187:The evaluation period for the option "-Odefault" of CC-RL V1 has expired. It is implicitly changed to "-Olite". Please consider purchasing the product to continue using "-Odefault". By explicitly specifying "-Olite" or "-Onothing", this warning message disappears.
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(18):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(19):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(20):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(25):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(26):W0520301:Typedef name has already been declared (with same type)
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\inc\stdint.h(27):W0520301:Typedef name has already been declared (with same type)
uart.h(15):W0520047:Incompatible redefinition of macro "RAM_BYTES" (declared at line 29 of "owi.h")
owi.c(511):W0520549:Variable "r" is used before its value is set
owi.c(520):W0520549:Variable "r" is used before its value is set
owi.c(141):W0520177:Function "OWI_StopWrite" was declared but never referenced
owi.c(156):W0520177:Function "OWI_WaitFirstBitStart" was declared but never referenced
r_main.c(688):W0520172:External/internal linkage conflict with previous declaration
r_main.c(807):W0520177:Variable "dbg" was declared but never referenced
r_main.c(1298):W0520177:Variable "dbg" was declared but never referenced
r_main.c(1907):W0520177:Variable "total_us" was declared but never referenced
r_main.c(1908):W0520177:Variable "idle_us" was declared but never referenced
r_main.c(1910):W0520177:Variable "got_any" was declared but never referenced
r_main.c(103):W0520177:Variable "s_end_pat" was declared but never referenced
r_main.c(264):W0520177:Function "UART1_SendBytes_Safe" was declared but never referenced
r_main.c(425):W0520177:Function "bridge_wait_until_end" was declared but never referenced
r_main.c(766):W0520177:Function "connect_verify_reset" was declared but never referenced
r_main.c(771):W0520177:Function "print_hex_line" was declared but never referenced
r_main.c(1616):W0520177:Function "execute_owi_service_from_line" was declared but never referenced
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.15.00\Bin\rlink.exe -subcommand=DefaultBuild\multical.clnk
W0561017:Paid license of CC-RL V1 is not found, and the evaluation period has expired. Please consider purchasing the product.
W0561017:Paid license of CC-RL V1 is not found, and the evaluation period has expired. Please consider purchasing the product.
Renesas Optimizing Linker Completed
------ Build ended(Error:0, Warning:44)(multical, DefaultBuild) ------
------ Build ended(Error:0, Warning:23)(multical, DefaultBuild) ------
--- CommandFile 1 ---
DefaultBuild\multical.clnk :
@ -75,6 +52,8 @@ DefaultBuild\multical.clnk :
-Input=DefaultBuild\app_cmd_parser.obj
-Input=DefaultBuild\app_scheduler.obj
-Input=DefaultBuild\app_owi_service.obj
-Input=DefaultBuild\r_cg_wdt.obj
-Input=DefaultBuild\r_cg_wdt_user.obj
-SECURITY_ID=00000000000000000000
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF
-DEBug
@ -83,7 +62,7 @@ DefaultBuild\multical.clnk :
-OUtput=DefaultBuild\multical.abs
-OCDBG=84
-DEBUG_MONITOR=3FE00-3FFFF
-USER_OPT_BYTE=E9FFF8
-USER_OPT_BYTE=78FFF8
-OCDTR
-LISt=DefaultBuild\multical.map
-SHow=SYmbol,Total_size
@ -104,8 +83,8 @@ DefaultBuild\multical.clnk :
--- SHA1 hash value of output files ---
C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.abs: 1b2d53ee775cd0643da0a8a39c31d90722d3e30a
C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.mot: ebac8363229e37f3c9ffad2bb22438ba7620994c
C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.abs: 75067f9834500a405ee3d20e259594ab1535208d
C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.mot: f3d9b05b7d114425f3412d46e99b533d9effb2e3
--- System Information ---
@ -116,7 +95,7 @@ C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.mot: ebac8363229e37f3c9ffad2b
*.NET Framework Version
Microsoft .NET Framework 4 [.NET 4.8 or later] (533325)
*WebView2 Version
146.0.3856.84
146.0.3856.109
--- Application Information ---
*Product Name
@ -133,11 +112,11 @@ C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.mot: ebac8363229e37f3c9ffad2b
C:\Program Files (x86)\Renesas Electronics\CS+\CC
*Memory Usage
*Private Working Set
240 MB
235 MB
*Number of GDI Objects
2703
2772
*Number of USER Objects
1450
1712
*Opened Files
34 editors, 34 files, 243 KB

82
multical.mtpj

@ -133,6 +133,27 @@
<TreeImageGuid>03cad1e8-2eb3-4cde-a8a3-982423631122</TreeImageGuid>
<ParentItem>cd2e4292-1297-4c3b-8415-f027a507b349</ParentItem>
</Instance>
<Instance Guid="610b5d3e-5adf-4fc8-bc41-c1567dd1faae">
<Name>r_cg_wdt.c</Name>
<Type>File</Type>
<RelativePath>r_cg_wdt.c</RelativePath>
<TreeImageGuid>941832c1-fc3b-4e1b-94e8-01ea17128b42</TreeImageGuid>
<ParentItem>cd2e4292-1297-4c3b-8415-f027a507b349</ParentItem>
</Instance>
<Instance Guid="d4ee09ce-e601-4016-8b3a-a0b2e977801f">
<Name>r_cg_wdt_user.c</Name>
<Type>File</Type>
<RelativePath>r_cg_wdt_user.c</RelativePath>
<TreeImageGuid>941832c1-fc3b-4e1b-94e8-01ea17128b42</TreeImageGuid>
<ParentItem>cd2e4292-1297-4c3b-8415-f027a507b349</ParentItem>
</Instance>
<Instance Guid="2f586378-d17a-4310-92df-0695b86477dc">
<Name>r_cg_wdt.h</Name>
<Type>File</Type>
<RelativePath>r_cg_wdt.h</RelativePath>
<TreeImageGuid>03cad1e8-2eb3-4cde-a8a3-982423631122</TreeImageGuid>
<ParentItem>cd2e4292-1297-4c3b-8415-f027a507b349</ParentItem>
</Instance>
<Instance Guid="82861e3a-5f66-47ce-b5d0-07c183f03a69">
<Name>OWI</Name>
<Type>Category</Type>
@ -432,7 +453,11 @@
<SourceItemType18>CSource</SourceItemType18>
<SourceItemGuid19>b7caf418-449c-4afa-9d64-16f7aef4371a</SourceItemGuid19>
<SourceItemType19>CSource</SourceItemType19>
<SourceItemCount>20</SourceItemCount>
<SourceItemGuid20>610b5d3e-5adf-4fc8-bc41-c1567dd1faae</SourceItemGuid20>
<SourceItemType20>CSource</SourceItemType20>
<SourceItemGuid21>d4ee09ce-e601-4016-8b3a-a0b2e977801f</SourceItemGuid21>
<SourceItemType21>CSource</SourceItemType21>
<SourceItemCount>22</SourceItemCount>
<LastDeviceChangedCounter>0</LastDeviceChangedCounter>
<LastDeviceNameOnPG>R5F10PPJ</LastDeviceNameOnPG>
<LastDeviceChangedCounterOnPG>0</LastDeviceChangedCounterOnPG>
@ -884,7 +909,7 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
<LinkOptionRrm-DefaultValue>False</LinkOptionRrm-DefaultValue>
<LinkOptionRrmValue-DefaultValue />
<IsLockedByUser>False</IsLockedByUser>
<TimeTagModified--0>-8584319544808423931</TimeTagModified--0>
<TimeTagModified--0>-8584259869236164714</TimeTagModified--0>
<LinkOptionAutoSectionLayout-0>True</LinkOptionAutoSectionLayout-0>
<LinkOptionCpu-0>False</LinkOptionCpu-0>
<LinkOptionDebug-0>Debug</LinkOptionDebug-0>
@ -962,7 +987,7 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
<LinkOptionChangeMessageError-0>None</LinkOptionChangeMessageError-0>
<LinkOptionSameCodeForbid-0 />
<LinkOptionShowStruct-0>False</LinkOptionShowStruct-0>
<LinkOptionUserOptByteValue-0>E9FFF8</LinkOptionUserOptByteValue-0>
<LinkOptionUserOptByteValue-0>78FFF8</LinkOptionUserOptByteValue-0>
<LinkOptionChangeMessageErrorNumber-0 />
<LinkOptionSectionForbid-0 />
<LinkOptionSelf-0>None</LinkOptionSelf-0>
@ -1376,6 +1401,18 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
<ItemAddTime>639087102722017417</ItemAddTime>
<ItemAddTimeCount>0</ItemAddTimeCount>
</Instance>
<Instance Guid="610b5d3e-5adf-4fc8-bc41-c1567dd1faae">
<ItemAddTime>639112491618550995</ItemAddTime>
<ItemAddTimeCount>0</ItemAddTimeCount>
</Instance>
<Instance Guid="d4ee09ce-e601-4016-8b3a-a0b2e977801f">
<ItemAddTime>639112491618550995</ItemAddTime>
<ItemAddTimeCount>1</ItemAddTimeCount>
</Instance>
<Instance Guid="2f586378-d17a-4310-92df-0695b86477dc">
<ItemAddTime>639112491618550995</ItemAddTime>
<ItemAddTimeCount>2</ItemAddTimeCount>
</Instance>
<Instance Guid="0b7e78c3-aadd-45ee-9f9d-ffac6141eeb2">
<TimeTagModified-SourceItem0--0>-8584334295854395005</TimeTagModified-SourceItem0--0>
<SourceItem0-IsLockedByUser>False</SourceItem0-IsLockedByUser>
@ -1459,6 +1496,14 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
<SourceItem19-IsLockedByUser>False</SourceItem19-IsLockedByUser>
<SourceItem19-BuildingTarget-0>True</SourceItem19-BuildingTarget-0>
<SourceItem19-IndividualCompileOption-0>False</SourceItem19-IndividualCompileOption-0>
<TimeTagModified-SourceItem20--0>-8584259869236224813</TimeTagModified-SourceItem20--0>
<SourceItem20-IsLockedByUser>False</SourceItem20-IsLockedByUser>
<SourceItem20-BuildingTarget-0>True</SourceItem20-BuildingTarget-0>
<SourceItem20-IndividualCompileOption-0>False</SourceItem20-IndividualCompileOption-0>
<TimeTagModified-SourceItem21--0>-8584259869236214846</TimeTagModified-SourceItem21--0>
<SourceItem21-IsLockedByUser>False</SourceItem21-IsLockedByUser>
<SourceItem21-BuildingTarget-0>True</SourceItem21-BuildingTarget-0>
<SourceItem21-IndividualCompileOption-0>False</SourceItem21-IndividualCompileOption-0>
</Instance>
</Class>
<Class Guid="44fa27c9-0aa0-4297-bd3b-2c5c5bdb8881">
@ -4431,7 +4476,7 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
&lt;StartAddressOfOnChipDebugOptionBytes Name="GOStart" Text="3FE00" /&gt;
&lt;SizeOfOnChipDebugOptionBytesArea Name="GOSizeValue" Text="512" /&gt;
&lt;UserOptionBytes Name="GB" Text="1" /&gt;
&lt;UserOptionBytesValue Name="GBValue" Text="E9FFF8" /&gt;
&lt;UserOptionBytesValue Name="GBValue" Text="78FFF8" /&gt;
&lt;RAMStartAddress Chip="R5F10PGJ,R5F10PLJ,R5F10PMJ,R5F10PPJ" Name="RAMStartAddress" Fixed="" Text="000FAF00" /&gt;
&lt;RAMEndAddress Name="RAMEndAddress" Fixed="" Text="000FFEFF" /&gt;
&lt;ROMEndAddress Chip="R5F10PGJ,R5F10PLJ,R5F10PMJ,R5F10PPJ" Name="ROMEndAddress" Fixed="" Text="0003FFFF" /&gt;
@ -5679,17 +5724,17 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
&lt;r_cg_timer.h UserName="r_cg_timer.h" LibName=".h" InUse="0" /&gt;
&lt;/TAU&gt;
&lt;WDT&gt;
&lt;r_cg_wdt.c UserName="r_cg_wdt.c" LibName=".c" InUse="0"&gt;
&lt;r_cg_wdt.c UserName="r_cg_wdt.c" LibName=".c" InUse="1"&gt;
&lt;Type R_WDT_Create="void R_WDT_Create(void)" R_WDT_Restart="void R_WDT_Restart(void)" /&gt;
&lt;R_WDT_Create UserName="R_WDT_Create" LibName="R_WDT_Create" InUse="0" Init="1" InitMode="" /&gt;
&lt;R_WDT_Restart UserName="R_WDT_Restart" LibName="R_WDT_Restart" InUse="0" /&gt;
&lt;R_WDT_Create UserName="R_WDT_Create" LibName="R_WDT_Create" InUse="1" Init="1" InitMode="" /&gt;
&lt;R_WDT_Restart UserName="R_WDT_Restart" LibName="R_WDT_Restart" InUse="1" /&gt;
&lt;/r_cg_wdt.c&gt;
&lt;r_cg_wdt_user.c UserName="r_cg_wdt_user.c" LibName="_user.c" InUse="0"&gt;
&lt;r_cg_wdt_user.c UserName="r_cg_wdt_user.c" LibName="_user.c" InUse="1"&gt;
&lt;Type R_WDT_Create_UserInit="void R_WDT_Create_UserInit(void)" r_wdt_interrupt="__interrupt static void r_wdt_interrupt(void)" /&gt;
&lt;R_WDT_Create_UserInit UserName="R_WDT_Create_UserInit" LibName="R_WDT_Create_UserInit" InUse="0" /&gt;
&lt;r_wdt_interrupt UserName="r_wdt_interrupt" INTHandle="" LibName="r_wdt_interrupt" InUse="0" /&gt;
&lt;/r_cg_wdt_user.c&gt;
&lt;r_cg_wdt.h UserName="r_cg_wdt.h" LibName=".h" InUse="0" /&gt;
&lt;r_cg_wdt.h UserName="r_cg_wdt.h" LibName=".h" InUse="1" /&gt;
&lt;/WDT&gt;
&lt;RTC&gt;
&lt;r_cg_rtc.c UserName="r_cg_rtc.c" LibName=".c" InUse="0"&gt;
@ -5919,7 +5964,7 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
&lt;cg_ocd_trace_size Name="cg_ocd_trace_size" Value="512" /&gt;
&lt;cg_security8 Name="cg_security8" Value="00" /&gt;
&lt;cg_security4 Name="cg_security4" Value="00" /&gt;
&lt;wdt_option Name="wdt_option" Value="E9" /&gt;
&lt;wdt_option Name="wdt_option" Value="78" /&gt;
&lt;cg_crc_area Name="cg_crc_area" Value="00" /&gt;
&lt;cg_security3 Name="cg_security3" Value="00" /&gt;
&lt;cg_iawctl_value Name="cg_iawctl_value" Value="00" /&gt;
@ -5981,8 +6026,8 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
&lt;TMRD0 SetFlag="False" MacroName="TMRD" Channel="0" TabEnable="True" /&gt;
&lt;TMRD1 SetFlag="False" MacroName="TMRD" Channel="1" TabEnable="True" /&gt;
&lt;/TAU&gt;
&lt;WDT Prepared="true" SetFlag="False" HelpID="watchdogtimer" NeedRefresh="False"&gt;
&lt;WDT SetFlag="False" MacroName="WDT" /&gt;
&lt;WDT Prepared="true" SetFlag="True" HelpID="watchdogtimer" NeedRefresh="False"&gt;
&lt;WDT SetFlag="True" MacroName="WDT" /&gt;
&lt;/WDT&gt;
&lt;RTC SetFlag="False" HelpID="rtc" NeedRefresh="False"&gt;
&lt;RTC MacroName="RTC" SetFlag="False" /&gt;
@ -7251,13 +7296,13 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
&lt;/PortP15&gt;
&lt;/PORT&gt;
&lt;WDT&gt;
&lt;setting name="WDT_MODULE_USED" value="false" /&gt;
&lt;setting name="WDT_MODULE_UNUSE" value="true" /&gt;
&lt;setting name="WDT_MODULE_USED" value="true" /&gt;
&lt;setting name="WDT_MODULE_UNUSE" value="false" /&gt;
&lt;setting name="WDT_OVERFLOW_TIME" value="4" /&gt;
&lt;setting name="WDT_WINDOW_OPEN_TIME" value="2" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_ENABLE" value="true" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_STOP" value="false" /&gt;
&lt;setting name="WDT_INTERRUPT_USED" value="true" /&gt;
&lt;setting name="WDT_WINDOW_OPEN_TIME" value="0" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_ENABLE" value="false" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_STOP" value="true" /&gt;
&lt;setting name="WDT_INTERRUPT_USED" value="false" /&gt;
&lt;setting name="WDT_INTERRUPT_PRIORITY" value="3" /&gt;
&lt;/WDT&gt;
&lt;ADC&gt;
@ -7434,6 +7479,7 @@ C:\Program Files (x86)\Renesas Electronics\CS+\CC\FAA\V1.05.00
&lt;/RL78F14&gt;</CodeGenerator>
<FormatVersion>1.0</FormatVersion>
<ToolGUID>95279bbe-6d22-4c1c-844e-cd135cf17b88</ToolGUID>
<CodeGeneratorItem>cd2e4292-1297-4c3b-8415-f027a507b349</CodeGeneratorItem>
</Instance>
</Class>
<Class Guid="2a2c2a43-ecdb-4e88-80bd-e75f3e33db90">

37
multical.rcpe

@ -24,6 +24,9 @@
<Path>r_cg_port.c</Path>
<Path>r_cg_port_user.c</Path>
<Path>r_cg_port.h</Path>
<Path>r_cg_wdt.c</Path>
<Path>r_cg_wdt_user.c</Path>
<Path>r_cg_wdt.h</Path>
</Category>
<Category Name="drivers">
<Category Name="OWI">
@ -92,6 +95,8 @@
<Path>DefaultBuild\app_cmd_parser.obj</Path>
<Path>DefaultBuild\app_scheduler.obj</Path>
<Path>DefaultBuild\app_owi_service.obj</Path>
<Path>DefaultBuild\r_cg_wdt.obj</Path>
<Path>DefaultBuild\r_cg_wdt_user.obj</Path>
</LinkOrder>
<CommonOptions>
<IncludePathForC>..\..\Documents\카카오톡 받은 파일\IDH1.1\IDH1.1</IncludePathForC>
@ -128,7 +133,7 @@
<Option>-OUtput=%BuildModeName%\%ProjectName%.abs</Option>
<Option>-OCDBG=84</Option>
<Option>-DEBUG_MONITOR=3FE00-3FFFF</Option>
<Option>-USER_OPT_BYTE=E9FFF8</Option>
<Option>-USER_OPT_BYTE=78FFF8</Option>
<Option>-OCDTR</Option>
<Option>-LISt=%BuildModeName%\%ProjectName%.map</Option>
<Option>-SHow=SYmbol,Total_size</Option>
@ -409,7 +414,7 @@
&lt;StartAddressOfOnChipDebugOptionBytes Name="GOStart" Text="3FE00" /&gt;
&lt;SizeOfOnChipDebugOptionBytesArea Name="GOSizeValue" Text="512" /&gt;
&lt;UserOptionBytes Name="GB" Text="1" /&gt;
&lt;UserOptionBytesValue Name="GBValue" Text="E9FFF8" /&gt;
&lt;UserOptionBytesValue Name="GBValue" Text="78FFF8" /&gt;
&lt;RAMStartAddress Chip="R5F10PGJ,R5F10PLJ,R5F10PMJ,R5F10PPJ" Name="RAMStartAddress" Fixed="" Text="000FAF00" /&gt;
&lt;RAMEndAddress Name="RAMEndAddress" Fixed="" Text="000FFEFF" /&gt;
&lt;ROMEndAddress Chip="R5F10PGJ,R5F10PLJ,R5F10PMJ,R5F10PPJ" Name="ROMEndAddress" Fixed="" Text="0003FFFF" /&gt;
@ -1657,17 +1662,17 @@
&lt;r_cg_timer.h UserName="r_cg_timer.h" LibName=".h" InUse="0" /&gt;
&lt;/TAU&gt;
&lt;WDT&gt;
&lt;r_cg_wdt.c UserName="r_cg_wdt.c" LibName=".c" InUse="0"&gt;
&lt;r_cg_wdt.c UserName="r_cg_wdt.c" LibName=".c" InUse="1"&gt;
&lt;Type R_WDT_Create="void R_WDT_Create(void)" R_WDT_Restart="void R_WDT_Restart(void)" /&gt;
&lt;R_WDT_Create UserName="R_WDT_Create" LibName="R_WDT_Create" InUse="0" Init="1" InitMode="" /&gt;
&lt;R_WDT_Restart UserName="R_WDT_Restart" LibName="R_WDT_Restart" InUse="0" /&gt;
&lt;R_WDT_Create UserName="R_WDT_Create" LibName="R_WDT_Create" InUse="1" Init="1" InitMode="" /&gt;
&lt;R_WDT_Restart UserName="R_WDT_Restart" LibName="R_WDT_Restart" InUse="1" /&gt;
&lt;/r_cg_wdt.c&gt;
&lt;r_cg_wdt_user.c UserName="r_cg_wdt_user.c" LibName="_user.c" InUse="0"&gt;
&lt;r_cg_wdt_user.c UserName="r_cg_wdt_user.c" LibName="_user.c" InUse="1"&gt;
&lt;Type R_WDT_Create_UserInit="void R_WDT_Create_UserInit(void)" r_wdt_interrupt="__interrupt static void r_wdt_interrupt(void)" /&gt;
&lt;R_WDT_Create_UserInit UserName="R_WDT_Create_UserInit" LibName="R_WDT_Create_UserInit" InUse="0" /&gt;
&lt;r_wdt_interrupt UserName="r_wdt_interrupt" INTHandle="" LibName="r_wdt_interrupt" InUse="0" /&gt;
&lt;/r_cg_wdt_user.c&gt;
&lt;r_cg_wdt.h UserName="r_cg_wdt.h" LibName=".h" InUse="0" /&gt;
&lt;r_cg_wdt.h UserName="r_cg_wdt.h" LibName=".h" InUse="1" /&gt;
&lt;/WDT&gt;
&lt;RTC&gt;
&lt;r_cg_rtc.c UserName="r_cg_rtc.c" LibName=".c" InUse="0"&gt;
@ -1897,7 +1902,7 @@
&lt;cg_ocd_trace_size Name="cg_ocd_trace_size" Value="512" /&gt;
&lt;cg_security8 Name="cg_security8" Value="00" /&gt;
&lt;cg_security4 Name="cg_security4" Value="00" /&gt;
&lt;wdt_option Name="wdt_option" Value="E9" /&gt;
&lt;wdt_option Name="wdt_option" Value="78" /&gt;
&lt;cg_crc_area Name="cg_crc_area" Value="00" /&gt;
&lt;cg_security3 Name="cg_security3" Value="00" /&gt;
&lt;cg_iawctl_value Name="cg_iawctl_value" Value="00" /&gt;
@ -1959,8 +1964,8 @@
&lt;TMRD0 SetFlag="False" MacroName="TMRD" Channel="0" TabEnable="True" /&gt;
&lt;TMRD1 SetFlag="False" MacroName="TMRD" Channel="1" TabEnable="True" /&gt;
&lt;/TAU&gt;
&lt;WDT Prepared="true" SetFlag="False" HelpID="watchdogtimer" NeedRefresh="False"&gt;
&lt;WDT SetFlag="False" MacroName="WDT" /&gt;
&lt;WDT Prepared="true" SetFlag="True" HelpID="watchdogtimer" NeedRefresh="False"&gt;
&lt;WDT SetFlag="True" MacroName="WDT" /&gt;
&lt;/WDT&gt;
&lt;RTC SetFlag="False" HelpID="rtc" NeedRefresh="False"&gt;
&lt;RTC MacroName="RTC" SetFlag="False" /&gt;
@ -3229,13 +3234,13 @@
&lt;/PortP15&gt;
&lt;/PORT&gt;
&lt;WDT&gt;
&lt;setting name="WDT_MODULE_USED" value="false" /&gt;
&lt;setting name="WDT_MODULE_UNUSE" value="true" /&gt;
&lt;setting name="WDT_MODULE_USED" value="true" /&gt;
&lt;setting name="WDT_MODULE_UNUSE" value="false" /&gt;
&lt;setting name="WDT_OVERFLOW_TIME" value="4" /&gt;
&lt;setting name="WDT_WINDOW_OPEN_TIME" value="2" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_ENABLE" value="true" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_STOP" value="false" /&gt;
&lt;setting name="WDT_INTERRUPT_USED" value="true" /&gt;
&lt;setting name="WDT_WINDOW_OPEN_TIME" value="0" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_ENABLE" value="false" /&gt;
&lt;setting name="WDT_HALT_STOP_OPERATION_STOP" value="true" /&gt;
&lt;setting name="WDT_INTERRUPT_USED" value="false" /&gt;
&lt;setting name="WDT_INTERRUPT_PRIORITY" value="3" /&gt;
&lt;/WDT&gt;
&lt;ADC&gt;

94
multical.temp.mtud

File diff suppressed because one or more lines are too long

2
r_cg_cgc.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for CGC module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************

2
r_cg_cgc.h

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for CGC module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
#ifndef CGC_H

2
r_cg_cgc_user.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for CGC module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************

2
r_cg_macrodriver.h

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements general head file.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
#ifndef STATUS_H

2
r_cg_port.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for PORT module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************

2
r_cg_port.h

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for PORT module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
#ifndef PORT_H

2
r_cg_port_user.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for PORT module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************

2
r_cg_serial.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for Serial module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************

2
r_cg_serial.h

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for Serial module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
#ifndef SERIAL_H

87
r_cg_serial_user.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for Serial module.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************
@ -103,23 +103,26 @@ static void __near r_uart0_interrupt_receive(void)
err_type = (uint8_t)(SSR01 & 0x0007U);
SIR01 = (uint16_t)err_type;
rx_data = SDR01L;
if (err_type != 0U) {
if (err_type != 0U)
{
r_uart0_callback_error(err_type);
return;
}
/* ---- CodeGenerator ?? ?? ?? ---- */
if (g_uart0_rx_length > g_uart0_rx_count) {
*gp_uart0_rx_address = (uint8_t)rx_data;
rx_data = SDR01L;
if (g_uart0_rx_length > g_uart0_rx_count)
{
*gp_uart0_rx_address = rx_data;
gp_uart0_rx_address++;
g_uart0_rx_count++;
if (g_uart0_rx_length == g_uart0_rx_count) {
if (g_uart0_rx_length == g_uart0_rx_count)
{
r_uart0_callback_receiveend();
}
} else {
}
else
{
r_uart0_callback_softwareoverrun(rx_data);
}
}
@ -152,63 +155,9 @@ static void __near r_uart0_interrupt_send(void)
***********************************************************************************************************************/
static void r_uart0_callback_receiveend(void)
{
/* =========================
* (A) BRIDGE MODE: always 1 byte at buffer[0]
* ========================= */
if (g_rs485_bridge_active) {
uint8_t c = rs485_rx_buffer[0];
RS485_Bridge_Push(c);
g_rs485_bridge_seq++;
/* keep index/length reset in bridge */
rs485_rx_index = 0;
rs485_rx_length = 0;
R_UART0_Receive((uint8_t*)&rs485_rx_buffer[0], 1);
return;
}
/* =========================
* (B) NORMAL MODE: accumulate line
* - IMPORTANT: current byte is already stored at rs485_rx_buffer[rs485_rx_index]
* - so update index/length AFTER using c
* ========================= */
{
uint8_t c = rs485_rx_buffer[rs485_rx_index];
/* ?? ????? ?? */
rs485_rx_index++;
rs485_rx_length = rs485_rx_index;
/* ? ?? or ?? ?? */
if (c == '\r' || c == '\n' || rs485_rx_index >= (UART_RX_BUF_SIZE - 1))
{
/* length? CR/LF ?? ????, main? build_line_from_rx? CR/LF ???? OK */
/* x? ???? ??? main loop? ?? */
if (rs485_rx_length > 0) {
uint8_t first = rs485_rx_buffer[0];
if (first == 'x' || first == 'X') {
rs485_rx_done = 1;
return; /* main loop? ?? ? re-arm */
}
}
/* x? ??? ??? ?? ?? */
rs485_rx_index = 0;
rs485_rx_length = 0;
R_UART0_Receive((uint8_t*)&rs485_rx_buffer[0], 1);
return;
}
/* ?? 1??? ?? ?? */
R_UART0_Receive((uint8_t*)&rs485_rx_buffer[rs485_rx_index], 1);
}
}
/* Start user code. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
}
/***********************************************************************************************************************
* Function Name: r_uart0_callback_softwareoverrun
@ -276,10 +225,9 @@ static void __near r_uart1_interrupt_receive(void)
err_type = (uint8_t)(SSR11 & 0x0007U);
SIR11 = (uint16_t)err_type;
if (err_type != 0U) {
(void)SDR11L; /* dummy read to clear */
if (err_type != 0U)
{
r_uart1_callback_error(err_type);
return;
}
rx_data = SDR11L;
@ -301,7 +249,6 @@ static void __near r_uart1_interrupt_receive(void)
}
}
/***********************************************************************************************************************
* Function Name: r_uart1_interrupt_send
* Description : This function is INTST1 interrupt service routine.

2
r_cg_userdefine.h

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file includes user definition.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
#ifndef _USER_DEF_H

6
r_cg_wdt.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for WDT module.
* Creation Date: 2026-01-29
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************
@ -57,10 +57,6 @@ void R_WDT_Create(void)
{
WDTIMK = 1U; /* disable INTWDTI interrupt */
WDTIIF = 0U; /* clear INTWDTI interrupt flag */
/* Set INTWDTI low priority */
WDTIPR1 = 1U;
WDTIPR0 = 1U;
WDTIMK = 0U; /* enable INTWDTI interrupt */
}
/***********************************************************************************************************************

2
r_cg_wdt.h

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for WDT module.
* Creation Date: 2026-01-29
* Creation Date: 2026-04-08
***********************************************************************************************************************/
#ifndef WDT_H

15
r_cg_wdt_user.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements device driver for WDT module.
* Creation Date: 2026-01-29
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************
@ -38,7 +38,6 @@ Includes
/***********************************************************************************************************************
Pragma directive
***********************************************************************************************************************/
#pragma interrupt r_wdt_interrupt(vect=INTWDTI)
/* Start user code for pragma. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
@ -48,17 +47,5 @@ Global variables and functions
/* Start user code for global. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
/***********************************************************************************************************************
* Function Name: r_wdt_interrupt
* Description : This function is INTWDTI interrupt service routine.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
static void __near r_wdt_interrupt(void)
{
/* Start user code. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
}
/* Start user code for adding. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */

76
r_main.c

@ -22,19 +22,19 @@
* Version : CodeGenerator for RL78/F14 V2.03.07.02 [08 Nov 2021]
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : main + UART protocol handler
* Creation Date: 2026-01-29
* Description : This file implements main function.
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************
Includes
***********************************************************************************************************************/
#include "r_cg_macrodriver.h"
#include "r_cg_cgc.h"
#include "r_cg_port.h"
#include "r_cg_serial.h"
#include "r_cg_wdt.h"
#include "r_cg_wdt.h"
/* Start user code for include. Do not edit comment generated here */
#include "common.h"
#include "dipSwitch.h"
@ -50,6 +50,18 @@ Includes
#include "app_owi_service.h"
/* End user code. Do not edit comment generated here */
#include "r_cg_userdefine.h"
/***********************************************************************************************************************
Pragma directive
***********************************************************************************************************************/
/* Start user code for pragma. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
/***********************************************************************************************************************
Global variables and functions
***********************************************************************************************************************/
/* Start user code for global. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
/* Start user code for adding. Do not edit comment generated here */
/* =========================
* Config
@ -136,6 +148,37 @@ typedef struct {
} app_runtime_job_t;
static app_runtime_job_t g_app_runtime_job;
static uint8_t g_rs485_recover_streak = 0;
static void app_startup_guard_delay(uint16_t total_ms)
{
while (total_ms != 0U) {
uint16_t step = (total_ms > 10U) ? 10U : total_ms;
delay_ms(step);
R_WDT_Restart();
total_ms = (uint16_t)(total_ms - step);
}
}
static void app_clear_uart_runtime_state(void)
{
uart_rx_done = 0;
uart_rx_index = 0;
uart_rx_length = 0;
memset((void*)uart_rx_buffer, 0, sizeof(uart_rx_buffer));
rs485_rx_done = 0;
rs485_rx_index = 0;
rs485_rx_length = 0;
memset((void*)rs485_rx_buffer, 0, sizeof(rs485_rx_buffer));
g_rs485_bridge_active = 0;
g_rs485_bridge_done = 0;
RS485_Bridge_ResetFifo();
g_rs485_need_recover = 0;
g_rs485_recover_streak = 0;
g_uart0_err_fef = 0;
g_uart0_err_ovf = 0;
g_uart0_err_pef = 0;
}
static void app_runtime_reset(void)
{
@ -2145,9 +2188,19 @@ void handle_uart_command_line(void)
/* UART0 stop/start + RX arm */
rs485_recover();
if (g_rs485_recover_streak < 0xFFU) {
g_rs485_recover_streak++;
}
g_rs485_need_recover = 0;
}
else if (rs485_rx_done) {
/* A completed RS-485 line means the link recovered enough to clear the streak. */
g_rs485_recover_streak = 0;
}
if (g_rs485_recover_streak < 3U) {
R_WDT_Restart();
}
if (g_rs485_bridge_active) {
RS485_Bridge_DrainToPC();
@ -2196,6 +2249,11 @@ void R_MAIN_UserInit(void);
char b[64];
R_MAIN_UserInit();
R_WDT_Create();
R_WDT_Restart();
rs485_set_tx(0);
app_startup_guard_delay(50);
R_UART0_Create(); /* UART0 : RS485 */
R_UART1_Create(); /* UART1 : PC */
@ -2207,7 +2265,10 @@ void R_MAIN_UserInit(void);
app_scheduler_init();
app_runtime_reset();
app_startup_guard_delay(50);
app_clear_uart_runtime_state();
app_startup_guard_delay(50);
sprintf(b, "BOOT addr=%u\r\n", g_fixed_addr);
/* ? BOOT ¥ì */
@ -2230,9 +2291,8 @@ void R_MAIN_UserInit(void)
rs485_init();
DipSwitch_Init();
g_fixed_addr = DipSwitch_ReadAddr_0to31();
//DipSwitch_Init();
//g_fixed_addr = DipSwitch_ReadAddr_0to31();
/* End user code. Do not edit comment generated here */
}
/* End user code. Do not edit comment generated here */
}

4
r_systeminit.c

@ -23,7 +23,7 @@
* Device(s) : R5F10PPJ
* Tool-Chain : CCRL
* Description : This file implements system initializing function.
* Creation Date: 2026-02-04
* Creation Date: 2026-04-08
***********************************************************************************************************************/
/***********************************************************************************************************************
@ -33,6 +33,7 @@ Includes
#include "r_cg_cgc.h"
#include "r_cg_port.h"
#include "r_cg_serial.h"
#include "r_cg_wdt.h"
/* Start user code for include. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
#include "r_cg_userdefine.h"
@ -73,6 +74,7 @@ void R_Systeminit(void)
R_SAU0_Create();
R_SAU1_Create();
R_IICA0_Create();
R_WDT_Create();
/* Set invalid memory access detection control */
IAWCTL = 0x00U;

Loading…
Cancel
Save