CamiAlfa / stlink_m365_BLE

77 stars 31 forks source link

Purple BLE Restore #2

Open JerryM365 opened 3 years ago

JerryM365 commented 3 years ago

Hey, how do i flash the purple(violet) BLE with ST-LINK cause i cant seem to find the .bat for the violet ble.

ercintorun commented 2 years ago

Purple BLE has a different chip, and i think it has different connections. I assume Pro versions of camialfa is not going to work on that board. Have a look at the forum below, they managed to find connections and changed ble file according to the design:
https://electro.club/forum/m365_pro_ble_net_izobrazheniya?page=2

I managed to upgrade the purple board to v090 using this file with st-link: https://electro.club/data/forum/messages/153709/BleRecPurple.zip (Extracted it into flashing folder and used .bat)

Camialfa, could you also please create versions for this purple boards, i would be glad if i could use your 074 v10 on purple board.

Thanks for your efforts.

JonOLinux commented 2 years ago

Hello, In order to flash the last Purple controller (v3.22 / 2019) to BLEV074 properly with STLlink you need to :

1 : Download & unzip this file : BLE PURPLE

2 : Install drivers : /Guia BLE PURPLE/Guia BLE PURPLE/Winx32 or Winx64 directory /

3 : Wire properly and connect to computer If no sound or no screen => switch the +5v on the opposite pin of the round cable

3 : Launch "Reprogramar ble.bat" /Guia BLE PURPLE/Guia BLE PURPLE/Winx32 or Winx64 directory /

If no device detected issue => Reverse Swclk and Swd wire. if library issue => Reinstall drivers or check Zadig and reinstall WinUSB

4 : Update to the last version :

Once you've done the flash, you will have the BLE074 V4. Use DownG with your mobile phone and update to the last version available 074v10

I hope this post will help you guys.

Moukrea commented 2 years ago

Just adding little piece of information to flash correctly a purple "Pro" dashboard (credits goes to @JonOLinux, but this acts as a tutorial)...

The following is to be done in Windows

  1. Download Zadig and run it
  2. Select the ST-Link in the devices list from Zadig and install the WinUSB driver (if you haven't installed the drivers yet)
  3. Download BLE PURPLE and unzip it
  4. Get into the unzipped directory, then Windows 64 bits (or Windows 32 bits if you are using an x86 CPU)
  5. Copy pro074_flash.hex and Reprogramar ble.bat files and paste them into the stlink_m365_BLE/flashing directory of this repository (assuming you already downloaded it as a zip or through git)
  6. Run the Reprogramar ble.bat file from stlink_m365_BLE/flashing
  7. Plug your ST-Link wired to the dashboard according to this diagram
  8. Wait for the flash to complete (if this doesn't work, switch SWCLK and SWD wires)

Your purple dashboard should be flashed with some unknown version of CamiBLE, from now on you can download one of the zip files from here (stlink_m365_ble/Downg_zips/Purple/, latest version to date is 074_V10_PURPLE.zip) on your phone, then flash it with DownG

@CamiAlfa it would be great if you could add files to flash purple dashboards directly with ST-Link in this repository! Also, could you share the way to modify stock BLEs to make them work on purple dashboards?

dantefff commented 1 year ago

I have restored my purple BLE board with this method (switching SWCLK and SWD wires). @CamiAlfa this should be in a wiki page instead in a issue

dantefff commented 1 year ago

For now on I have documented this here: https://github.com/dantefff/stlink_m365_BLE/wiki

In this repository openocd is also upgraded to version 0.11 and a script to flash in Linux is also included

Maclinksys commented 1 year ago

Solo agregando una pequeña pieza de información para mostrar correctamente un panel de control púrpura "Pro" (los créditos son para@JonOLinux, pero esto actúa como un tutorial)...

Lo siguiente se debe hacer en Windows

  1. Descarga Zadig y ejecútalo
  2. Seleccione ST-Link en la lista de dispositivos de Zadig e instale el controlador WinUSB (si aún no ha instalado los controladores)
  3. Descarga BLE PURPLE y descomprímelo
  4. Ingrese al directorio descomprimido, entonces Windows 64 bits (o Windows 32 bitssi está usando una CPU x86)
  5. Copie pro074_flash.hexy Reprogramar ble.batarchive y péguelos en el stlink_m365_BLE/flashingdirectorio de este repositorio (asumiendo que ya lo descargó como zip o a través de git)
  6. Ejecutar el Reprogramar ble.batarchivo desdestlink_m365_BLE/flashing
  7. Conecte su ST-Link cableado al tablero de acuerdo con este diagrama
  8. Espere a que se complete el flash (si esto no funciona, cambie SWCLKy SWDconecte)

Su panel de control púrpura debe mostrarse con alguna versión desconocida de CamiBLE, a partir de ahora puede descargar uno de los archivos zip desde aquí ( stlink_m365_ble/Downg_zips/Purple/, la última versión hasta la fecha es 074_V10_PURPLE.zip) en su teléfono, luego flashearlo con DownG

@CamiAlfa¡Sería genial si pudieras agregar archivos para flashear tableros morados directamente con ST-Link en este repositorio! Además, ¿podría compartir la forma de modificar los BLE de stock para que funcionen en tableros morados?

Hola, estoy probandolo todo y no consigo ejecutar el .bat en Windows. Una ayuda 20230624_205425 20230624_214050 20230624_214058

Maclinksys commented 1 year ago

Ya lo he conseguido, decir que solo me ha funcionado haciendo la conexión de 3.3V desde stlink y placa violeta. Un Saludo