cancel
Showing results for 
Search instead for 
Did you mean: 

Writing outside flash memory at address problem

ayhan_kucukmanisa
Associate II
Posted on January 04, 2012 at 10:29

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 #stm32
6 REPLIES 6
camille
Associate II
Posted on January 04, 2012 at 12:23

Hello.

Don't you use an IAR free/demo version with code limitation?

Regards.

ayhan_kucukmanisa
Associate II
Posted on January 04, 2012 at 13:54

No, im using licenced  IAR.

emalund
Associate III
Posted on January 04, 2012 at 15:59

have you specified the correct derivative (all the letters) to the tools?

Erik

Posted on January 04, 2012 at 19:24

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ayhan_kucukmanisa
Associate II
Posted on January 05, 2012 at 10:07

Hi, Thanks for your replies.

My chip on stm32-h103 board is stm32f103rb6. i select from target options ST STM32F10xx6. Is this correct?

raptorhal2
Lead
Posted on January 07, 2012 at 03:11

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