December 9, 2007 - 11:02pm
Guest |
Hi
I recently bought a STM32-Primer and Ride 7 came with it (on a mini cd). It's the standard version and it's limited to 32K debugging. So i assume at least i could succefully compile codes above that limit,load the flash image and run a test without debug on.
I'm trying do this process with a demo provided by stm32circle website, but i edited it to include a bmp file in flash, so the project has exceeded the 32K limit, but it's far from 128K flash memory size of the chip. The bmp file is about 20K only and the application example is the freertos (about 23k size) . I can do it run smoothly with 8K bmp file, but with larger files i get error when compiling. All the source files are compiled with no errors but when the linker starts it returns the region FLASH is full error, saying the application exceeded the flash .text section.
I'm new to the GNU toolchain and files, came from freescale's coldfire programming (linker file is the .lcf) and iar for lpc's (linker is .xcl file).
The project setup in Ride7 is for the right chip, and the memory fits with description, so i assume it's not a project config problem on IDE.
Can anybody explain me how to proceed to overcome this?
Is it possible the Ride7 is blocking even the mcu file image generation, because of the 32K limitation?
Thanks
Alex
|
Hi Alex,
you may want to check 2 things :
1. The "Starter-Kit" limitation in "LD Linker->Scripts" options section must be set to "No". When set, it limits compiled code size to 32K to make sure your app will be debuggable.
2. In case you use a custom linker script ("LD Linker->Startup->Use Default Startup" set to No), the option above is not used. You must check your linker script directly.
regards,
Lionel
Hi Lionel, thank you for the response. That did the trick.
At this point, you know the score, ide 2 x 0 me d-_-b