Browse Source

"485_Time / Channel"

master
JWS 2 months ago
parent
commit
e7e5d9d334
  1. BIN
      DefaultBuild/cstart.obj
  2. BIN
      DefaultBuild/delay.obj
  3. BIN
      DefaultBuild/dipSwitch.obj
  4. BIN
      DefaultBuild/gatectrl.obj
  5. BIN
      DefaultBuild/i2c.obj
  6. BIN
      DefaultBuild/multical.abs
  7. 206
      DefaultBuild/multical.map
  8. 928
      DefaultBuild/multical.mot
  9. BIN
      DefaultBuild/r_cg_cgc.obj
  10. BIN
      DefaultBuild/r_cg_cgc_user.obj
  11. BIN
      DefaultBuild/r_cg_port.obj
  12. BIN
      DefaultBuild/r_cg_port_user.obj
  13. BIN
      DefaultBuild/r_cg_serial.obj
  14. BIN
      DefaultBuild/r_cg_serial_user.obj
  15. BIN
      DefaultBuild/r_main.obj
  16. BIN
      DefaultBuild/r_systeminit.obj
  17. BIN
      DefaultBuild/stkinit.obj
  18. 120
      QualityReport(multical,DefaultBuild).txt
  19. 87
      gatectrl.c
  20. 496
      multical.MSI.mtud
  21. 8
      r_main.c

BIN
DefaultBuild/cstart.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.

206
DefaultBuild/multical.map

