Home > Back-end >  SPI communication experiment - on the main function array const define related questions
SPI communication experiment - on the main function array const define related questions

Time:04-11

Why use const definition here, if you don't use it directly U8 used to define arrays, then read it out from the FLASH data is empty, write also is empty, after joining the const data is normal, is a global variable space problem, the space of global variables have how old? Please teach a great god, thank you,
Const data definition is the same, the global variable defined data will be disturbed?"
Here are a few questions
1, why use a CONST definition
2, the common definition of a global variable data will be disturbed?
3, the scope of global variables have how old? Local variables can be set in the stack size

CodePudding user response:

Reference: https://blog.csdn.net/qq_36958104/article/details/89764410? Ops_request_misc=% 257 b % 2522 request 2522% % 255 fid % 253 a 2522% % 2522% % 2522161801542616780264060131% % 2522 SCM 252 c 253 a % 252220140713.130102334 PC % 255 fall. The 2522% % 257 d & amp; Request_id=161801542616780264060131 & amp; biz_id=0& Utm_medium=distribute. Pc_search_result. None - task - blog - 2 ~ all ~ first_rank_v2 ~ rank_v29_name - 1-89764410. First_rank_v2_pc_rank_v29 & amp; Utm_term=const

CodePudding user response:

Specific reasons, there is no specific code, can't say clear,
Added a const means you cannot directly modify TEXT_Buffer content

CodePudding user response:


This is the source programs, specific content as

CodePudding user response:

, help me to look at, thank you
  • Related