Browse Source

add command: x00o

master
gudae 2 months ago
parent
commit
d97ff5cf13
  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. 260
      DefaultBuild/multical.map
  8. 1938
      DefaultBuild/multical.mot
  9. BIN
      DefaultBuild/owi.obj
  10. BIN
      DefaultBuild/r_cg_cgc.obj
  11. BIN
      DefaultBuild/r_cg_cgc_user.obj
  12. BIN
      DefaultBuild/r_cg_port.obj
  13. BIN
      DefaultBuild/r_cg_port_user.obj
  14. BIN
      DefaultBuild/r_cg_serial.obj
  15. BIN
      DefaultBuild/r_cg_serial_user.obj
  16. BIN
      DefaultBuild/r_main.obj
  17. BIN
      DefaultBuild/r_systeminit.obj
  18. BIN
      DefaultBuild/stkinit.obj
  19. BIN
      DefaultBuild/uart.obj
  20. 101
      QualityReport(multical,DefaultBuild).txt
  21. 2
      gatectrl.c
  22. 88
      i2c.c
  23. 2
      i2c.h
  24. 132
      multical.temp.mtud
  25. 85
      owi.c
  26. 4
      owi.h
  27. 26
      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.

260
DefaultBuild/multical.map

@ -1,4 +1,4 @@
Renesas Optimizing Linker (W3.07.00 ) 05-Feb-2026 23:02:14 Renesas Optimizing Linker (W3.07.00 ) 06-Feb-2026 08:29:44
*** Options *** *** Options ***
@ -66,11 +66,11 @@ SECTION START END SIZE ALIGN
.text .text
00000307 000004b9 1b3 1 00000307 000004b9 1b3 1
.textf .textf
000004ba 0000280a 2351 1 000004ba 00002585 20cc 1
.const .const
00003000 00003413 414 2 00003000 0000336d 36e 2
.SLIB .SLIB
00003414 00005cc9 28b6 1 0000336e 00005c23 28b6 1
.monitor2 .monitor2
0003fe00 0003ffff 200 1 0003fe00 0003ffff 200 1
.bss .bss
@ -85,8 +85,8 @@ SECTION START END SIZE ALIGN
*** Total Section Size *** *** Total Section Size ***
RAMDATA SECTION: 00001bf1 Byte(s) RAMDATA SECTION: 00001bf1 Byte(s)
ROMDATA SECTION: 000008ef Byte(s) ROMDATA SECTION: 00000849 Byte(s)
PROGRAM SECTION: 00004dba Byte(s) PROGRAM SECTION: 00004b35 Byte(s)
*** Symbol List *** *** Symbol List ***
@ -292,251 +292,243 @@ FILE=DefaultBuild\r_cg_port.obj
_R_PORT_Create _R_PORT_Create
00001703 59 func ,g * 00001703 59 func ,g *
FILE=DefaultBuild\owi.obj FILE=DefaultBuild\owi.obj
0000175c 00001f28 7cd 0000175c 00001dc7 66c
_OWI_EnablePower
0000175c 1 func ,g *
_OWI_DisablePower
0000175d 1 func ,g *
_GPIO_Clear _GPIO_Clear
0000175e b func ,g * 0000175c b func ,g *
_GPIO_Input _GPIO_Input
00001769 7 func ,g * 00001767 7 func ,g *
_GPIO_Read _GPIO_Read
00001770 9 func ,g * 0000176e 9 func ,g *
_OWI_Init _OWI_Init
00001779 18 func ,g * 00001777 18 func ,g *
_OWI_Start _OWI_Start
00001791 17 func ,g * 0000178f 17 func ,g *
_OWI_Stop _OWI_Stop
000017a8 17 func ,g * 000017a6 17 func ,g *
_OWI_SecureStop _OWI_SecureStop
000017bf 51 func ,g * 000017bd 51 func ,g *
_OWI_WriteBit _OWI_WriteBit
00001810 34 func ,g * 0000180e 34 func ,g *
_OWI_WriteByte _OWI_WriteByte
00001844 2a func ,g * 00001842 2a func ,g *
_OWI_ReadBit _OWI_ReadBit
0000186e 5e func ,g * 0000186c 5e func ,g *
_OWI_ReadByte _OWI_ReadByte
000018cc 32 func ,g * 000018ca 32 func ,g *
_OWI_T_ReadBytesAndPrint _OWI_T_ReadBytesAndPrint
000018fe ff func ,g * 000018fc ff func ,g *
_OWI_A_CommandMode _OWI_A_CommandMode
000019fd 268 func ,g * 000019fb 262 func ,g *
_OWI_Diagnostic
00001c65 156 func ,g *
_OWI_disable _OWI_disable
00001dbb 18 func ,g * 00001c5d 15 func ,g *
_OWI_T_CommandMode _OWI_T_CommandMode
00001dd3 5d func ,g * 00001c72 5d func ,g *
_OWI_CommandMode _OWI_CommandMode
00001e30 4a func ,g * 00001ccf 4a func ,g *
_OWI_ReadBytesAndPrint _OWI_ReadBytesAndPrint
00001e7a af func ,g * 00001d19 af func ,g *
FILE=DefaultBuild\i2c.obj FILE=DefaultBuild\i2c.obj
00001f29 000021cd 2a5 00001dc8 00001f48 181
_disable _disable
00001f29 26 func ,g * 00001dc8 26 func ,g *
_I2C_EnablePower _I2C_EnablePower
00001f4f 4 func ,g * 00001dee 4 func ,g *
_I2C_DisablePower _I2C_DisablePower
00001f53 3 func ,g * 00001df2 3 func ,g *
_I2C_Diagnostic
00001f56 124 func ,g *
_I2C_T_Command_Mode_receiveData _I2C_T_Command_Mode_receiveData
0000207a 4d func ,g * 00001df5 4d func ,g *
_I2C_Command_Mode_receiveData _I2C_Command_Mode_receiveData
000020c7 3e func ,g * 00001e42 3e func ,g *
_I2C_Command_Mode_Send _I2C_Command_Mode_Send
00002105 c9 func ,g * 00001e80 c9 func ,g *
FILE=DefaultBuild\uart.obj FILE=DefaultBuild\uart.obj
000021ce 00002376 1a9 00001f49 000020f1 1a9
_UART1_WaitTxIdle@1 _UART1_WaitTxIdle@1
000021ce 2c func ,l * 00001f49 2c func ,l *
_rs485_set_tx _rs485_set_tx
000021fa b func ,g * 00001f75 b func ,g *
_rs485_init _rs485_init
00002205 c func ,g * 00001f80 c func ,g *
_UART0_WaitTxDone_Us _UART0_WaitTxDone_Us
00002211 2f func ,g * 00001f8c 2f func ,g *
_RS485_Send _RS485_Send
00002240 1e func ,g * 00001fbb 1e func ,g *
_RS485_SendString _RS485_SendString
0000225e 11 func ,g * 00001fd9 11 func ,g *
_uart_send_string _uart_send_string
0000226f 11 func ,g * 00001fea 11 func ,g *
_uart1_send_string _uart1_send_string
00002280 67 func ,g * 00001ffb 67 func ,g *
_uart_send_hex _uart_send_hex
000022e7 48 func ,g * 00002062 48 func ,g *
_uart1_send_hex _uart1_send_hex
0000232f 48 func ,g * 000020aa 48 func ,g *
FILE=DefaultBuild\delay.obj FILE=DefaultBuild\delay.obj
00002377 00002435 bf 000020f2 000021b0 bf
_delay _delay
00002377 18 func ,g * 000020f2 18 func ,g *
_delay_us _delay_us
0000238f 82 func ,g * 0000210a 82 func ,g *
_delay_ms _delay_ms
00002411 25 func ,g * 0000218c 25 func ,g *
FILE=DefaultBuild\dipSwitch.obj FILE=DefaultBuild\dipSwitch.obj
00002436 00002446 11 000021b1 000021c1 11
_DipSwitch_Init _DipSwitch_Init
00002436 8 func ,g * 000021b1 8 func ,g *
_DipSwitch_ReadAddr_0to31 _DipSwitch_ReadAddr_0to31
0000243e 9 func ,g * 000021b9 9 func ,g *
FILE=DefaultBuild\gatectrl.obj FILE=DefaultBuild\gatectrl.obj
00002447 0000280a 3c4 000021c2 00002585 3c4
_Gate_SetByNum _Gate_SetByNum
00002447 372 func ,g * 000021c2 372 func ,g *
_Cal_Init _Cal_Init
000027b9 21 func ,g * 00002534 21 func ,g *
_Eol_Init _Eol_Init
000027da 21 func ,g * 00002555 21 func ,g *
_GateCtrl_SelectChannel _GateCtrl_SelectChannel
000027fb 10 func ,g * 00002576 10 func ,g *
SECTION=.const SECTION=.const
FILE=DefaultBuild\r_main.obj FILE=DefaultBuild\r_main.obj
00003000 00003178 179 00003000 00003178 179
FILE=DefaultBuild\owi.obj FILE=DefaultBuild\owi.obj
0000317a 00003273 fa 0000317a 00003242 c9
FILE=DefaultBuild\i2c.obj FILE=DefaultBuild\i2c.obj
00003274 000033d6 163 00003244 00003331 ee
FILE=DefaultBuild\gatectrl.obj FILE=DefaultBuild\gatectrl.obj
000033d8 00003413 3c 00003332 0000336d 3c
SECTION=.SLIB SECTION=.SLIB
FILE=isdigit FILE=isdigit
00003414 0000341d a 0000336e 00003377 a
_isdigit _isdigit
00003414 0 none ,g * 0000336e 0 none ,g *
FILE=memcpy FILE=memcpy
0000341e 0000342d 10 00003378 00003387 10
_memcpy _memcpy
0000341e 0 none ,g * 00003378 0 none ,g *
FILE=memset FILE=memset
0000342e 0000343b e 00003388 00003395 e
_memset _memset
0000342e 0 none ,g * 00003388 0 none ,g *
FILE=sprintf FILE=sprintf
0000343c 00003534 f9 00003396 0000348e f9
_sprintf _sprintf
0000343c e1 func ,g * 00003396 e1 func ,g *
__REL_sp@1 __REL_sp@1
0000351d 18 func ,l * 00003477 18 func ,l *
FILE=strcpy FILE=strcpy
00003535 00003541 d 0000348f 0000349b d
_strcpy _strcpy
00003535 0 none ,g * 0000348f 0 none ,g *
FILE=strlen FILE=strlen
00003542 0000354c b 0000349c 000034a6 b
_strlen _strlen
00003542 0 none ,g * 0000349c 0 none ,g *
FILE=toupper FILE=toupper
0000354d 0000355a e 000034a7 000034b4 e
_toupper _toupper
0000354d 0 none ,g * 000034a7 0 none ,g *
FILE=_REL_print FILE=_REL_print
0000355b 000054b2 1f58 000034b5 0000540c 1f58
__REL_print __REL_print
0000355b 1046 func ,g * 000034b5 1046 func ,g *
__REL_fltprn@1 __REL_fltprn@1
000045a1 941 func ,l * 000044fb 941 func ,l *
__REL_henkan1@1 __REL_henkan1@1
00004ee2 28 func ,l * 00004e3c 28 func ,l *
__REL_henkan2@1 __REL_henkan2@1
00004f0a 33 func ,l * 00004e64 33 func ,l *
__REL_pri@1 __REL_pri@1
00004f3d 298 func ,l * 00004e97 298 func ,l *
__REL_fltgeti@1 __REL_fltgeti@1
000051d5 19d func ,l * 0000512f 19d func ,l *
__REL_inmod@1 __REL_inmod@1
00005372 141 func ,l * 000052cc 141 func ,l *
FILE=_COM_fdiv FILE=_COM_fdiv
000054b3 000055e0 12e 0000540d 0000553a 12e
__COM_fdiv __COM_fdiv
00005512 0 none ,g * 0000546c 0 none ,g *
FILE=_COM_feq FILE=_COM_feq
000055e1 000055f6 16 0000553b 00005550 16
__COM_feq __COM_feq
000055e1 0 none ,g * 0000553b 0 none ,g *
FILE=_COM_fge FILE=_COM_fge
000055f7 0000560c 16 00005551 00005566 16
__COM_fge __COM_fge
000055f7 0 none ,g * 00005551 0 none ,g *
FILE=_COM_flt FILE=_COM_flt
0000560d 00005622 16 00005567 0000557c 16
__COM_flt __COM_flt
0000560d 0 none ,g * 00005567 0 none ,g *
FILE=_COM_fmul FILE=_COM_fmul
00005623 0000570f ed 0000557d 00005669 ed
__COM_fmul __COM_fmul
0000566e 0 none ,g * 000055c8 0 none ,g *
FILE=_COM_fne FILE=_COM_fne
00005710 00005720 11 0000566a 0000567a 11
__COM_fne __COM_fne
00005710 0 none ,g * 0000566a 0 none ,g *
FILE=_COM_ftosl FILE=_COM_ftosl
00005721 00005728 8 0000567b 00005682 8
__COM_ftosl __COM_ftosl
00005721 0 none ,g * 0000567b 0 none ,g *
FILE=_COM_sidiv FILE=_COM_sidiv
00005729 0000574a 22 00005683 000056a4 22
__COM_sidiv __COM_sidiv
0000572b 0 none ,g * 00005685 0 none ,g *
FILE=_COM_sirem FILE=_COM_sirem
0000574b 0000576a 20 000056a5 000056c4 20
__COM_sirem __COM_sirem
0000574b 0 none ,g * 000056a5 0 none ,g *
FILE=_COM_ulldiv FILE=_COM_ulldiv
0000576b 00005794 2a 000056c5 000056ee 2a
__COM_ulldiv __COM_ulldiv
0000576b 0 none ,g * 000056c5 0 none ,g *
FILE=_COM_ullrem FILE=_COM_ullrem
00005795 000057c5 31 000056ef 0000571f 31
__COM_ullrem __COM_ullrem
00005795 0 none ,g * 000056ef 0 none ,g *
FILE=_REL_f_inf FILE=_REL_f_inf
000057c6 000057cd 8 00005720 00005727 8
__REL_f_inf __REL_f_inf
000057c6 0 none ,g * 00005720 0 none ,g *
FILE=_REL_f_norm FILE=_REL_f_norm
000057ce 000057dd 10 00005728 00005737 10
__REL_f_norm __REL_f_norm
000057ce 0 none ,g * 00005728 0 none ,g *
FILE=_REL_f_round FILE=_REL_f_round
000057de 000057f0 13 00005738 0000574a 13
__REL_f_round __REL_f_round
000057de 0 none ,g * 00005738 0 none ,g *
FILE=_REL_fcmp FILE=_REL_fcmp
000057f1 00005828 38 0000574b 00005782 38
__REL_fcmp __REL_fcmp
000057f1 0 none ,g * 0000574b 0 none ,g *
FILE=_REL_fordered_core FILE=_REL_fordered_core
00005829 00005844 1c 00005783 0000579e 1c
__REL_fordered_core __REL_fordered_core
00005829 0 none ,g * 00005783 0 none ,g *
FILE=_REL_ftol FILE=_REL_ftol
00005845 00005879 35 0000579f 000057d3 35
__REL_ftol __REL_ftol
00005845 0 none ,g * 0000579f 0 none ,g *
FILE=_REL_lldiv FILE=_REL_lldiv
0000587a 00005a7f 206 000057d4 000059d9 206
__REL_lldiv __REL_lldiv
00005896 0 none ,g * 000057f0 0 none ,g *
FILE=_REL_llrem FILE=_REL_llrem
00005a80 00005c83 204 000059da 00005bdd 204
__REL_llrem __REL_llrem
00005a9d 0 none ,g * 000059f7 0 none ,g *
FILE=_REL_ltosl FILE=_REL_ltosl
00005c84 00005ca8 25 00005bde 00005c02 25
__REL_ltosl __REL_ltosl
00005c84 0 none ,g * 00005bde 0 none ,g *
FILE=_COM_lshr FILE=_COM_lshr
00005ca9 00005cc9 21 00005c03 00005c23 21
__COM_lshr __COM_lshr
00005cb3 0 none ,g * 00005c0d 0 none ,g *
SECTION=.monitor2 SECTION=.monitor2
FILE=rlink_generates_02 FILE=rlink_generates_02
@ -694,11 +686,11 @@ FILE=rlink_generates_05
__s.textf __s.textf
000004ba 0 none ,g * 000004ba 0 none ,g *
__e.textf __e.textf
0000280b 0 none ,g * 00002586 0 none ,g *
__s.const __s.const
00003000 0 none ,g * 00003000 0 none ,g *
__e.const __e.const
00003414 0 none ,g * 0000336e 0 none ,g *
__s.constf __s.constf
00000080 0 none ,g * 00000080 0 none ,g *
__e.constf __e.constf
@ -736,9 +728,9 @@ FILE=rlink_generates_05
__e.RLIB __e.RLIB
000000c4 0 none ,g * 000000c4 0 none ,g *
__s.SLIB __s.SLIB
00003414 0 none ,g * 0000336e 0 none ,g *
__e.SLIB __e.SLIB
00005cca 0 none ,g * 00005c24 0 none ,g *
__s.option_byte __s.option_byte
000000c0 0 none ,g * 000000c0 0 none ,g *
__e.option_byte __e.option_byte

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

