We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
My previous thread has failed to gain interest: http://www.keil.com/forum/59827/
Perhaps the title is too generic or the description is some how confusing. So I start this thread to try another time.
I have a project on STM32F105x CPU. I would like to use CMSIS RTX with it. But I has encountered a problem: When it is located a space different from the default RESET vector, the osKernelStart would failed and a HardFault would occurs. It is well before the main function. I have not idea how to debug this kind of bug.
RO starts from 0x8000000 RO starts from 0x8006000 With RTX OK HardFault occurs Without RTX OK OK
When the application starts form 0x8006000, I have modified the VECTOR_TAB_OFFSET respectively.
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET;
More detail description please refer to http://www.keil.com/forum/59827/ . Thanks.
There is actually a AppNote that might help to analyze the HardFault http://www.keil.com/appnotes/docs/apnt_209.asp
It is important to understand the code that creates the Fault. Once you have identified that it should become easy to understand the reason.