我使用的是IAR 6.3的编译器,目前遇到了该问题。ICF文件中 我已经define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_end__ = 0x0803FFFF;所以flash应该是256K,但下载程序时竟然提示上文的错误。 因为IAR没有GD的device,所以我用的是GD的补丁。但编译成功,下载却出现错误,请高手帮助,谢谢。
Sun May 29, 2016 14:45:54: Loaded macro file: D:\IAR Systems\arm\config\flashloader\GD\FlashGD32F103x.mac
Sun May 29, 2016 14:45:54: JLINK command: ProjectFile = E:\GigaPrinter\settings\GD32Printer_Debug.jlink, return = 0
Sun May 29, 2016 14:45:54: Device "STM32F105RC" selected (256 KB flash, 20 KB RAM).
Sun May 29, 2016 14:45:54: JLINK command: device = STM32F105xC, return = 0
Sun May 29, 2016 14:45:54: DLL version: V4.42m, compiled Feb 7 2012 21:44:38
Sun May 29, 2016 14:45:54: Firmware: J-Link ARM V8 compiled Nov 14 2012 22:34:52
Sun May 29, 2016 14:45:54: JTAG speed is initially set to: 2000 kHz
Sun May 29, 2016 14:45:54: TotalIRLen = 9, IRPrint = 0x0011
Sun May 29, 2016 14:45:54: Found Cortex-M3 r2p1, Little endian.
Sun May 29, 2016 14:45:54: TPIU fitted.
Sun May 29, 2016 14:45:54: ETM fitted.
Sun May 29, 2016 14:45:54: FPUnit: 6 code (BP) slots and 2 literal slots
Sun May 29, 2016 14:45:54: Found Cortex-M3 r2p1, Little endian.
Sun May 29, 2016 14:45:54: TPIU fitted.
Sun May 29, 2016 14:45:54: ETM fitted.
Sun May 29, 2016 14:45:54: FPUnit: 6 code (BP) slots and 2 literal slots
Sun May 29, 2016 14:45:54: Hardware reset with strategy 0 was performed
Sun May 29, 2016 14:45:54: Initial reset was performed
Sun May 29, 2016 14:45:54: Found 2 JTAG devices, Total IRLen = 9:
Sun May 29, 2016 14:45:54: #0 Id: 0x4BA00477, IRLen: 4, IRPrint: 0x1 CoreSight JTAG-DP
Sun May 29, 2016 14:45:54: #1 Id: 0x790007A3, IRLen: 5, Unknown device
Sun May 29, 2016 14:45:54: -I- execUserFlashInit!
Sun May 29, 2016 14:45:54: 456 bytes downloaded (4.74 Kbytes/sec)
Sun May 29, 2016 14:45:54: Loaded debugee: D:\IAR Systems\arm\config\flashloader\GD\FlashGD32F103xRAM16K.out
Sun May 29, 2016 14:45:54: Target reset
Sun May 29, 2016 14:45:54: Writing outside flash memory at address 0x8020000 |