Machine-translated by Google. Questions are authored in English.
Top

Discussion

The start-up code that runs before main is responsible for

  • A.copying .data to RAM and clearing .bss
  • B.erasing the flash memory of the device
  • C.creating the tasks of the application
  • D.configuring the peripherals the application will use

Answer: A

It also sets the stack pointer and may configure the clock, and only then does it call main. Static variables that appear uninitialised at run time are almost always a symptom of this code having been skipped or misconfigured.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.