2011-09-07 05:55 AM
How to initialize the RAM in STM8S105xxx
Hi:
I want to initialize the space of RAM(the whole RAM), please tell me how to operate. Thanks! the language is c. Fred2011-09-07 06:35 AM
define:
u8 GBuffer[RAM_SIZE]; u8 new_val2 = 0x00; ..... /* Fill the RAM with 00h */ for (i = 0; i < RAM_SIZE; i++) GBuffer[i] = new_val2; or in STVD select the ram space and fill it graphically to 00h. brazov22011-09-07 07:00 AM
For Cosmic compiler, you could simply use correct startup file - crtsi.s
For details about startup file and how to use it, please reffer to the related documentation of Cosmic compiler and STVD or other IDE. For other compilers, please reffer to their provided documentation. Should have same capability...