Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

RE: Error compiling Synergy Project

$
0
0

Hello Andrea,

You're working on a S124 device which has 16K of RAM. Your project is statically allocating more than 32K of RAM and therefore linker returns an error when building an image to program your device. Please check the following:

- In properties on the BSP tab, you can set heap size to 0 if you're not using sprintf, printf, malloc or any similar stdlib functions. 0 should be the default value for S1 projects.

- "Main Stack Size" can be reduced down to 1K (0x400) or even 512 bytes (0x200) if you're using ThreadX. This stack is only used prior to launching ThreadX kernel.

- You can reduce stack size for each thread in the "Threads" tab on the properties pane. Start with 256 bytes for basic thread and add between 256-1024 bytes per each driver/framework, depending on how complex it is. If you don't allocate enough stack, the execution will end up in exception trapped inside NMI_Handler function.

- If using USBX Comms framework, the memory allocated property should be set to 4k. This is enough to run an optimized version of the USBX with CDC-ACM device stack.

- Ensure you're not allocating large arrays inside the code either.

Regards


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>