Reply
Highlighted
Posts: 4
Registered: ‎08-27-2017
Accepted Solution

The problem met when using EFM8SB20F64G in Simplicity Stuidio

Hello, I used EFM8SB20F64G and the memory model was set to large(variables in XDATA). I defined a struct whose name is ElemType :typedef struct tagElemType { u8_t AXIS_X_L; u8_t AXIS_X_H; u8_t AXIS_Y_L; u8_t AXIS_Y_H; u8_t AXIS_Z_L; u8_t AXIS_Z_H; } ElemType, then I defined a pointer which points to ElemType :ElemType *ADXL345_sample. In Simplicity Stuidio, I wanted to check the content of the struct ElemType pointed by ADXL345_sample, but I got the information in variable window "Error:cannot read address 10000" etc, you can find the detailed information in the attached file. For it, I have two questions:1. address 10000 is out of XRAM memory map, why ElemType is assigned to such address ? 2. Does I miss something in the configuration which leads to this problem, could you please help me to slove this problem. BTW, if I want to read the content in XRAM space in memory view in Simplicity Stuidio,how can I do ? Thanks.
Posts: 185
Registered: ‎07-12-2016

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

hi @smiling

 

Sorry, I didn't find the attachment in the page, and you can attached the whole project, I will try to show you the problem after investigating it.

 

Thanks

Posts: 4
Registered: ‎08-27-2017

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

Hi, I attaced my project and error information picture.

Posts: 8,134
Registered: ‎08-13-2003

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

[ Edited ]

you need to scroll or enlarge to make the error show in your screenshot

show your code - NOT in a .zip file - I, for one, will not open .zip files

erik
Posts: 4
Registered: ‎08-27-2017

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

Hi, I attacted the error show,thanks.

Posts: 8,134
Registered: ‎08-13-2003

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

[ Edited ]

copy paste to the code window all code related to ADXL_sample (can't copy, best recollection of variable name)

 

NOT AS AN ATTACHMENT!!

erik
Posts: 3,100
Registered: ‎02-07-2002

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

I see a picture but no error. Further, if someone else searches for this same error, the search engine will not find it because you decided to paste it as a picture. This comes very close to asking for help in a private message so nobody else can benefit.

Posts: 11
Registered: ‎08-28-2017

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

 

 uint8_t LIS3DH_check = 0;
  status_t LIS3DH_status = MEMS_ERROR;
  uint8_t LIS3DH_FIFO_status = 0;
  ElemType LIS3DH_sample_in,LIS3DH_sample_out;

  uint8_t ADXL345_check = 1;
  uint8_t ADXL345_status;
  ElemType ADXL345_sample_in,ADXL345_sample_out;
  ElemType *ADXL345_sample;

  uint8_t qs_in,qs_out;

  ADXL345_sample->AXIS_X_L = 1;
  ADXL345_sample->AXIS_X_H = 2;
...

if this is ur code - u have not allocated to memory to pointer ADXL345_sample 

secondly if u want it to be in XRAM - u need declare using 'xdata' keyword i guess - then it maps to XRAM

 

 

 

Posts: 3,100
Registered: ‎02-07-2002

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

Please do not type u and ur. It may save you an infinitesimally small amount of time and will cost hundreds of readers a lot more to understand. Is your time really that much more valuable than the sum of all readers time?

Posts: 11
Registered: ‎08-28-2017

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio


vanmierlo wrote:

Please do not type u and ur. It may save you an infinitesimally small amount of time and will cost hundreds of readers a lot more to understand. Is your time really that much more valuable than the sum of all readers time?


My Bad and Apologies. It was not intentional. I will take care! 

(I tried to edit and correct, but it is not possible i guess)

Posts: 4
Registered: ‎08-27-2017

Re: The problem met when using EFM8SB20F64G in Simplicity Stuidio

Hi,sudhee

 

Thank you for the reply.

 

Yes, its my fault.