Vu Duo V3 security chip repair project.

Discussion in 'VuPlus Duo Hardware troubles and Repair support.' started by Johnny B., May 1, 2016.

  1. Brianmullen8

    Brianmullen8 New Member

    Messages:
    27
    Likes Received:
    5
    Trophy Points:
    3
    Gender:
    Male
    How do I enable the bootloader?
    Answer A
    If the device is erased, the bootloader is always active.
    Answer B
    If the device is not empty, the bootloader is activated by setting the bootloader option bytes
    to 55AAh. This can be done by STVP or manually by the SWIM interface. If the device is
    empty, it can be done by the bootloader itself. To enable the option bytes if the device is
    empty (bootloader active), write the correct bootloader option bytes to the device option byte
    area. As a consequence of bootloader option byte activation, the device Flash memory
    (which is now no longer empty) and the bootloader remain active up to 1 s after reset
    Note: Enabling the bootloader (by setting the bootloader option bytes) is recommended as the first
    operation on virgin devices.
    2.7 How do I set the bootloader option byte through the Flash
    loader demonstrator?
    To set the bootloader option bytes, you must have an S19 file which contains a memory area
    with a bootloader option byte address inside (see example below of the .s19 with the option
    byte highlighted).
    Example: Bootloader option byte for STM8S105x6 (address 487E and 487F)
    S104480000B3
    S104480100B2
    S1044802FFB2
    S104480300B0
    S1044804FFB0
    S104480500AE
    S1044806FFAE
    S104480700AC
    S1044808FFAC
    S104480900AA
    S104480AFFAA
    S104480B00A8
    S104480CFFA8
    S104480D00A6
    S104487E55E0 <- “Bootloader enable” option
    S104487FAAE0 <- Complemented “Bootloader enable” option
    S9030000FC
     
    Johnny B. likes this.
  2. fingersd

    fingersd Member

    Messages:
    64
    Likes Received:
    9
    Trophy Points:
    8
    Gender:
    Male
    Good luck Brian.
    Are the STM8S105x6 and the STM8S103k3 loaders enabled at the same address (i did read somewhere that code was transferable across the STM range) but doubt that includes the loaders.

    and out of curiosity have you swapped out the crystal oscillator on the mainboard? as I believe you have a working and non working box, just to verify it´s actually the chip at fault and not a passive component problem?

    I´m sure you have, but was just interested.
     
  3. Brianmullen8

    Brianmullen8 New Member

    Messages:
    27
    Likes Received:
    5
    Trophy Points:
    3
    Gender:
    Male
    On stvp you select the ic that's connected to st link and it shows the option bytes, you can just enable and disable the boot loader. I'm sure this doesn't affect the flash but I want to make sure before I try.

    if it gets the boot loader working and erased the flash we could possibly use renewares to flash the ic.

     
  4. Brianmullen8

    Brianmullen8 New Member

    Messages:
    27
    Likes Received:
    5
    Trophy Points:
    3
    Gender:
    Male
    Yeah tried swapping. swapping the ic works on both boards.
     
  5. fingersd

    fingersd Member

    Messages:
    64
    Likes Received:
    9
    Trophy Points:
    8
    Gender:
    Male

    If that is the case, using a new chip should also not be a problem if it turns out the origional´s have failed, happy days! although i´ve an idea there must be more to it than that