Smoothieware / Smoothie2-old

(Deprecated attempt at) A Smoothie firmware port to the Smoothieboard v2 boards.
GNU General Public License v3.0
34 stars 22 forks source link

Fix RAM regions in linker script #7

Closed adamgreen closed 8 years ago

adamgreen commented 8 years ago

The linker script had the incorrect regions defined for the RAM that actually exists on the LPC4337. To fix this I made changes which include:

Without this change, the code would HardFault the first time that it attempted to push anything on the stack since it was initialized to an invalid region of memory. lpc21isp must leave the stack pointer set to whatever it uses when ISP is running so that is why the code worked right after upload.

arthurwolf commented 8 years ago

Thanks :) Trying soon