2024-05-28 03:38 AM
Hi,
in my project I am try to jump 0x8002000 address . but I am facing some failure,
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
/* USER CODE BEGIN 2 */
//myFunction();
jumpToAddress(0x8002000);
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}
this is my main function.
this image is my .map file for my project.
I am try to jump 0x8002000 address my project shown ,
this output. so kindly help to me.
thanks
Solved! Go to Solution.
2024-05-28 04:00 AM
Vector tables need to be on 512-byte boundaries.
They are tables of addresses, not code.
Thr function pointer needs to be odd, per how the CMx processor indicates 16-bit Thumb code.
Have a working/reporting HardFault_Handler so you know it got there.
Learn to use the debugger so you can step the code and understand behaviour and failure.
2024-05-28 04:00 AM
Vector tables need to be on 512-byte boundaries.
They are tables of addresses, not code.
Thr function pointer needs to be odd, per how the CMx processor indicates 16-bit Thumb code.
Have a working/reporting HardFault_Handler so you know it got there.
Learn to use the debugger so you can step the code and understand behaviour and failure.
2024-05-28 04:07 AM
thanks for your response.
I am a beginner for ARM Based controller. So kindly explain for this address jumping process or kindly give sample code for this process or kindly share document for this process.
2024-05-28 04:52 AM
hi,
I am try below mentioned method in way Hardfaulthandler error is happend.
kindly help to me. I am struggling past 4 days .