Skip to main content
embvis
Associate III
January 14, 2019
Question

pointer above 0x4000

  • January 14, 2019
  • 2 replies
  • 1232 views

pointer above 0x4000 

Hi,

Why I cannot use pointer above 0x4000. I have declared array form 0x200023d0 [+6000 32bit], so end about 0x28950a10. I am using STM32F769. 

Iam getting 

Failed to execute MI command:

-data-evaluate-expression *(pDataVectSourceAddress)

Error message from debugger back end:

Cannot access memory at address 0x4000

Regards

Mikołaj

This topic has been closed for replies.

2 replies

Uwe Bonnes
Chief
January 14, 2019

You put your pointer into ITCM ram. It only has 0x4000 size . Put your data somewhere else.

embvis
embvisAuthor
Associate III
January 14, 2019

Hi, Can you share an example? Do you mean pointer addr or data, because I checked and data are on DTCM region.

Thanks

Uwe Bonnes
Chief
January 15, 2019

Understand and check your linker script and the memory map of your executable and of the STM32F76x. The programm clearly tries to access pDataVectSourceAddress in the ITCM memory, as the error message implies.