AnsweredAssumed Answered

IAR + STLINK : Debugger error

Question asked by frenchie on May 19, 2011
Latest reply on May 20, 2011 by Clive One
Hello,

I am using stm32 discovery board + IAR 6.20 + STlink USB V2

When I want to download and debug the discovery application, I get the following errors:

Thu May 19, 2011 10:36:43: Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 6.0 Kickstart\arm\config\flashloader\ST\FlashSTM32F10xxx.mac
Thu May 19, 2011 10:36:43: -I- execUserFlashInit!
Thu May 19, 2011 10:36:43: Loaded debugee: C:\Program Files\IAR Systems\Embedded Workbench 6.0 Kickstart\arm\config\flashloader\ST\FlashSTM32F10xxxRAM6K.out
Thu May 19, 2011 10:36:43: Target reset
Thu May 19, 2011 10:36:44: Downloaded C:\partage\an3268\stm32vldiscovery_package\Project\Demo\EWARMv5\DISCOVER\Exe\DISCOVER.out to flash memory.
Thu May 19, 2011 10:36:44: 2268 bytes downloaded into FLASH (1.71 Kbytes/sec)
Thu May 19, 2011 10:36:44: Loaded debugee: C:\partage\an3268\stm32vldiscovery_package\Project\Demo\EWARMv5\DISCOVER\Exe\DISCOVER.out
Thu May 19, 2011 10:36:46: User error: Stack pointer is setup to incorrect alignment.  Stack addr = 0xFFFFFFFF
Thu May 19, 2011 10:36:46: Target reset
Thu May 19, 2011 10:36:46: Failed to load debugee: C:\partage\an3268\stm32vldiscovery_package\Project\Demo\EWARMv5\DISCOVER\Exe\DISCOVER.out


Do you know how to solve this problem?
Best regards,
Thomas

Outcomes