RFQ/BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

STM32 does a dot matrix LCD program and the data area bursts, and I need to solve it.

MCU
12월 03, 2020 by Franco 1546

Because I chose the STM32 film purely as a dot matrix LCD program, the defined global variable array will explode the data area, and the hardware error will be reported directly when it is started.

After looking at the .s startup file, only the stack space and heap space are configured. Where is the configuration of the global variable static data area? I didn't find it, how to modify it and increase it, the default is how big it is, there is no information at all.

모든 댓글

user image

Melinda 게시 날짜 December 3, 2020

How big is the array?

0
  • Franco

    Franco 게시 날짜 December 3, 2020

    No statistics, there are fonts, arrays of various page types. In short, there is not enough space in the static data area. I can solve it by putting the data in the heap, but I don’t want to do that. Does anyone know where the memory size of this section is configured? ? ! !

  • 답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다

user image

Chace 게시 날짜 December 3, 2020

Isn't the font library generally placed in flash, defined as const type.

0
user image

Marin 게시 날짜 December 3, 2020

Define the font and picture classes as const types and put them in the rom area.

The constant type refers to the type specified by the type modifier const, and the value of the variable or object of the constant type cannot be updated. Therefore, initialization must be performed when defining or describing the constant type.

0

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다