@ -1,4 +1,4 @@
Renesas Optimizing Linker (W3.07.00 ) 26-Feb-2026 15:07:50 Renesas Optimizing Linker (W3.07.00 ) 27-Feb-2026 16:00:59
*** Options *** *** Options ***
@ -66,7 +66,7 @@ SECTION START END SIZE ALIGN
.text .text
0000090d 00000ac1 1b5 1 0000090d 00000ac1 1b5 1
.textf .textf
00000ac2 00002ec2 2401 1 00000ac2 00002ece 240d 1
.const .const
00003000 000033d1 3d2 2 00003000 000033d1 3d2 2
.SLIB .SLIB
@ -86,7 +86,7 @@ SECTION START END SIZE ALIGN
RAMDATA SECTION: 00002efb Byte(s) RAMDATA SECTION: 00002efb Byte(s)
ROMDATA SECTION: 00000eb3 Byte(s) ROMDATA SECTION: 00000eb3 Byte(s)
PROGRAM SECTION: 00004e6c Byte(s) PROGRAM SECTION: 00004e78 Byte(s)
*** Symbol List *** *** Symbol List ***
@ -160,7 +160,7 @@ FILE=DefaultBuild\stkinit.obj
LSTINIT3 LSTINIT3
00000b05 0 none ,l * 00000b05 0 none ,l *
FILE=DefaultBuild\r_main.obj FILE=DefaultBuild\r_main.obj
00000b06 00001a53 f4e 00000b06 00001a5f f5a
_RS485_Bridge_Push _RS485_Bridge_Push
00000b06 2b func ,g * 00000b06 2b func ,g *
_RS485_Bridge_ResetFifo@1 _RS485_Bridge_ResetFifo@1
@ -208,201 +208,201 @@ FILE=DefaultBuild\r_main.obj
_process_cmd_by_prefix@1 _process_cmd_by_prefix@1
00001262 11 func ,l * 00001262 11 func ,l *
_process_one_line@1 _process_one_line@1
00001273 6ea func ,l * 00001273 6f6 func ,l *
_handle_uart_command_line _handle_uart_command_line
0000195d 78 func ,g * 00001969 78 func ,g *
_main _main
000019d5 68 func ,g * 000019e1 68 func ,g *
_R_MAIN_UserInit _R_MAIN_UserInit
00001a3d 17 func ,g * 00001a49 17 func ,g *
FILE=DefaultBuild\r_systeminit.obj FILE=DefaultBuild\r_systeminit.obj
00001a54 00001a94 41 00001a60 00001aa0 41
_R_Systeminit _R_Systeminit
00001a54 3a func ,g * 00001a60 3a func ,g *
_hdwinit _hdwinit
00001a8e 7 func ,g * 00001a9a 7 func ,g *
FILE=DefaultBuild\r_cg_cgc.obj FILE=DefaultBuild\r_cg_cgc.obj
00001a95 00001abe 2a 00001aa1 00001aca 2a
_R_CGC_Create _R_CGC_Create
00001a95 2a func ,g * 00001aa1 2a func ,g *
FILE=DefaultBuild\r_cg_cgc_user.obj FILE=DefaultBuild\r_cg_cgc_user.obj
00001abf 00001ac1 3 00001acb 00001acd 3
_R_CGC_Get_ResetSource _R_CGC_Get_ResetSource
00001abf 3 func ,g * 00001acb 3 func ,g *
FILE=DefaultBuild\r_cg_serial.obj FILE=DefaultBuild\r_cg_serial.obj
00001ac2 00001da5 2e4 00001ace 00001db1 2e4
_R_SAU0_Create _R_SAU0_Create
00001ac2 10 func ,g * 00001ace 10 func ,g *
_R_UART0_Create _R_UART0_Create
00001ad2 6e func ,g * 00001ade 6e func ,g *
_R_UART0_Start _R_UART0_Start
00001b40 26 func ,g * 00001b4c 26 func ,g *
_R_UART0_Stop _R_UART0_Stop
00001b66 1e func ,g * 00001b72 1e func ,g *
_R_UART0_Receive _R_UART0_Receive
00001b84 18 func ,g * 00001b90 18 func ,g *
_R_UART0_Send _R_UART0_Send
00001b9c 26 func ,g * 00001ba8 26 func ,g *
_R_SAU1_Create _R_SAU1_Create
00001bc2 10 func ,g * 00001bce 10 func ,g *
_R_UART1_Create _R_UART1_Create
00001bd2 6e func ,g * 00001bde 6e func ,g *
_R_UART1_Start _R_UART1_Start
00001c40 26 func ,g * 00001c4c 26 func ,g *
_R_UART1_Stop _R_UART1_Stop
00001c66 1e func ,g * 00001c72 1e func ,g *
_R_UART1_Receive _R_UART1_Receive
00001c84 18 func ,g * 00001c90 18 func ,g *
_R_UART1_Send _R_UART1_Send
00001c9c 26 func ,g * 00001ca8 26 func ,g *
_R_IICA0_Create _R_IICA0_Create
00001cc2 50 func ,g * 00001cce 50 func ,g *
_R_IICA0_Stop _R_IICA0_Stop
00001d12 5 func ,g * 00001d1e 5 func ,g *
_R_IICA0_StopCondition _R_IICA0_StopCondition
00001d17 5 func ,g * 00001d23 5 func ,g *
_R_IICA0_Master_Send _R_IICA0_Master_Send
00001d1c 43 func ,g * 00001d28 43 func ,g *
_R_IICA0_Master_Receive _R_IICA0_Master_Receive
00001d5f 47 func ,g * 00001d6b 47 func ,g *
FILE=DefaultBuild\r_cg_serial_user.obj FILE=DefaultBuild\r_cg_serial_user.obj
00001da6 00001f48 1a3 00001db2 00001f54 1a3
_r_uart0_callback_receiveend@1 _r_uart0_callback_receiveend@1
00001da6 5e func ,l * 00001db2 5e func ,l *
_r_uart0_callback_softwareoverrun@1 _r_uart0_callback_softwareoverrun@1
00001e04 1 func ,l * 00001e10 1 func ,l *
_r_uart0_callback_sendend@1 _r_uart0_callback_sendend@1
00001e05 9 func ,l * 00001e11 9 func ,l *
_r_uart0_callback_error@1 _r_uart0_callback_error@1
00001e0e 5c func ,l * 00001e1a 5c func ,l *
_r_uart1_callback_receiveend@1 _r_uart1_callback_receiveend@1
00001e6a 31 func ,l * 00001e76 31 func ,l *
_r_uart1_callback_softwareoverrun@1 _r_uart1_callback_softwareoverrun@1
00001e9b 1 func ,l * 00001ea7 1 func ,l *
_r_uart1_callback_sendend@1 _r_uart1_callback_sendend@1
00001e9c 4 func ,l * 00001ea8 4 func ,l *
_r_uart1_callback_error@1 _r_uart1_callback_error@1
00001ea0 1 func ,l * 00001eac 1 func ,l *
_iica0_masterhandler@1 _iica0_masterhandler@1
00001ea1 91 func ,l * 00001ead 91 func ,l *
_r_iica0_callback_master_error@1 _r_iica0_callback_master_error@1
00001f32 7 func ,l * 00001f3e 7 func ,l *
_r_iica0_callback_master_receiveend@1 _r_iica0_callback_master_receiveend@1
00001f39 8 func ,l * 00001f45 8 func ,l *
_r_iica0_callback_master_sendend@1 _r_iica0_callback_master_sendend@1
00001f41 8 func ,l * 00001f4d 8 func ,l *
FILE=DefaultBuild\r_cg_port.obj FILE=DefaultBuild\r_cg_port.obj
00001f49 00001fa1 59 00001f55 00001fad 59
_R_PORT_Create _R_PORT_Create
00001f49 59 func ,g * 00001f55 59 func ,g *
FILE=DefaultBuild\owi.obj FILE=DefaultBuild\owi.obj
00001fa2 000026d7 736 00001fae 000026e3 736
_GPIO_Clear _GPIO_Clear
00001fa2 12 func ,g * 00001fae 12 func ,g *
_GPIO_Input _GPIO_Input
00001fb4 11 func ,g * 00001fc0 11 func ,g *
_GPIO_Read _GPIO_Read
00001fc5 9 func ,g * 00001fd1 9 func ,g *
_OWI_Release _OWI_Release
00001fce 11 func ,g * 00001fda 11 func ,g *
_GPIO_StrongDriveHighKick@1 _GPIO_StrongDriveHighKick@1
00001fdf 32 func ,l * 00001feb 32 func ,l *
_GPIO_ForceHighKick _GPIO_ForceHighKick
00002011 8 func ,g * 0000201d 8 func ,g *
_OWI_DriveLow _OWI_DriveLow
00002019 12 func ,g * 00002025 12 func ,g *
_OWI_Init _OWI_Init
0000202b 18 func ,g * 00002037 18 func ,g *
_OWI_Start _OWI_Start
00002043 1e func ,g * 0000204f 1e func ,g *
_OWI_Stop _OWI_Stop
00002061 14 func ,g * 0000206d 14 func ,g *
_OWI_StopRead@1 _OWI_StopRead@1
00002075 17 func ,l * 00002081 17 func ,l *
_OWI_SecureStop _OWI_SecureStop
0000208c 54 func ,g * 00002098 54 func ,g *
_OWI_WriteBit _OWI_WriteBit
000020e0 4d func ,g * 000020ec 4d func ,g *
_OWI_WriteByte _OWI_WriteByte
0000212d 2a func ,g * 00002139 2a func ,g *
_OWI_ReadBit _OWI_ReadBit
00002157 80 func ,g * 00002163 80 func ,g *
_OWI_ReadByte _OWI_ReadByte
000021d7 32 func ,g * 000021e3 32 func ,g *
_OWI_T_ReadBytesAndPrint _OWI_T_ReadBytesAndPrint
00002209 ff func ,g * 00002215 ff func ,g *
_OWI_A_CommandMode _OWI_A_CommandMode
00002308 262 func ,g * 00002314 262 func ,g *
_OWI_disable _OWI_disable
0000256a 15 func ,g * 00002576 15 func ,g *
_OWI_T_CommandMode _OWI_T_CommandMode
0000257f 5d func ,g * 0000258b 5d func ,g *
_OWI_CommandMode _OWI_CommandMode
000025dc 4a func ,g * 000025e8 4a func ,g *
_OWI_ReadBytesAndPrint _OWI_ReadBytesAndPrint
00002626 b2 func ,g * 00002632 b2 func ,g *
FILE=DefaultBuild\i2c.obj FILE=DefaultBuild\i2c.obj
000026d8 00002858 181 000026e4 00002864 181
_disable _disable
000026d8 26 func ,g * 000026e4 26 func ,g *
_I2C_EnablePower _I2C_EnablePower
000026fe 4 func ,g * 0000270a 4 func ,g *
_I2C_DisablePower _I2C_DisablePower
00002702 3 func ,g * 0000270e 3 func ,g *
_I2C_T_Command_Mode_receiveData _I2C_T_Command_Mode_receiveData
00002705 4d func ,g * 00002711 4d func ,g *
_I2C_Command_Mode_receiveData _I2C_Command_Mode_receiveData
00002752 3e func ,g * 0000275e 3e func ,g *
_I2C_Command_Mode_Send _I2C_Command_Mode_Send
00002790 c9 func ,g * 0000279c c9 func ,g *
FILE=DefaultBuild\uart.obj FILE=DefaultBuild\uart.obj
00002859 00002a2e 1d6 00002865 00002a3a 1d6
_rs485_recover _rs485_recover
00002859 56 func ,g * 00002865 56 func ,g *
_UART1_WaitTxIdle@1 _UART1_WaitTxIdle@1
000028af 2c func ,l * 000028bb 2c func ,l *
_rs485_set_tx _rs485_set_tx
000028db b func ,g * 000028e7 b func ,g *
_rs485_init _rs485_init
000028e6 c func ,g * 000028f2 c func ,g *
_UART0_WaitTxDone_Us _UART0_WaitTxDone_Us
000028f2 2f func ,g * 000028fe 2f func ,g *
_RS485_Send _RS485_Send
00002921 1e func ,g * 0000292d 1e func ,g *
_RS485_SendString _RS485_SendString
0000293f 11 func ,g * 0000294b 11 func ,g *
_uart_send_string _uart_send_string
00002950 11 func ,g * 0000295c 11 func ,g *
_uart1_send_string _uart1_send_string
00002961 40 func ,g * 0000296d 40 func ,g *
_uart_send_hex _uart_send_hex
000029a1 43 func ,g * 000029ad 43 func ,g *
_uart1_send_hex _uart1_send_hex
000029e4 4b func ,g * 000029f0 4b func ,g *
FILE=DefaultBuild\delay.obj FILE=DefaultBuild\delay.obj
00002a2f 00002aed bf 00002a3b 00002af9 bf
_delay _delay
00002a2f 18 func ,g * 00002a3b 18 func ,g *
_delay_us _delay_us
00002a47 82 func ,g * 00002a53 82 func ,g *
_delay_ms _delay_ms
00002ac9 25 func ,g * 00002ad5 25 func ,g *
FILE=DefaultBuild\dipSwitch.obj FILE=DefaultBuild\dipSwitch.obj
00002aee 00002afe 11 00002afa 00002b0a 11
_DipSwitch_Init _DipSwitch_Init
00002aee 8 func ,g * 00002afa 8 func ,g *
_DipSwitch_ReadAddr_0to31 _DipSwitch_ReadAddr_0to31
00002af6 9 func ,g * 00002b02 9 func ,g *
FILE=DefaultBuild\gatectrl.obj FILE=DefaultBuild\gatectrl.obj
00002aff 00002ec2 3c4 00002b0b 00002ece 3c4
_Gate_SetByNum _Gate_SetByNum
00002aff 372 func ,g * 00002b0b 372 func ,g *
_Cal_Init _Cal_Init
00002e71 21 func ,g * 00002e7d 21 func ,g *
_Eol_Init _Eol_Init
00002e92 21 func ,g * 00002e9e 21 func ,g *
_GateCtrl_SelectChannel _GateCtrl_SelectChannel
00002eb3 10 func ,g * 00002ebf 10 func ,g *
SECTION=.const SECTION=.const
FILE=DefaultBuild\r_main.obj FILE=DefaultBuild\r_main.obj
@ -706,7 +706,7 @@ FILE=rlink_generates_05
__s.textf __s.textf
00000ac2 0 none ,g * 00000ac2 0 none ,g *
__e.textf __e.textf
00002ec3 0 none ,g * 00002ecf 0 none ,g *
__s.const __s.const
00003000 0 none ,g * 00003000 0 none ,g *
__e.const __e.const