Binary file not shown.

BIN
DefaultBuild/r_systeminit.obj

Binary file not shown.

BIN
DefaultBuild/stkinit.obj

Binary file not shown.

BIN
DefaultBuild/uart.obj

Binary file not shown.

101
QualityReport(multical,DefaultBuild).txt

@ -1,22 +1,81 @@
QualityReport QualityReport
2026년 2월 5일 목요일 오후 11:05:49 2026년 2월 6일 금요일 오전 8:29:47
------ Start build(multical, DefaultBuild) ------ ------ Start build(multical, DefaultBuild) ------
------ 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.
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 39 of "owi.h")
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:11)(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\MSI\Desktop\amosense\mulitcabration_4251_developement_fw\new_fw\DefaultBuild\multical.abs: 2876195a927db94261b433408811d19472d704ac C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.abs: 4d66db4b3b1de58c285f90567be058971d482a97
C:\Users\MSI\Desktop\amosense\mulitcabration_4251_developement_fw\new_fw\DefaultBuild\multical.mot: 0003bd530482102d0db1c7bd747ec1482d4e2935 C:\Users\temp\Desktop\new_fw\DefaultBuild\multical.mot: 70c9354de8f93dad232181dbf0629148fca1f09f
--- System Information --- --- System Information ---
*OS Version *OS Version
Microsoft Windows 11 Home (-, 10.0.26200, WOW64) Microsoft Windows 10 Pro (-, 10.0.19045, WOW64)
*Language *Language
한국어(대한민국) 한국어(대한민국)
*.NET Framework Version *.NET Framework Version
Microsoft .NET Framework 4 [.NET 4.8 or later] (533509) Microsoft .NET Framework 4 [.NET 4.8 or later] (533325)
*WebView2 Version *WebView2 Version
144.0.3719.93 144.0.3719.93
@ -29,21 +88,19 @@ C:\Users\MSI\Desktop\amosense\mulitcabration_4251_developement_fw\new_fw\Default
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
314 MB 340 MB
*Number of GDI Objects *Number of GDI Objects
2580 2671
*Number of USER Objects *Number of USER Objects
1407 1634
*Opened Files *Opened Files
25 editors, 25 files, 206 KB 25 editors, 25 files, 223 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
@ -148,20 +205,6 @@ 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]
@ -193,7 +236,7 @@ Device Information Common Interface
DeviceInformation.dll DeviceInformation.dll
--- Main Project Information --- --- Main Project Information ---
C:\Users\MSI\Desktop\amosense\mulitcabration_4251_developement_fw\new_fw\multical.mtpj C:\Users\temp\Desktop\new_fw\multical.mtpj
Microcontroller Information Microcontroller Information
*R5F10PPJ *R5F10PPJ
*File Name: Version *File Name: Version
@ -234,10 +277,6 @@ 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

