Author Topic: Battery grip pins / UART  (Read 49146 times)

vth

  • New to the forum
  • *
  • Posts: 2
Re: Battery grip pins / UART
« Reply #75 on: October 28, 2021, 09:00:22 AM »
Not found yet working UART pinout for Canon 5D mark II (I need it for repair purpose) and here is one:

Also I digged JTAG pinout, but haven't checked it yet.
Also here is JTAG and UART pinout for processors used in old cameras:Digic 4 CK4-1249 and Digic 4 CH4-6405 (they are same at this small part)

coon

  • Developer
  • Member
  • *****
  • Posts: 112
Re: Battery grip pins / UART
« Reply #76 on: February 07, 2022, 09:45:08 PM »
Today I've made some further experiments on RP debug connector and I've found out when pulling pin 5 low, MPU gives the following output when battery power is applied:

Code: [Select]
RSTFLG : 0009
!!!MPU Forced Wakeup!!!
setCCSnkRst
disableBattUVLOInt
Reg0D: 00/00, Reg14: 7F/7F
setCCSnkRst
E0ON
E1ON
initBattery

MON>>>sw task Initialize Complete
/USB_DET undetected
batt task Initialize Complete
adapter task Initialize Complete
temp task Initialize Complete
disp task Initialize Complete
acc task Initialize Complete
setCCSnkRst

This will boot MPU and ICU, even when battery door is open, and also won't shut it down when opening battery door. Thus the last unknown pin is /MPU_FORCED_WAKEUP
We do now know the full pinout of the debug connector of modern cams (200D, R, RP, R6, R5 etc.):

Code: [Select]
1: VCC_ICU (1v8)
2: RX_ICU (1v8)
3: TX_ICU (1v8)
4: GND
5: /MPU_FORCED_WAKEUP (3v3)
6: TX_MPU (3v3)
7: RX_MPU (3v3)
8: VCC_MPU (3v3)

It's not possible to power camera through debug connector, as not all parts in camera will be supplied with power. MPU will refuse to boot with low battery warning. Therefore I think the pins are meant so be "sense' pins, so one does now if MPU and ICU are currently powered. Instead 7.2V have to be provided via battery connector, or alternatively via the test pads next to it:



EOS RP

coon

  • Developer
  • Member
  • *****
  • Posts: 112
Re: Battery grip pins / UART
« Reply #77 on: March 25, 2022, 03:33:49 PM »
Meanwhile I have soldered the unpopulated connector, next to the UART one on RPs mainboard. I can confirm that a JST 08FZC-SM1-GAN-TB(HF) fits perfectly. It can directly be ordered from JST.

While analyzing the port I have found out it exposes JTAG pins:

Code: [Select]
1: SWCLK (3v3)
2: GND
3: SWDIO (3v3)
4:
5:
6:
7: VCC_MPU (3v3)
8: /RST (3v3)



However:
- It's not full JTAG but SWD, a simplified one wire variant of JTAG.
- Only JTAG pins of MPU are available. It would be more interesting of having JTAG for ICU
- Readout protection seems to be activated as I wasn't able to read out anything from MPU. Thus I probably need to erase and reflash MPU firmware before I am able to use SWD features. As I don't want to brick it I won't do this right now.
- 3 pins are still unknown

Kinda interesting but seems not very useful to me yet.
EOS RP

kitor

  • Developer
  • Senior
  • *****
  • Posts: 350
Re: Battery grip pins / UART
« Reply #78 on: April 28, 2022, 08:56:46 AM »
Not found yet working UART pinout for Canon 5D mark II (I need it for repair purpose) and here is one:

As the image URL is broken, here are the images:
https://photo-parts.com.ua/parts/imgbrowse.php?folder=IMG_STORE/Canon%205D%20mark%20II%20PCB/
Too many Canon cameras.