Topic : My I2C driver didn't fit to the program memory

Forum : ST7/STM8

Original Post
Post Information Post
December 3, 2009 - 9:09am
Guest

Hello from the Philippines, I have developed I2C driver and application using microchip (1K program memory). When I ported same I2C driver and application in ST7Lite2US I received this error:

Error 107 Address space overflow

How can I optimized more the code size? I have already checked the Optimize for tight code (SIZE) option and the error still exists. Thank you in advance.

Replies
Post Information Post
+1
0
-1
December 3, 2009 - 9:41am
Raisonance Support Team

Hi,

I do not have the full error message, but you probably have a RAM address space overflow.
By default the compiler uses short-range RAM (page0) which is limited to 256 bytes.

Just change the default RAM space to "data" and the problem should go away.

Regards,
Bruno