Hello Haggui Souhail,
You can span the memory usage using the MCU settings perspective.
1. Select your project on your workspace.
2. Click on Project->Properties. The following view will be displayed:

3. Go to C/C++ Build->MCU Settings, configure the following fields:

4. Save the changes clicking on "Apply" and then "Apply and Close" button.
With the steps above, your project will be configured to make use of the entire Flash and RAM memories.
Best Regards.
Edgar.