Author Topic: Renesas/Hitachi H8/36049 EPROM signals to pins mapping  (Read 2492 times)

0 Members and 3 Guests are viewing this topic.

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« on: July 10, 2024, 07:42:59 am »
Hi, I'm looking for any information about EPROM signals to pins mapping for Renesas H8/36049 family group, specifically about flash version HD64F36049 MCU. Unfortunately it is not described in the hardware manual for this MCU. It should look something like this (taken from hardware manual for other MCU family from the same manufacturer):
2307065-0
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #1 on: July 10, 2024, 10:17:44 pm »
I see one way. You need to create hardware environment with FPGA and scan the pins. But this mcu is really “tiny” and no one needs it. Renesas bought mcu from Hitachi and quickly convert it to a junk.
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4094
  • Country: nl
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #2 on: July 11, 2024, 05:57:50 am »
@gashtaan,

are you sure that the H8/300 series is even capable of supporting external memory in such that it can directly address it from the CPU core?

I looked at the general manual here: https://www.manualslib.com/manual/1851554/Hitachi-H8-300l-Series.html and did not find any indication that it can.

The example connection you show might be a setup where the code emulates an address and data bus to read data from an external memory device, but that it can't be used to run code from.

No expert on the H8/300 series though, so I might be wrong.

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #3 on: July 11, 2024, 07:09:05 am »
are you sure that the H8/300 series is even capable of supporting external memory in such that it can directly address it from the CPU core?
You got it wrong. I want to directly address internal flash memory, not the opposite. It's vaguely described in hardware manuals as "Programmer mode".
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2303
  • Country: fi
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #4 on: July 11, 2024, 11:38:37 am »
So you want to read its program?

One of the basic no-nos, I guess.
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #5 on: July 11, 2024, 12:51:47 pm »
One of the basic no-nos, I guess.
No, this is industrial mcu in the past. 20 years ago closed read was bad form. Mostly locks needed to steal software, close/cifer and nobody can catch. Otherwise, a signature is enough.

For example, a major accident occurred due to the fault of electronics. 10 mcu can be read, but one is blocked. Who will get problems?
« Last Edit: July 11, 2024, 01:12:37 pm by Postal2 »
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4094
  • Country: nl
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #6 on: July 11, 2024, 04:39:11 pm »
are you sure that the H8/300 series is even capable of supporting external memory in such that it can directly address it from the CPU core?
You got it wrong. I want to directly address internal flash memory, not the opposite. It's vaguely described in hardware manuals as "Programmer mode".

You should have worded your question more clear then.  >:D

See chapter 19 in the manual found here: https://www.farnell.com/datasheets/1500333.pdf

It shows an adapter for the H8/3048F, but might be the same as what you already found and suited for the one you are searching for.

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #7 on: July 11, 2024, 05:19:28 pm »
You should have worded your question more clear then.  >:D

See chapter 19 in the manual found here: https://www.farnell.com/datasheets/1500333.pdf

It shows an adapter for the H8/3048F, but might be the same as what you already found and suited for the one you are searching for.
Ok, maybe I should. I thought it was clear what information I need, especially when I put related table from other datasheet in the post. I just need to know on what pins are EPROM address/data lines and control signals exposed when MCU is reset to programmer mode.

I've seen few other datasheets of different groups, every single one has EPROM mapped to different pins. Hard to say if H8/3048F is the same mapping as H8/36049F. I rather not guess.
 

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #8 on: July 11, 2024, 05:26:32 pm »
So you want to read its program?

One of the basic no-nos, I guess.
Yes, I do. I have a hobby of extracting firmwares out of various devices (even the protected ones) and then reverse engineer them to document how they works or create alternative firmwares. But I never publish extracted firmwares or my techniques how to overcome MCU protections... for ethical reasons.
You can see some of my work here: https://github.com/gashtaan
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2303
  • Country: fi
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #9 on: July 11, 2024, 06:13:03 pm »
You can make it kosher by having a third party for coding.

That's the original Compaq method for cloning IBM PC.
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #10 on: July 11, 2024, 07:36:49 pm »
What the device on this "tiny" chip, alarm-clock? Electric kettle?
 

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #11 on: July 11, 2024, 07:56:43 pm »
What the device on this "tiny" chip, alarm-clock? Electric kettle?
80pin 16bit MCU with 96kB flash in alarm-clock or kettle? It would be a bit too much IMO. Even if it can't run Linux or Doom, but it's used in rather complex boiler system.
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #12 on: July 11, 2024, 08:16:56 pm »
I see "BCD"-format inside - I seem alarm-clock. You can try manually check pins for CE and OE, but I recommend FPGA instead because need calculations for address and data lines.

