Anonymous
Not applicable
Feb 11, 2017
02:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 11, 2017
02:52 PM
Hi,
I have a fixed stack bootloadable project. It seems that upon entering the application, a hard fault happens on the line
*dst = *src;
in Bootloader_Start_c.
I'm wondering if anyone has seen this before and knows how to fix it?
Thanks!
Solved! Go to Solution.
Labels
- Labels:
-
BLE
1 Solution
Feb 13, 2017
11:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 13, 2017
11:53 PM
Hi Hima, I think I have figured it out. I'll leave the solution here for anyone who's googling. 1. Make sure the heap and stack sizes are correctly configured. (0x800 for stack and 0x400 for heap) 2. Make sure to regenerate the linker symbols by running mk.bat every time the bootloader project is modified. Only then should you compile the application project. Thanks
3 Replies
Feb 13, 2017
11:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 13, 2017
11:12 PM
Hello,
Can you attach the project?
Thanks,
Hima
Feb 13, 2017
11:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 13, 2017
11:53 PM
Hi Hima, I think I have figured it out. I'll leave the solution here for anyone who's googling. 1. Make sure the heap and stack sizes are correctly configured. (0x800 for stack and 0x400 for heap) 2. Make sure to regenerate the linker symbols by running mk.bat every time the bootloader project is modified. Only then should you compile the application project. Thanks
Aug 18, 2020
09:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 18, 2020
09:37 AM
I had this same problem, my issue turned out to be a very stupid one - in the mk.bat file you need to specify debug vs release build configuration. Make sure line 64 has the correct selection.
set COMPILE_OPTION=%COMPILE_OPTION_DEBUG
or
set COMPILE_OPTION=%COMPILE_OPTION_RELEASE