928
DefaultBuild/multical.mot

File diff suppressed because it is too large

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_main.obj

Binary file not shown.

BIN
DefaultBuild/r_systeminit.obj

Binary file not shown.

BIN
DefaultBuild/stkinit.obj

Binary file not shown.

120
QualityReport(multical,DefaultBuild).txt

@ -1,100 +1,22 @@
QualityReport QualityReport
2026년 2월 26일 목요일 오후 3:07:50 2026년 2월 27일 금요일 오후 4:02:12
------ Start build(multical, DefaultBuild) ------ ------ Start build(multical, DefaultBuild) ------
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 ------ Build ended(Error:0, Warning:0)(multical, DefaultBuild) ------
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.
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.
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(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(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(19):W0520301:Typedef name has already been declared (with same type)
uart.h(15):W0520047:Incompatible redefinition of macro "RAM_BYTES" (declared at line 40 of "owi.h")
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)
owi.c(147):W0520177:Function "OWI_StopWrite" was declared but never referenced
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)
i2c.h(8):W0520047:Incompatible redefinition of macro "RAM_BYTES" (declared at line 15 of "uart.h")
r_main.c(595):W0520172:External/internal linkage conflict with previous declaration
r_main.c(799):W0520177:Variable "total_us" was declared but never referenced
r_main.c(800):W0520177:Variable "idle_us" was declared but never referenced
r_main.c(802):W0520177:Variable "got_any" was declared but never referenced
r_main.c(84):W0520177:Variable "s_end_pat" was declared but never referenced
r_main.c(179):W0520177:Function "UART1_SendBytes_Safe" was declared but never referenced
r_main.c(318):W0520177:Function "bridge_wait_until_end" was declared but never referenced
r_main.c(433):W0520177:Function "RS485_FlushJunk" 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:29)(multical, DefaultBuild) ------
--- CommandFile 1 ---
DefaultBuild\multical.clnk :
-Input=DefaultBuild\cstart.obj
-Input=DefaultBuild\stkinit.obj
-Input=DefaultBuild\r_main.obj
-Input=DefaultBuild\r_systeminit.obj
-Input=DefaultBuild\r_cg_cgc.obj
-Input=DefaultBuild\r_cg_cgc_user.obj
-Input=DefaultBuild\r_cg_serial.obj
-Input=DefaultBuild\r_cg_serial_user.obj
-Input=DefaultBuild\r_cg_port.obj
-Input=DefaultBuild\r_cg_port_user.obj
-Input=DefaultBuild\owi.obj
-Input=DefaultBuild\i2c.obj
-Input=DefaultBuild\uart.obj
-Input=DefaultBuild\delay.obj
-Input=DefaultBuild\dipSwitch.obj
-Input=DefaultBuild\gatectrl.obj
-SECURITY_ID=00000000000000000000
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF
-DEBug
-NOCOmpress
-NOOPtimize
-OUtput=DefaultBuild\multical.abs
-OCDBG=84
-DEBUG_MONITOR=3FE00-3FFFF
-USER_OPT_BYTE=E9FFF8
-OCDTR
-LISt=DefaultBuild\multical.map
-SHow=SYmbol,Total_size
-AUTO_SECTION_LAYOUT
-ROm=.data=.dataR
-ROm=.sdata=.sdataR
-NOMessage
-MEMory=High
-NOLOgo
-LIBrary=DefaultBuild\multical.lib
-end
-Input=DefaultBuild\multical.abs
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10PPJ.DVF
-OUtput=DefaultBuild\multical.mot
-FOrm=Stype
-NOMessage
-exit
--- SHA1 hash value of output files --- --- SHA1 hash value of output files ---
C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.abs: 1947f253be33a4aba45260908d2563bea790220c C:\Users\MSI\Desktop\amosense\multical_4251_fw\new_fw\DefaultBuild\multical.abs: a34e0e15d0273217195e73a51272cd2c6445a5d9
C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.mot: 50dc2b3a715b1bb77821df492910d9f9fb500912 C:\Users\MSI\Desktop\amosense\multical_4251_fw\new_fw\DefaultBuild\multical.mot: 8da64306d693b2202e8d009e7b6185556bfed304
--- System Information --- --- System Information ---
*OS Version *OS Version
Microsoft Windows 10 Pro (-, 10.0.19045, WOW64) Microsoft Windows 11 Home (-, 10.0.26200, WOW64)
*Language *Language
한국어(대한민국) 한국어(대한민국)
*.NET Framework Version *.NET Framework Version
Microsoft .NET Framework 4 [.NET 4.8 or later] (533325) Microsoft .NET Framework 4 [.NET 4.8 or later] (533509)
*WebView2 Version *WebView2 Version
145.0.3800.70 145.0.3800.70
@ -107,19 +29,21 @@ C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.mot: 50dc2b3a715b1bb77821df49
V9.13.00.05 [12 Nov 2024] V9.13.00.05 [12 Nov 2024]
*Assembly Version *Assembly Version
3.12.10.1 3.12.10.1
*Sales Area
Japan
*Product License *Product License
*Execution Place *Execution Place
C:\Program Files (x86)\Renesas Electronics\CS+\CC C:\Program Files (x86)\Renesas Electronics\CS+\CC
*Memory Usage *Memory Usage
*Private Working Set *Private Working Set
271 MB 329 MB
*Number of GDI Objects *Number of GDI Objects
2598 2581
*Number of USER Objects *Number of USER Objects
1568 1386
*Opened Files *Opened Files
24 editors, 24 files, 200 KB 25 editors, 25 files, 211 KB
--- Build Tool Plug-in Information --- --- Build Tool Plug-in Information ---
RH850 Build tool CC-RH Plug-in RH850 Build tool CC-RH Plug-in
@ -224,6 +148,20 @@ Editor plug-in DLL
1.1.0.0 1.1.0.0
*DLL File Name *DLL File Name
SEditor.dll SEditor.dll
Smart Configurator for RH850 Communication Plug-in
*Version
V1.02.10.03 [14 Nov 2024]
*Assembly Version
1.0.0.0
*DLL File Name
SmcCodePartRH850.dll
Smart Configurator for RL78 Communication Plug-in
*Version
V1.00.11.01 [25 Nov 2024]
*Assembly Version
1.0.0.0
*DLL File Name
SmcCodePartRL78.dll
Stack Usage Tracer Stack Usage Tracer
*Version *Version
V1.05.00.02 [30 Jul 2014] V1.05.00.02 [30 Jul 2014]
@ -255,7 +193,7 @@ Device Information Common Interface
DeviceInformation.dll DeviceInformation.dll
--- Main Project Information --- --- Main Project Information ---
C:\Users\temp\Desktop\new_fw\multical.mtpj C:\Users\MSI\Desktop\amosense\multical_4251_fw\new_fw\multical.mtpj
Microcontroller Information Microcontroller Information
*R5F10PPJ *R5F10PPJ
*File Name: Version *File Name: Version
@ -296,6 +234,10 @@ Other Tool Information
*Version *Version
V4.13.00.03 [24 May 2023] V4.13.00.03 [24 May 2023]
*None
*None
*Code Generator *Code Generator
Other Information Other Information
*RL78/F14 Code Library *RL78/F14 Code Library