2
gatectrl.c

@ -141,7 +141,7 @@ void Cal_Init(void)
{ {
uint8_t i; uint8_t i;
// P4.7 = 0, P15.7 = 0 (다른 비트 보존!) // 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);

88
i2c.c

@ -87,94 +87,6 @@ void I2C_DisablePower(void) {
} }
/**
* : I2C_Diagnostic
* : I2C UART로
*
* :
* - id : I2C
*
* : (void)
*
* :
* 1) CMD_LIST
* - 10
* - 3: { , 1, 2}
*
* 2) CMD_LIST I2C
* - R_IICA0_Master_Send()
* - R_IICA0_Master_Receive()
* - (rx[1], rx[2]) UART (line)
* - CMD
* - / delay로
*
* 3) UART
* - (line) UART로
* - CRLF
*
* :
* - RAM_BYTES는 I2C
* - UART CMD별 2 HEX로
* - I2C
*/
void I2C_Diagnostic(uint8_t id )
{
uint8_t CMD_LIST[10][3] = {
{0x2E, 0x01, 0x00}, // BR
{0x2E, 0x00, 0x00}, // BR_AZ
{0x2E, 0x02, 0x00}, // T_RAW
{0x2E, 0x03, 0x00}, // Y_data
{0x2E, 0x21, 0x00}, // BR_AOUT
{0x2E, 0x40, 0x00},
{0x2E, 0x05, 0x00},
{0x2E, 0x07, 0x00},
{0x2E, 0x19, 0x00},
{0x2E, 0x0B, 0x00}
};
char line[128];
size_t n = 0;
uint8_t rx[RAM_BYTES] = {0};
int j;
// 2) CMD_LIST 순서대로 I2C 읽기
for (j = 0; j < 10; j++) {
if (R_IICA0_Master_Send((id << 1), CMD_LIST[j], 3, 100) != MD_OK) {
HOST_PRINT("I2C Send Failed\r\n");
return;
}
delay(10000);
if (R_IICA0_Master_Receive((id << 1), rx, RAM_BYTES, 100) != MD_OK) {
HOST_PRINT("I2C Receive Failed\r\n");
return;
}
delay(10000);
n += sprintf(&line[n], "%02X%02X", rx[1], rx[2]);
// 마지막 CMD 뒤에는 쉼표 붙이지 않음
if (j < 9) {
line[n++] = ',';
}
}
// 마지막에 CRLF
line[n++] = '\r';
line[n++] = '\n';
line[n] = '\0';
HOST_PRINT(line);
delay(10000);
}
/** /**
* : I2C_T_Command_Mode_receiveData * : I2C_T_Command_Mode_receiveData
* : I2C (tx_data) , UART로 * : I2C (tx_data) , UART로

2
i2c.h

@ -18,7 +18,7 @@ void I2C_T_Command_Mode_receiveData(const uint8_t *tx_data, uint8_t tx_len,uint8
void I2C_A_Command_Mode_receiveData(const uint8_t *tx_data, uint8_t tx_len,uint8_t id ); void I2C_A_Command_Mode_receiveData(const uint8_t *tx_data, uint8_t tx_len,uint8_t id );
void I2C_Command_Mode_receiveData(const uint8_t *tx_data, uint8_t tx_len,uint8_t id ); void I2C_Command_Mode_receiveData(const uint8_t *tx_data, uint8_t tx_len,uint8_t id );
void I2C_Command_Mode_Send(uint8_t tx_len, uint8_t id); void I2C_Command_Mode_Send(uint8_t tx_len, uint8_t id);
void I2C_Diagnostic(uint8_t id);
void disable(void); void disable(void);

132
multical.temp.mtud

File diff suppressed because one or more lines are too long

85
owi.c

@ -7,19 +7,6 @@
/* 내부 상태 */ /* 내부 상태 */
static uint32_t bit_period_us = OWI_BIT_PERIOD_US; static uint32_t bit_period_us = OWI_BIT_PERIOD_US;
/* =========================================================
* Power Control (: , X)
* ========================================================= */
void OWI_EnablePower(void)
{
/* no-op */
}
void OWI_DisablePower(void)
{
/* no-op */
}
/* ========================================================= /* =========================================================
* GPIO helpers (P70 / HW Open-Drain) * GPIO helpers (P70 / HW Open-Drain)
* - LOW : + 0 * - LOW : + 0
@ -217,7 +204,6 @@ void OWI_A_CommandMode(const uint8_t *tx_data, uint8_t tx_len, uint8_t id)
int i, j, retry, all_ff; int i, j, retry, all_ff;
uint8_t read_address = 0x51; uint8_t read_address = 0x51;
OWI_EnablePower();
delay_us(7000); delay_us(7000);
for (j = 0; j < 6; j++) { for (j = 0; j < 6; j++) {
@ -247,7 +233,6 @@ void OWI_A_CommandMode(const uint8_t *tx_data, uint8_t tx_len, uint8_t id)
if (!all_ff) break; if (!all_ff) break;
if (retry == OWI_MAX_RETRY) { if (retry == OWI_MAX_RETRY) {
OWI_DisablePower();
return; return;
} }
} }
@ -285,7 +270,6 @@ void OWI_A_CommandMode(const uint8_t *tx_data, uint8_t tx_len, uint8_t id)
if (!all_ff) break; if (!all_ff) break;
if (retry == OWI_MAX_RETRY) { if (retry == OWI_MAX_RETRY) {
OWI_DisablePower();
return; return;
} }
} }
@ -301,80 +285,11 @@ void OWI_A_CommandMode(const uint8_t *tx_data, uint8_t tx_len, uint8_t id)
HOST_PRINT(line); HOST_PRINT(line);
delay(10000);
OWI_DisablePower();
}
void OWI_Diagnostic(uint8_t id)
{
uint8_t CMD_LIST[10][4] = {
{0x50,0x2E,0x01,0x00},
{0x50,0x2E,0x00,0x00},
{0x50,0x2E,0x02,0x00},
{0x50,0x2E,0x03,0x00},
{0x50,0x2E,0x21,0x00},
{0x50,0x2E,0x04,0x00},
{0x50,0x2E,0x05,0x00},
{0x50,0x2E,0x07,0x00},
{0x50,0x2E,0x19,0x00},
{0x50,0x2E,0x0B,0x00}
};
char line[128];
size_t n = 0;
uint8_t rx[RAM_BYTES];
int i, j, retry, all_ff;
uint8_t read_address = 0x51;
(void)id;
for (j = 0; j < 10; j++) {
OWI_SecureStop();
for (i = 0; i < 4; i++) {
OWI_WriteByte(CMD_LIST[j][i]);
}
OWI_Stop();
delay_us(OWI_RECOVERY_MIN_US);
for (i = 0; i < RAM_BYTES; i++) rx[i] = 0xFF;
for (retry = 0; retry <= OWI_MAX_RETRY; retry++) {
delay_us(OWI_RECOVERY_MIN_US);
OWI_SecureStop();
OWI_WriteByte(read_address);
for (i = 0; i < RAM_BYTES; i++) rx[i] = OWI_ReadByte();
OWI_Stop();
all_ff = 1;
for (i = 0; i < RAM_BYTES; i++) {
if (rx[i] != 0xFF) { all_ff = 0; break; }
}
if (!all_ff) break;
if (retry == OWI_MAX_RETRY) {
OWI_DisablePower();
return;
}
}
n += sprintf(&line[n], "%02X%02X", rx[1], rx[2]);
if (j < 9) line[n++] = ',';
}
line[n++] = '\r';
line[n++] = '\n';
line[n] = '\0';
HOST_PRINT(line);
delay(10000); delay(10000);
} }
void OWI_disable(void) void OWI_disable(void)
{ {
OWI_DisablePower();
HOST_PRINT("51\r\n"); HOST_PRINT("51\r\n");
} }

4
owi.h

@ -42,8 +42,6 @@
/* ========================================================= /* =========================================================
* API * API
* ========================================================= */ * ========================================================= */
void OWI_EnablePower(void); /* no-op */
void OWI_DisablePower(void); /* no-op */
void GPIO_Clear(void); void GPIO_Clear(void);
void GPIO_Input(void); void GPIO_Input(void);
@ -67,8 +65,6 @@ void OWI_CommandMode (const uint8_t *tx_data, uint8_t tx_len, uint8_t id);
void OWI_A_CommandMode(const uint8_t *tx_data, uint8_t tx_len, uint8_t id); void OWI_A_CommandMode(const uint8_t *tx_data, uint8_t tx_len, uint8_t id);
void OWI_disable(void); void OWI_disable(void);
void OWI_Diagnostic(uint8_t id);
#endif /* OWI_H */ #endif /* OWI_H */

26
r_main.c

@ -392,6 +392,18 @@ static void send_n_response(uint8_t addr)
OUT_PRINT(CMD_SRC_PC, resp); OUT_PRINT(CMD_SRC_PC, resp);
} }
static int parse_x_o_cmd(const char *s, int len, uint8_t *addr)
{
if (len != 4) return 0;
if (!(s[0] == 'x' || s[0] == 'X')) return 0;
if (!isdigit((unsigned char)s[1]) || !isdigit((unsigned char)s[2])) return 0;
if (!(s[3] == 'o' || s[3] == 'O')) return 0;
*addr = (uint8_t)((s[1]-'0')*10 + (s[2]-'0'));
return 1;
}
/* ? 여기서도 OUT_PRINT가 Safe를 타므로 깨짐 없음 */ /* ? 여기서도 OUT_PRINT가 Safe를 타므로 깨짐 없음 */
static void send_v_response(CmdSource src, uint8_t addr) static void send_v_response(CmdSource src, uint8_t addr)
{ {
@ -661,6 +673,20 @@ static void process_one_line(CmdSource src, const volatile uint8_t *rx_buf, uint
} }
return; return;
} }
{
uint8_t off_addr = 0;
if (parse_x_o_cmd(line, idx, &off_addr)) {
if (off_addr == g_fixed_addr) {
Cal_Init(); // 여기 한 줄로 “전체 OFF(기본 상태)”로
OUT_PRINT(src, "<ACK>OFF\r\n");
send_end_response(); // GUI가 멀티라인이면 <end>가 편함
}
return;
}
}
/* RS485 중계용 원본 저장 */ /* RS485 중계용 원본 저장 */
orig_len = idx; orig_len = idx;

Loading…
Cancel
Save