System Workbench for STM32

Linker script, exclude memory sections for flash download

I am having a problem in which the debugger reports “Warn : no flash bank found for address 20000000” when I flash my STM32 target using System Workbench. The debugger then fails the binary compare process and prevents me from debugging. My linker script defines a memory region called DTCM which is mapped to RAM starting at 0x20000000 for 64K bytes:

RAM (xrw) : ORIGIN = 0x20010000, LENGTH = 256K
DTCM(xrw)  : ORIGIN = 0x20000000, LENGTH = 64K
ROM (rx) : ORIGIN = 0x8000000, LENGTH = 1024K

The tool is trying to treat DTCM as a flash targeted block but it’s really RAM. It’s guaranteed to fail verification because it’s not flash (that is, not ROM). I’ve attached my linker script and complete debugger log for reference.

Can anyone please tell me how to exclude this memory region from the set of bytes written to flash memory?

Thanks - John Speth


Newest Forum Posts

  1. Write option bytes by Just1M, 2019-04-24 11:34
  2. Write option bytes by ihouses, 2019-04-24 08:26
  3. Update vs. install version discrepency by christelle.burguera, 2019-04-23 10:06
  4. Variables by anthony@churchillnavigation.com, 2019-04-22 16:52
  5. Symbol 'SysTick_IRQn' could not be resolved by bart@engine27.be, 2019-04-22 12:56
  6. Update vs. install version discrepency by gbabecki, 2019-04-19 19:41
  7. failed to install drivers while tried to install STM32 workbench on windows 8.1 pro by saidattu32, 2019-04-19 19:13
  8. STemWin Trainning Video - Can't find lab file by agiles chroms, 2019-04-19 18:53
  9. System Workbench for STM32 v2.9.0 release by vionf, 2019-04-19 10:06
  10. Update vs. install version discrepency by dautrevaux, 2019-04-19 08:45

Last-Modified Blogs