87
gatectrl.c

@ -1,5 +1,4 @@
#include "gatectrl.h" #include "gatectrl.h"
static uint8_t s_ch = 1; static uint8_t s_ch = 1;
#define PORT_BIT_SETCLR(PORT, MASK, ON) \ #define PORT_BIT_SETCLR(PORT, MASK, ON) \
@ -7,7 +6,6 @@ static uint8_t s_ch = 1;
if (ON) { (PORT) |= (uint8_t)(MASK); } \ if (ON) { (PORT) |= (uint8_t)(MASK); } \
else { (PORT) &= (uint8_t)~(MASK); } \ else { (PORT) &= (uint8_t)~(MASK); } \
} while (0) } while (0)
void Gate_SetByNum(uint8_t ch, uint8_t hash_on, uint8_t anaout_on, uint8_t check_on) void Gate_SetByNum(uint8_t ch, uint8_t hash_on, uint8_t anaout_on, uint8_t check_on)
{ {
switch (ch) switch (ch)
@ -57,7 +55,7 @@ void Gate_SetByNum(uint8_t ch, uint8_t hash_on, uint8_t anaout_on, uint8_t check
case 8: /* P12.6, P4.1, P7.0 */ case 8: /* P12.6, P4.1, P7.0 */
PORT_BIT_SETCLR(P12, 0x40, hash_on); // P12.6 PORT_BIT_SETCLR(P12, 0x40, hash_on); // P12.6
PORT_BIT_SETCLR(P4, 0x02, anaout_on); // P4.1 PORT_BIT_SETCLR(P4, 0x02, anaout_on); // P4.1
PORT_BIT_SETCLR(P4, 0x40, check_on); // P7.0 -> p4.6으로 변경 PORT_BIT_SETCLR(P4, 0x40, check_on); // P7.0 -> p4.6
break; break;
case 9: /* P12.7, P5.0, P7.1 */ case 9: /* P12.7, P5.0, P7.1 */
@ -72,65 +70,66 @@ void Gate_SetByNum(uint8_t ch, uint8_t hash_on, uint8_t anaout_on, uint8_t check
PORT_BIT_SETCLR(P10, 0x10, check_on); // P10.4 PORT_BIT_SETCLR(P10, 0x10, check_on); // P10.4
break; break;
case 11: /* P10.3, P5.2, P10.5 */ case 11: /* P9.2, P13.0, P1.4 */
PORT_BIT_SETCLR(P10, 0x08, hash_on); // P10.3 PORT_BIT_SETCLR(P9, 0x04, hash_on); // P9.2
PORT_BIT_SETCLR(P5, 0x04, anaout_on); // P5.2 PORT_BIT_SETCLR(P13, 0x01, anaout_on); // P13.0
PORT_BIT_SETCLR(P10, 0x20, check_on); // P10.5 PORT_BIT_SETCLR(P1, 0x10, check_on); // P1.4
break; break;
case 12: /* P10.2, P6.0, P10.6 */ case 12: /* P9.3, P7.7, P1.3 */
PORT_BIT_SETCLR(P10, 0x04, hash_on); // P10.2 PORT_BIT_SETCLR(P9, 0x08, hash_on); // P9.3
PORT_BIT_SETCLR(P6, 0x01, anaout_on); // P6.0 PORT_BIT_SETCLR(P7, 0x80, anaout_on); // P7.7
PORT_BIT_SETCLR(P10, 0x40, check_on); // P10.6 PORT_BIT_SETCLR(P1, 0x08, check_on); // P1.3
break; break;
case 13: /* P10.1, P6.1, P10.7 */ case 13: /* P9.4, P7.6, P1.0 */
PORT_BIT_SETCLR(P10, 0x02, hash_on); // P10.1 PORT_BIT_SETCLR(P9, 0x10, hash_on); // P9.4
PORT_BIT_SETCLR(P6, 0x02, anaout_on); // P6.1 PORT_BIT_SETCLR(P7, 0x40, anaout_on); // P7.6
PORT_BIT_SETCLR(P10, 0x80, check_on); // P10.7 PORT_BIT_SETCLR(P1, 0x01, check_on); // P1.0
break; break;
case 14: /* P10.0, P7.2, P5.7 */ case 14: /* P9.5, P7.4, P5.4 */
PORT_BIT_SETCLR(P10, 0x01, hash_on); // P10.0 PORT_BIT_SETCLR(P9, 0x20, hash_on); // P9.5
PORT_BIT_SETCLR(P7, 0x04, anaout_on); // P7.2 PORT_BIT_SETCLR(P7, 0x10, anaout_on); // P7.4
PORT_BIT_SETCLR(P5, 0x80, check_on); // P5.7 PORT_BIT_SETCLR(P5, 0x10, check_on); // P5.4
break;
case 15: /* P9.6, P7.5, P5.5 */
PORT_BIT_SETCLR(P9, 0x40, hash_on); // P9.6
PORT_BIT_SETCLR(P7, 0x20, anaout_on); // P7.5
PORT_BIT_SETCLR(P5, 0x20, check_on); // P5.5
break; break;
case 15: /* P9.7, P7.3, P5.6 */ case 16: /* P9.7, P7.3, P5.6 */
PORT_BIT_SETCLR(P9, 0x80, hash_on); // P9.7 PORT_BIT_SETCLR(P9, 0x80, hash_on); // P9.7
PORT_BIT_SETCLR(P7, 0x08, anaout_on); // P7.3 PORT_BIT_SETCLR(P7, 0x08, anaout_on); // P7.3
PORT_BIT_SETCLR(P5, 0x40, check_on); // P5.6 PORT_BIT_SETCLR(P5, 0x40, check_on); // P5.6
break; break;
case 16: /* P9.6, P7.5, P5.5 */ case 17: /* P10.0, P7.2, P5.7 */
PORT_BIT_SETCLR(P9, 0x40, hash_on); // P9.6 PORT_BIT_SETCLR(P10, 0x01, hash_on); // P10.0
PORT_BIT_SETCLR(P7, 0x20, anaout_on); // P7.5 PORT_BIT_SETCLR(P7, 0x04, anaout_on); // P7.2
PORT_BIT_SETCLR(P5, 0x20, check_on); // P5.5 PORT_BIT_SETCLR(P5, 0x80, check_on); // P5.7
break; break;
case 17: /* P9.5, P7.4, P5.4 */ case 18: /* P10.1, P6.1, P10.7 */
PORT_BIT_SETCLR(P9, 0x20, hash_on); // P9.5 PORT_BIT_SETCLR(P10, 0x02, hash_on); // P10.1
PORT_BIT_SETCLR(P7, 0x10, anaout_on); // P7.4 PORT_BIT_SETCLR(P6, 0x02, anaout_on); // P6.1
PORT_BIT_SETCLR(P5, 0x10, check_on); // P5.4 PORT_BIT_SETCLR(P10, 0x80, check_on); // P10.7
break; break;
case 18: /* P9.4, P7.6, P1.0 */ case 19: /* P10.2, P6.0, P10.6 */
PORT_BIT_SETCLR(P9, 0x10, hash_on); // P9.4 PORT_BIT_SETCLR(P10, 0x04, hash_on); // P10.2
PORT_BIT_SETCLR(P7, 0x40, anaout_on); // P7.6 PORT_BIT_SETCLR(P6, 0x01, anaout_on); // P6.0
PORT_BIT_SETCLR(P1, 0x01, check_on); // P1.0 PORT_BIT_SETCLR(P10, 0x40, check_on); // P10.6
break; break;
case 19: /* P9.3, P7.7, P1.3 */ case 20: /* P10.3, P5.2, P10.5 */
PORT_BIT_SETCLR(P9, 0x08, hash_on); // P9.3 PORT_BIT_SETCLR(P10, 0x08, hash_on); // P10.3
PORT_BIT_SETCLR(P7, 0x80, anaout_on); // P7.7 PORT_BIT_SETCLR(P5, 0x04, anaout_on); // P5.2
PORT_BIT_SETCLR(P1, 0x08, check_on); // P1.3 PORT_BIT_SETCLR(P10, 0x20, check_on); // P10.5
break; break;
case 20: /* P9.2, P13.0, P1.4 */
PORT_BIT_SETCLR(P9, 0x04, hash_on); // P9.2
PORT_BIT_SETCLR(P13, 0x01, anaout_on); // P13.0
PORT_BIT_SETCLR(P1, 0x10, check_on); // P1.4
break;
default: default:
break; break;
@ -141,7 +140,7 @@ void Cal_Init(void)
{ {
uint8_t i; uint8_t i;
// P4.7 = 0, P15.7 = 1 (다른 비트 보존!) // P4.7 = 0, P15.7 = 1 ( ? ? !)
PORT_BIT_SETCLR(P4, 0x80, 0); PORT_BIT_SETCLR(P4, 0x80, 0);
PORT_BIT_SETCLR(P15, 0x80, 1); PORT_BIT_SETCLR(P15, 0x80, 1);
@ -154,7 +153,7 @@ void Eol_Init(void)
{ {
uint8_t i; uint8_t i;
// P4.7 = 1, P15.7 = 0 (다른 비트 보존!) // P4.7 = 1, P15.7 = 0 ( ? ? !)
PORT_BIT_SETCLR(P4, 0x80, 1); PORT_BIT_SETCLR(P4, 0x80, 1);
PORT_BIT_SETCLR(P15, 0x80, 1); PORT_BIT_SETCLR(P15, 0x80, 1);
@ -168,5 +167,3 @@ void GateCtrl_SelectChannel(uint8_t ch)
if (ch < 1 || ch > 20) return; if (ch < 1 || ch > 20) return;
s_ch = ch; s_ch = ch;
} }

496
multical.MSI.mtud

File diff suppressed because one or more lines are too long

8
r_main.c

@ -55,7 +55,7 @@ Includes
#define RS485_BRIDGE_FIFO_SZ 2048 #define RS485_BRIDGE_FIFO_SZ 2048
#define BRIDGE_IDLE_DONE_US 5000U // 마지막 바이트 이후 3ms 조용하면 종료로 판단 #define BRIDGE_IDLE_DONE_US 5000U // 마지막 바이트 이후 3ms 조용하면 종료로 판단
#define BRIDGE_TOTAL_WAIT_US 600000U #define BRIDGE_TOTAL_WAIT_US 1290000U
/* ========================= /* =========================
* UART RX Buffers * UART RX Buffers
@ -764,8 +764,9 @@ static void process_one_line(CmdSource src, const volatile uint8_t *rx_buf, uint
RS485_Bridge_DrainToPC(); RS485_Bridge_DrainToPC();
g_rs485_bridge_active = 0; g_rs485_bridge_active = 0;
if (total_us < 50U) { if (total_us < 300U) {
rs485_recover(); rs485_recover();
OUT_PRINT(CMD_SRC_PC, total_us);
OUT_PRINT(CMD_SRC_PC, "Err:rs485_timeout\r\n"); OUT_PRINT(CMD_SRC_PC, "Err:rs485_timeout\r\n");
sprintf(msg, "Err:rs485_timeout fef=%lu ovf=%lu pef=%lu\r\n", sprintf(msg, "Err:rs485_timeout fef=%lu ovf=%lu pef=%lu\r\n",
g_uart0_err_fef, g_uart0_err_ovf, g_uart0_err_pef); g_uart0_err_fef, g_uart0_err_ovf, g_uart0_err_pef);
@ -881,7 +882,8 @@ static void process_one_line(CmdSource src, const volatile uint8_t *rx_buf, uint
RS485_Bridge_DrainToPC(); RS485_Bridge_DrainToPC();
g_rs485_bridge_active = 0; g_rs485_bridge_active = 0;
if (total_us < 50U) { if (total_us < 300U) {
OUT_PRINT(CMD_SRC_PC,total_us);
rs485_recover(); rs485_recover();
OUT_PRINT(CMD_SRC_PC, "Err:rs485_timeout\r\n"); OUT_PRINT(CMD_SRC_PC, "Err:rs485_timeout\r\n");
sprintf(msg, "Err:rs485_timeout fef=%lu ovf=%lu pef=%lu\r\n", sprintf(msg, "Err:rs485_timeout fef=%lu ovf=%lu pef=%lu\r\n",

Loading…
Cancel
Save