I will start the project for FPGA, it seems to be interested.
« Last Edit: July 11, 2024, 08:38:31 pm by Postal2 »
 

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #13 on: July 12, 2024, 04:20:04 am »
I see "BCD"-format inside - I seem alarm-clock. You can try manually check pins for CE and OE, but I recommend FPGA instead because need calculations for address and data lines.
It could have also ~PGM and/or ~WE exposed, some family does. These are tricky, because even data lines could be in high impedance mode when those signals are driven low. It seems at least data lines are always consecutive on single IO port, my idea was to exploit this fact to find out on what port group these are. ~PGM/~WE signals would make the brute force approach more difficult.

The best would be to have some spare ICs to decap and just see where bond wires go. But those are hard to get and/or too expensive to just throw them into the bin :\ I have only single sample and I can't damage it.
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #14 on: July 12, 2024, 05:59:20 am »
....But those are hard to get and/or too expensive to just throw them into the bin :\ I have only single sample and I can't damage it.
You need to buy spare chips for testing first. They are cheap like a dog soap.
https://aliexpress.com/item/1005006994759425.html

Approx. 10 times cheaper than SH7047.

I ordered.
« Last Edit: July 12, 2024, 06:19:52 am by Postal2 »
 
The following users thanked this post: gashtaan

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #15 on: July 12, 2024, 06:20:30 am »
You need to buy spare chips for testing first. They are cheap like a dog soap.
https://aliexpress.com/item/1005006994759425.html

Approx. 10 times cheaper than SH7047.
You're right, thanks! I always searched for HD64F36049GHV ::) Version without G should suffice enough for such research... if they are not some fakes :)

Anyway, how did you find it? I've tried to search "HD64F36049HV" and "DF36049HV" on aliexpress, but it not give me the item you're referring to. Weird.
« Last Edit: July 12, 2024, 07:15:43 am by gashtaan »
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #16 on: July 12, 2024, 09:39:07 am »
.... how did you find it? ....
I didn’t see any difficulties with this, but at first I was offered an expensive option.
This mcu has 96KB of memory because the bootrom takes up exactly 32. It is most likely exactly the same as the SH7047. You can search for holes in it according to your hobby, I have attached the file.
 

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #17 on: July 12, 2024, 09:49:31 am »
This mcu has 96KB of memory because the bootrom takes up exactly 32. It is most likely exactly the same as the SH7047. You can search for holes in it according to your hobby, I have attached the file.
SH7047 is 32bit MCU, H8/36049 is 16bit MCU and completely different architecture... obviously the bootloader can't be the same.
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #18 on: July 12, 2024, 09:53:05 am »
... obviously the bootloader can't be the same. ....
It most likely contain the same C-code compiled differently. Because size is matched.

And you can compare algorithm for flash - very similar.
« Last Edit: July 12, 2024, 09:58:27 am by Postal2 »
 

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #19 on: July 12, 2024, 10:01:35 am »
It most likely contain the same C-code compiled differently. Because size is matched.
I doubt that. How do you know that bootrom in H8/36049 has 32kB? Seems a bit excessive. Bootrom in Renesas M16C has 4kB for example.
« Last Edit: July 12, 2024, 10:16:57 am by gashtaan »
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #20 on: July 12, 2024, 10:13:00 am »
I doubt that. ....
Okay. I repeat - see datasheet for SH7047 and compare. And write your advice after.
 

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #21 on: July 12, 2024, 10:16:47 am »
Okay. I repeat - see datasheet for SH7047 and compare. And write your advice after.
I've looked on datasheet and there are some similarities for sure... but for example H8/36049 erases the flash before it accepts the programming code, SH7047 do it in different order.
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #22 on: July 12, 2024, 10:27:54 am »
I've looked on datasheet and there are some similarities for sure...
Pages about flash of your mcu looks like a copy from SH7047. What's not clear?
 

Offline gashtaanTopic starter

  • Regular Contributor
  • *
  • Posts: 60
  • Country: sk
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #23 on: July 12, 2024, 10:31:07 am »
Pages about flash of your mcu looks like a copy from SH7047. What's not clear?
Yes, it looks like a copy at the first sight... until you actually read it.
 

Online Postal2

  • Frequent Contributor
  • **
  • Posts: 317
  • Country: ru
Re: Renesas/Hitachi H8/36049 EPROM signals to pins mapping
« Reply #24 on: July 12, 2024, 10:45:20 am »
Okay.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf