Address jump function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 3: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.
- Labels:
-
STM32F3 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 4: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 4: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 4: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 .
