embeded/renesas2025. 5. 8. 16:45

리눅스(x86) 에서 작동 확인

 

$ ./rfp-cli -device RA -port /dev/ttyUSB0 -read dump.bin
Renesas Flash Programmer CLI V1.12
Module Version: V3.19.00.000

Connecting the tool (COM port)
Tool: /dev/ttyUSB0
Interface: 2 wire UART

Connecting the target device
Speed: 115,200 bps
Connected

Reading data from the device
  [Code Flash 1]       00000000 - 001FFFFF
  93% [======================================================>     ]

 

-device 옵션은 필수로 들어가야 하고

 

메뉴얼을 보면 도구에서 uart가 있어야 할 것 같은데 이건 아예 지정하지 않아도 된다.

 

장치와 접속 방법만 알려주면 작동할 용도가 없어서 no operation 뜨고 종료된다.

$ ./rfp-cli -device RA -port /dev/ttyUSB0
Renesas Flash Programmer CLI V1.12
Module Version: V3.19.00.000

Connecting the tool (COM port)
Tool: /dev/ttyUSB0
Interface: 2 wire UART


Disconnecting the tool

No operation

 

-write* 은 특정 영역에 값을 쓸 수 있고

-write32 <addr> <data>[,<data>...]
-writebit <addr> <pos> <bitdata>

 

-read 는 읽어서 파일에 쓸 수 있고

-read <file>, -r <file>
-read-bin <addr> <size> <file>, -rb <addr> <size> <file>
-read-view <addr> <size>, -rv <addr> <size>

 

-erase , -program 으로 장치를 삭제할 수 있다.

-erase, -e Erases flash memory of the device.
-program, -p Erases the range for writing to the device and writes to the device.
-erase-chip Erases all data in the flash memory of the device and clears the configuration settings.

 

파일 지정은 가장 마지막에 해주면 된다.

rfp-cli [option...] [hexfile...]

 

 

Posted by 구차니