EmBitz

Full Version: STM32G061 support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:VDaniel

But trying to download to the flash I receive:

Error unsupported STM32 ID:0x465


This is EBlink related and not EmBitz so you have to add that device to EBlink.

As far as I can see, these are the same as generic G0 so you could try adding the device to EBlink:
I can't test it because I don't have these devices.


stm32-auto.script
Code:
<snip>

    case 0x457 : // CHIPID_STM32_L0_CAT1
        require("stmicro/stm32l0x.script")
        break

    // Cortex M0+
    case 0x460 : // STM32G07xxx/08xxx
    case 0x465 : // STM32Gx1                                  <-------------
    case 0x466 : // STM32G03xxx/04xxx
        require("stmicro/stm32gx.script")
        break

    // Cortex M3
    case 0x410 : // CHIPID_STM32_F1_MEDIUM


<snip>



stmicro/stm32gx.script
Code:
<snip>
    {
    case 0x460 :
            deviceStr = "07/08xx"
            page_size = 0x800
            sram_size = 0x9000 // 36Kbyte
            break

    case 0x465 :
            deviceStr = "061x6/x8"
            page_size = 0x800
            sram_size = 0x4800 // 18Kbyte
            break   

    case 0x466 :
            deviceStr = "03/04xx"
            page_size = 0x800
            sram_size = 0x2000 // 8Kbyte
            break
<snip>


Please let me know if this works so I can add it to the script repro.
(31-10-2021, 10:54 AM)embitz Wrote: [ -> ]
Quote:VDaniel

But trying to download to the flash I receive:

Error unsupported STM32 ID:0x465


This is EBlink related and not EmBitz so you have to add that device to EBlink.

As far as I can see, these are the same as generic G0 so you could try adding the device to EBlink:
I can't test it because I don't have these devices.


stm32-auto.script
Code:
<snip>

    case 0x457 : // CHIPID_STM32_L0_CAT1
        require("stmicro/stm32l0x.script")
        break

    // Cortex M0+
    case 0x460 : // STM32G07xxx/08xxx
    case 0x465 : // STM32Gx1                                  <-------------
    case 0x466 : // STM32G03xxx/04xxx
        require("stmicro/stm32gx.script")
        break

    // Cortex M3
    case 0x410 : // CHIPID_STM32_F1_MEDIUM


<snip>



stmicro/stm32gx.script
Code:
<snip>
    {
    case 0x460 :
            deviceStr = "07/08xx"
            page_size = 0x800
            sram_size = 0x9000 // 36Kbyte
            break

    case 0x465 :
            deviceStr = "061x6/x8"
            page_size = 0x800
            sram_size = 0x4800 // 18Kbyte
            break   

    case 0x466 :
            deviceStr = "03/04xx"
            page_size = 0x800
            sram_size = 0x2000 // 8Kbyte
            break
<snip>


Please let me know if this works so I can add it to the script repro.

Hi,

Thank you very much. Now it works.
But I am sorry for the mistake, not 0x465, but 0x456.
The working fragments:

// Cortex M0+
case 0x460 : // STM32G07xxx/08xxx
case 0x456 : // STM32G05xxx/06xxx
case 0x466 : // STM32G03xxx/04xxx
require("stmicro/stm32gx.script")
break

and

case 0x456 :
deviceStr = "05/06xx"
page_size = 0x800
sram_size = 0x4800 // 18Kbyte
break
Thanks, added it to the scripts repro on github