Hallo.
Ich frage mich, wie eine leere main-Schleife 1632 Bytes Daten
verursachen kann. Konkret geht es um einen STM32f030, in C mit Keil.
"Program Size: Code=612 RO-data=196 RW-data=0 ZI-data=1632"
Okey es kommt ja noch das Start-File hinzu, aber insgesammt 1632 Bytes
ist ne andere Hausnummer.
Was wird da so viel Speicher brauchen?
1 | #include "stm32f0xx.h"
|
2 |
|
3 | int main(void)
|
4 | {
|
5 | }
|
6 |
|
7 | #ifdef USE_FULL_ASSERT
|
8 |
|
9 | /**
|
10 | * @brief Reports the name of the source file and the source line number
|
11 | * where the assert_param error has occurred.
|
12 | * @param file: pointer to the source file name
|
13 | * @param line: assert_param error line source number
|
14 | * @retval None
|
15 | */
|
16 | void assert_failed(uint8_t* file, uint32_t line)
|
17 | {
|
18 | /* User can add his own implementation to report the file name and line number,
|
19 | ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
20 |
|
21 | /* Infinite loop */
|
22 | while (1)
|
23 | {
|
24 | }
|
25 | }
|
26 | #endif
|