Skip to main content
Haavard Guttormsen
Associate
October 16, 2017
Question

64kb flash file on a 128kb device

  • October 16, 2017
  • 1 reply
  • 1086 views
Posted on October 16, 2017 at 10:52

Hi, I have a board with a STM32F103C8T68 (64kb) cpu and I have produced a series of boards with wrong CPU STM32F103CBT6 (128kb).

I have a flash file for the 64 kb edition. Is there an easy way to get the hex file to run on the 128Kb version?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    October 16, 2017
    Posted on October 16, 2017 at 11:29

    Does it not run? Do you have any internal dependencies on the size of the flash sectors?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Haavard Guttormsen
    Associate
    October 16, 2017
    Posted on October 16, 2017 at 11:41

    This is  a code for a led driver. It receives commands on a com port and drives 3 multi colored LED's with PWM .

    The original part was a 64 kb device. We do not have the source code.

    I have the programming HEX file from the factory and I can read out the file from a working device.

    When I compare files they are all identical.

    https://www.dropbox.com/s/74mu9e9mh5d3oih/test.bin?dl=0

     

    https://www.dropbox.com/s/qudaqra7eyws5ii/test.hex?dl=0

     
    AvaTar
    Senior III
    October 16, 2017
    Posted on October 16, 2017 at 14:23

    I don't know how complex the application is, perhaps rewriting it is an option.

    Or, use gcc based toolchain for ARM, and do a 'objdump' to disassemble the code.

    Your name doesn't sound far-eastern, so I guess no IP issues are involved with reverse engineering ... ;)