Write on SD card error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

when i create this loop

   

"

   

  for(a = 0; a < samples; a++)
    {
        sprintf(buffer,"%4.2d\t %6.2ld \n", a,adcCounts);
        FS_Write(pFile,buffer,sizeof(buffer));
        CyDelay(1);
    }

   

"

   

Build error: ERROR: L107: ADDRESS SPACE OVERFLOW XDATA ?XD?EMFILE_1_CONFIGMMC_SPI 001000H

   

is it normal to happen?

   

Regards,

   

Romil 

0 Likes
11 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Raise your heap and stack size, double or quadruple them, they were lowered from earlier standard

   

settings and have caused some problems not being large enough.

   

 

   

The heap and stack size were reduced in 3.1, try restoring to 3.0 levels 4K and 16K respectively.

   

3.1 default settings are now 128 bytes and 2K.

   

 

   

 System tab in xxxxx*.cydwr file, workspace explorer near the top.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

i can have this item on system.

   

check the image

   


 

   

0 Likes
Anonymous
Not applicable

   

 

   

image

   

0 Likes
Anonymous
Not applicable

i need to change on psoc 3 

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Currently can only do images as attachments.

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

check it now

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

The heap and Stack settings -

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

if you see my image  you didn't see the heap and stack settings on PSOC3.

   

how can i set on psoc 3 this settings?

   

Regards,

   

Romil A

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

My mistake, the memory management is different for 8051 core.

   

 

   

The error thrown looks like a linker error, did you look this up in the Keil Linker docs ?

   

 

   

Google the error, multiple hits, I googled "Build error: ERROR: L107: ADDRESS SPACE OVERFLOW XDATA keil",

   

saw this -

   

 

   

http://www.keil.com/support/docs/1241.htm

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

i check this solution and it don't help me because i need to increase the array size. 

   

it is possible to set the stack and heap on psoc3?

   

regards,

   

Romil

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The 8051 processor has got a 256byte fixed stack. When you want to use malloc() functionalities there is a way for doing that. As far as I remember you find some instructions for that on the ARM / KEIL website.

   

 

   

Bob

0 Likes