2791 views|4 replies

194

Posts

0

Resources
The OP
 

The problem of BIN generated by STM32F051 being filled with 0 [Copy link]

When I was writing code for STM32F051, I used the operation __attribute__((at(0x800F800))) to locate the data at the specified address. However, only one BIN file was generated. I found that all the unused addresses in the middle were filled with 0, which made the entire BIN file very large and the download was very slow. The most important thing is that I cannot use the default FF to determine whether the data at a certain address is written, which is very inconvenient. However, when using STM32F103, there will be no such problem, but several separate program segments will be generated. Is there any way?

This post is from stm32/stm8

Latest reply

My approach is to use two different projects to write  Details Published on 2019-3-11 11:15
 

664

Posts

104

Resources
2
 
Please provide the project file. How is the BIN generated? It cannot be ruled out that it is a setting problem. Generate a HEX file and see if this phenomenon will not occur.
This post is from stm32/stm8
 
 

62

Posts

0

Resources
3
 
Change it to __attribute__((section("section_name"))) and then change the link script
This post is from stm32/stm8
 
 

1

Posts

0

Resources
4
 
Brother, have you solved the problem? I also encountered how to get rid of those filled 0s
This post is from stm32/stm8
 
 
 

4005

Posts

0

Resources
5
 
My approach is to use two different projects to write
This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list