2008-08-27 09:48:12     Can we access Scratchpad Memory from Application?

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-08-27 09:48:12     Can we access Scratchpad Memory from Application?

karthik krishnamoorthy (INDIA)

Message: 61177   

 

I know the scratchpad Memory value to be 0xFFB00000 , Now In my Application I assign this value to a pointer and I am writing some value to this Address Location , but it is crashing while writing to this location.

 

unsigned char *pu8address = (unsigned char *)0xFFB00000;

 

*pu8address = 1;

 

 

 

This is how I am using the Scratchpad memory.

 

 

 

Am I doing anything wrong in it? Also I want to know whether L1 memory can be accessed from application if so how?

 

 

QuoteReplyEditDelete

 

 

2008-08-27 16:13:20     Re: Can we access Scratchpad Memory from Application?

Mike Frysinger (UNITED STATES)

Message: 61191   

 

currently, that is the only way.  however, you should leave the lowest few bytes of scratchpad alone (say 16bytes).

QuoteReplyEditDelete

 

 

2008-08-29 02:57:04     Re: Can we access Scratchpad Memory from Application?

karthik krishnamoorthy (INDIA)

Message: 61310   

 

Hi ,

 

Before crashing it is printing the message application stack size overflow please increase the stack size of application .

 

Am I corrupting the Application stack size , I am very sure of scratchpad memory address , so I am not writing into a wrong memory area. or is there anything like increasing stack size that I could do? Is scratchpad related to Application stack size?

 

 

 

regards,

 

Karthik.

QuoteReplyEditDelete

 

 

2008-08-29 03:21:02     Re: Can we access Scratchpad Memory from Application?

Mike Frysinger (UNITED STATES)

Message: 61312   

 

you wouldnt get a message about stack overflowing if you werent overflowing the stack

 

by default, application stacks get allocated in external memory, not anywhere in L1

QuoteReplyEditDelete

 

 

2008-08-30 02:43:19     Re: Can we access Scratchpad Memory from Application?

karthik krishnamoorthy (INDIA)

Message: 61397   

 

I am compling my application with mstack_check_l1 option which is using some portion of scratchpad memory(I believe the first few bytes or first KB ), that is why it is crashing I have written my values in the second KB onwards, now it is not crashing.

 

Thanks for the help,

 

Regards,

 

Karthik.

QuoteReplyEditDelete

 

 

2008-08-30 23:54:23     Re: Can we access Scratchpad Memory from Application?

Mike Frysinger (UNITED STATES)

Message: 61436   

 

which is what i told you to do originally isnt it ?

Attachments

    Outcomes