mcu reading and writing .

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • petehall347
    Badcaps Legend
    • Jan 2015
    • 4427
    • United Kingdom

    #1

    mcu reading and writing .

    please tell me what i need to read one of these in the photo and write to a new one ? i would of course prefer to be reading one still on the board .
    Attached Files
  • redwire
    Badcaps Legend
    • Dec 2010
    • 3910
    • Canada

    #2
    Re: mcu reading and writing .

    It seems to be an obsolete Renesas RL78-core MCU R5F10268 8KB FLASH. It looks like a chinese make of the IC by Shenzhen Zhouhengli Technology Co.

    I see 5V serial-data pad on the PCB which would be used for programming/debug. You'd have to read the MCU programming datasheet to see if reading out the program is possible at all, there can be a code protect bit set to prevent this.
    And we have no idea if the original bootloader is still there, it can be over-ridden to free up more memory.

    Comment

    • eccerr0r
      Solder Sloth
      • Nov 2012
      • 8701
      • USA

      #3
      Re: mcu reading and writing .

      speaking of microcontrollers... nowadays...

      1 - how many of them do not have read / write protect fuse bits?
      and
      2 - how many manufacturers leave them unprogrammed and allow reading?

      Comment

      • petehall347
        Badcaps Legend
        • Jan 2015
        • 4427
        • United Kingdom

        #4
        Re: mcu reading and writing .

        its in a greenworks 82v battery pack .i have access to working ones ,,this one decided to short at 1.6 ohms between vss and vdd .. think it was maybe ok before i soldered a wire back to a cell in the pack that was broken .
        charger reported faulty pack . a jump start normally works but someone had been inside before me .

        Comment

        • petehall347
          Badcaps Legend
          • Jan 2015
          • 4427
          • United Kingdom

          #5
          Re: mcu reading and writing .

          is there any chance it will write itself like car ecu.s can ? i know it talks to the charger if that means anything. i am having to learn about these things to feed myself .
          thinking about it though i guess the charger just switches it on ..
          Last edited by petehall347; 05-21-2021, 05:15 PM.

          Comment

          • eccerr0r
            Solder Sloth
            • Nov 2012
            • 8701
            • USA

            #6
            Re: mcu reading and writing .

            doubt it... it would probably need to expose more contacts to the charger to write when there may not be a need to....

            Hate it when I work on something that someone else had worked on before...mostly if they made it worse...

            Comment

            • petehall347
              Badcaps Legend
              • Jan 2015
              • 4427
              • United Kingdom

              #7
              Re: mcu reading and writing .

              what is the best lower price tool i need to at least try and read a good one of these chips and write to a new one ?

              Comment

              • stj
                Great Sage 齊天大聖
                • Dec 2009
                • 31091
                • Albion

                #8
                Re: mcu reading and writing .

                specialist shit like that, your best bet is scouring the net for a homebrew solution like an arduino
                otherwise only manufacturer tools or very expensive universal programmers are likely to handle it.

                start with a datasheet.

                Comment

                • petehall347
                  Badcaps Legend
                  • Jan 2015
                  • 4427
                  • United Kingdom

                  #9
                  Re: mcu reading and writing .

                  been looking at the datasheet and cant see anything about read protect . but i did skip through it . https://cdn.badcaps-static.com/pdfs/...d62d2399f6.pdf
                  having something that will at least be capable to read it is needed the most .
                  Last edited by petehall347; 05-24-2021, 04:26 PM.

                  Comment

                  • SMDFlea
                    Super Moderator
                    • Jan 2018
                    • 21197
                    • UK

                    #10
                    Re: mcu reading and writing .

                    Originally posted by petehall347
                    been looking at the datasheet and cant see anything about read protect . but i did skip through it . https://cdn.badcaps-static.com/pdfs/...d62d2399f6.pdf
                    having something that will at least be capable to read it is needed the most .
                    See chapter 24 of the RL78/G12 User's Manual -
                    All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

                    Comment

                    • petehall347
                      Badcaps Legend
                      • Jan 2015
                      • 4427
                      • United Kingdom

                      #11
                      Re: mcu reading and writing .

                      the suggested interface is a bit expensive at £750, maybe the chinese have a copy one . or does it really need a remesas one ?

                      Comment

                      • stj
                        Great Sage 齊天大聖
                        • Dec 2009
                        • 31091
                        • Albion

                        #12
                        Re: mcu reading and writing .

                        page695 implies you cant read it out - only write to it.

                        Comment

                        • petehall347
                          Badcaps Legend
                          • Jan 2015
                          • 4427
                          • United Kingdom

                          #13
                          Re: mcu reading and writing .

                          from what i read last night it appears it can be read if not being written to at the same time . its uses uart by the looks of it .also there appears to be a debug and admin mode maybe i should email renesas to ask them to clarify things .
                          suppose i could throw the battery pack into the spares box and forget it for now . i guess i will be seeing more and more of these things to repair .

                          Comment

                          • stj
                            Great Sage 齊天大聖
                            • Dec 2009
                            • 31091
                            • Albion

                            #14
                            Re: mcu reading and writing .

                            programming
                            Attached Files

                            Comment

                            • petehall347
                              Badcaps Legend
                              • Jan 2015
                              • 4427
                              • United Kingdom

                              #15
                              Re: mcu reading and writing .

                              maybe i should be researching open source programs that will work with this bms pcb .

                              Comment

                              • eccerr0r
                                Solder Sloth
                                • Nov 2012
                                • 8701
                                • USA

                                #16
                                Re: mcu reading and writing .

                                From what I take from the datasheet, if the code on the chip does not provide a read API, then you can't read it directly. You can indirectly read it however, but it's the equivalent of hacking passwords bruteforce and this probably would take years to complete...

                                Comment

                                • petehall347
                                  Badcaps Legend
                                  • Jan 2015
                                  • 4427
                                  • United Kingdom

                                  #17
                                  Re: mcu reading and writing .

                                  not sure if these can help me but looks interesting . https://foxbms.org/

                                  Comment

                                  • eccerr0r
                                    Solder Sloth
                                    • Nov 2012
                                    • 8701
                                    • USA

                                    #18
                                    Re: mcu reading and writing .

                                    You can always make your own BMS but it needs to match the API of the existing chip...

                                    Comment

                                    • petehall347
                                      Badcaps Legend
                                      • Jan 2015
                                      • 4427
                                      • United Kingdom

                                      #19
                                      Re: mcu reading and writing .

                                      reverse engineering is what's needed as far as i can see .. its fairly easy to work out what's expected from the program but my limited knowledge with programming is holding me back ..i could learn how to do it but i don't want to tax my brain doing so . this battery charging and monitoring must be pretty much the same for all similar battery packs .

                                      Comment

                                      • clearchris
                                        Badcaps Veteran
                                        • Dec 2013
                                        • 687
                                        • United States

                                        #20
                                        Re: mcu reading and writing .

                                        Originally posted by eccerr0r
                                        speaking of microcontrollers... nowadays...

                                        1 - how many of them do not have read / write protect fuse bits?
                                        and
                                        2 - how many manufacturers leave them unprogrammed and allow reading?
                                        You can read out a bootloader in many cases, but often not the main code. You upload the new program, the program reads the bootloader and copies it to a section of memory that you can read or dumps via serial port.

                                        Comment

                                        Related Topics

                                        Collapse

                                        • ahmedtou
                                          HOW CAN I UPDATE HL-DT-ST BD-RE GGW-H20N XA02
                                          by ahmedtou
                                          Hi everyone,
                                          help me please


                                          I have an HL-DT-ST BD-RE GGW-H20N with ROM version: XA02.




                                          When I tried to burn a 25GB Blu-ray disc using ImgBurn, I got an error.
                                          I will share all the details with you, including the disc information.




                                          Code:
                                          HL-DT-ST BD-RE  GGW-H20N XA02 (ATA)
                                          Current Profile: BD-R
                                          
                                          Disc Information:
                                          Status: Empty
                                          State of Last Session: Empty
                                          Erasable: No
                                          Free Sectors: 12,219,392
                                          Free Space: 25,025,314,816 bytes
                                          Free Time: 2715:27:17 (MM:SS:FF)
                                          Next
                                          ...
                                          Today, 08:49 AM
                                        • JoWed
                                          Problems with reflashing BIOS Chip on omen by hp laptop 17 an104ng
                                          by JoWed
                                          Hello Community,

                                          I recently tried to change the Batterie on my Omen by HP Laptop 17 an104ng and after putting in the new batterie ([Batterie Link](https://www.amazon.de/7xinbox-17-AN0...&keywords=16%2...
                                          07-01-2025, 09:32 AM
                                        • testaccgta
                                          Unable to verify IC or write/erase/flash BIOS file to XMC QH128AHIG SPI chip using NeoProgrammer/AsProgrammer
                                          by testaccgta
                                          Hi, everyone!

                                          I've recently acquired two brand new SPI chips to replace the one currently in my Acer A514-54G laptop MB (FH5AT LA-K092P). The reason why I'm replacing the current SPI chip is because I had some difficulties with a third-party IT assistant who pretty much lacked the soldering skills and ended up destroying the current SPI chip soldered to my MB from factory.

                                          I've decided to do this on my own because I spent the past month or so learning some soldering skills and BIOS modding through Badcaps and WinRaid forums, hence the attempt. I've also chosen to buy...
                                          09-01-2024, 08:24 PM
                                        • petehall347
                                          need mcu reading/writing
                                          by petehall347
                                          brain dead garden tractor ,, pic16f871-i/l mcu and plug in too ..
                                          anyway here goes .tried mcu from different revision board and its gives a strange readout on the led thingies . so will have to wait till one comes in thats same revision .
                                          what i want to know if someone has the kit and knows how to do it will do it for me ?
                                          in case you wondering its from a c series countax ride on mower ..
                                          07-20-2023, 03:59 PM
                                        • hasel17
                                          CH341a can erase and read but can't write and blank check
                                          by hasel17
                                          So I am trying to repair broken thunderbolt FW on X1 Yoga Gen 2. The EEPROM chip is WINBOND 25Q80DVNIG. I already do a back-up and erase. But when I try to wrote new FW, it was successfull, but when I tried to read it, it still blank. when I try to do a blank check, it gave me instant error in address 0. I already tried two CH341A, already did the 3.3v fix mod, using AsProgrammer, NeoProgrammer, Colibri, and CH341A 1.29. But the problem still occurred. What I did wrong here? Can anyone help me? Thanks in advance. Here is the log in Colibri :

                                          Code:
                                          Checking for blank...
                                          (Press
                                          ...
                                          10-26-2023, 06:20 AM
                                        • Loading...
                                        • No more items.
                                        Working...