Announcements
Community Announcement : Welcome to the NEW Cypress Developer Community.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

Anonymous
Not applicable

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!

0 Likes
1 Solution
Anonymous
Not applicable
        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   

View solution in original post

3 Replies
himam_31
Employee

Hello,

   

Can you attach the project?

   

Thanks,

   

Hima

0 Likes
Anonymous
Not applicable
        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   

View solution in original post

anfl_3572561
New Contributor

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

0 Likes