2012-01-04 01:29 AM
Hi,
im using stm32 h103 board and IAR for debugging i want to add polarssl library for crypto operations. But when i want to use library functions.''Writing outside flash memory at address 0x8008000 '' error occurs. stm32h103 board has 128 kb memory. But this error says that i can only use 32 kb of memory. Is anyone has an advice? #flash #stm322012-01-04 03:23 AM
Hello.
Don't you use an IAR free/demo version with code limitation? Regards.2012-01-04 04:54 AM
No, im using licenced IAR.
2012-01-04 06:59 AM
have you specified the correct derivative (all the letters) to the tools?
Erik2012-01-04 10:24 AM
im using stm32 h103 board and IAR for debugging i want to add polarssl library for crypto operations. But when i want to use library functions.''Writing outside flash memory at address 0x8008000 '' error occurs. stm32h103 board has 128 kb memory. But this error says that i can only use 32 kb of memory. Is anyone has an advice?
Sounds like you haven't correctly selected the Options->Target->Device for the part you're actually using in the project. That or the flash tool isn't configured with the right template, which can happen in Keil, not so sure how IAR achieves it. Anyway the error is suggestive that IAR thinks your project uses a different chip variant than you have on your target board. If necessary refer to your documentation, or call IAR support.2012-01-05 01:07 AM
Hi, Thanks for your replies.
My chip on stm32-h103 board is stm32f103rb6. i select from target options ST STM32F10xx6. Is this correct?2012-01-06 06:11 PM
You slipped a character in comparing configuration with file name. You need STM32F10xxb. Try this checklist:
In the General Options/ Target tab, set the processor variant tab to STM32F10xxb. In the Linker/Config tab, set the linker configuration file to stm32F10x_flash.icf. The edit the memory sizes to match your processor and pick a suitable stack and heap size (I use 400 and 200). In the Debugger/Setup tab, override the default and set the device descriptor file to iostm32f10xxb. Cheers, Hal