Issue Description: My code is divided into two parts, namely the APP area and the TRIM area. When I merge the code of these two areas together, there is no problem with programming through Keil. However, when I separate the code for these t...
The optimization options for GCC compilation are: Optimize for size(-Os),The compiled result is as follows: The size of MCU Flash resources occupied is: text+data = 47264 Byte The.ld link script is shown below: Question: In my program, the....
Background: The MCU chip I use is stm32L476RG. Since the MCU usually needs to work in the standby mode and will wake up within 2s, I want to count the time the MCU is in the standby mode each time. Implementation method: The clock source of RT...
I found that the problem should be caused by different versions of the STM32L4xx_512.FLM file. The version installed on my computer is 2.6.2, and the version installed on my colleague's computer is lower than this version
Hello, I also encountered the same problem. The chip I used was stm32l451REYx, and the OPTVERR bit would be set to 1 after each power-on. How did you solve the problem and what is the root cause of the problem?
I have just modified the link script, the NOLOAD keyword was added,as follows:.ram2_data (NOLOAD):
{
. = ALIGN(4);
_sram2 = .;
*(.ram2_data)
*(.ram2_data*)
. = ALIGN(4);
_eram2 = .;
} >RAM2 AT> FLASH
.ram2_b...
Sorry,I don't quite understand what you mean. I forgot to mention that I defined a bunch of global variables into RAM2, about 15k in size, but I didn't initialize them, and they shouldn't be in the .data segment, they should be in the .bss segment...
It is true that the current program size will not exceed the MCU Flash limit, but I want to reduce the Bin file size as much as possible and reduce the time required for firmware upgrade.Thank you for your reply