Skip to main content
Oahme.1
Associate III
Aug 2, 2020 11:02 AM UTC
Solved

Hi, I want to load my value into the SRAM by using the command STR , So I declared a READ-WRITE section in file2 but it always gives me a build error, I'm using the stm32f1 series.I believe this has something to do with the scatter file .

Ive also tried reading the linker documentation but didnt understand much.

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Aug 2, 2020 12:04 PM UTC

can't edit screenshots

​

AREA needs a space in front, where as BLOCK does not, assembler sensitive to line position of labels vs keywords.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

3 replies

S.Ma
Principal
Aug 2, 2020 11:38 AM UTC

explain what is the application need instead of one way of implementation

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Aug 2, 2020 12:04 PM UTC

can't edit screenshots

​

AREA needs a space in front, where as BLOCK does not, assembler sensitive to line position of labels vs keywords.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Oahme.1
Oahme.1Author
Associate III
Aug 4, 2020 12:41 PM UTC

Yes Thankyou @Community member​  I forgot about line position.The code runs now