FreeJoy-Team / FreeJoy

STM32F103 USB HID game device controller with flexible configuration
GNU General Public License v3.0
734 stars 140 forks source link

Error: Operation exceeds memory limits #241

Closed void269 closed 1 month ago

void269 commented 1 month ago

I am trying to flash a Blue Pill (yes it is genuine) with the FreeJoy_v1_7_1b3.hex firmware file but every time I do I get an 'Error: Operation exceeds memory limits' in the logs of the STM32 Cube Programmer application. See below for full verbose logs.

10:37:34:964 : Memory Programming ... 10:37:34:964 : Opening and parsing file: FreeJoy_v1_7_1b3.hex 10:37:34:965 : File : FreeJoy_v1_7_1b3.hex 10:37:34:965 : Size : 64.00 KB 10:37:34:965 : Address : 0x08000000 10:37:34:965 : Erasing Segment <0> Address <0x08000000> Size <65536>Bytes 10:37:34:965 : Erasing memory corresponding to segment 0: 10:37:34:966 : Memory Erase via FlashLoader! 10:37:34:966 : Memory erase... 10:37:34:968 : halt ap 0 10:37:34:968 : w ap 0 reg 15 PC (0x20000000)
10:37:34:969 : w ap 0 reg 17 MSP (0x20000500)
10:37:34:969 : w ap 0 reg 16 xPSR (0x01000000)
10:37:34:972 : w ap 0 @0x20000920 : 0x00000200 bytes, Data 0x00000000... 10:37:34:972 : w ap 0 @0x20000000 : 0x00000004 bytes, Data 0x0000BE00... 10:37:34:981 : w ap 0 @0x20000004 : 0x000004F2 bytes, Data 0xF000B580... 10:37:34:981 : Error: Operation exceeds memory limits 10:37:34:997 : Error: failed to erase memory

void269 commented 1 month ago

OK, I think I found my issue. the version of the Blue Pill I have is STM32F103C6T6 which only has 32kb of flash. Unfortunately I should have bought STM32F103C8T6 which comes with 64kb of flash memory. image