Skip to content

Commit

Permalink
[hal/aic105] fix alignment to isr_vector
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon committed Jul 27, 2023
1 parent dedecb0 commit 4acf674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/hal/driver/Luat/Air105/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ bool vsf_driver_init(void)
{
//SystemInit();
SYSCTRL->CG_CTRL1 = SYSCTRL_APBPeriph_ALL;
SYSCTRL->SOFT_RST1 = SYSCTRL_APBPeriph_ALL;
// GPIO reset will halt debug
SYSCTRL->SOFT_RST1 = SYSCTRL_APBPeriph_ALL & ~SYSCTRL_APBPeriph_GPIO;
SYSCTRL->SOFT_RST2 &= ~SYSCTRL_USB_RESET;
SYSCTRL->LOCK_R |= SYSCTRL_USB_RESET;
SYSCTRL->LDO25_CR &= ~(VSF_BIT(4) | VSF_BIT(5));
Expand Down
2 changes: 1 addition & 1 deletion source/hal/driver/Luat/Air105/startup_Air105.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ __imp_unprocessed_weak_handler(USB_OTG0_Handler)
#pragma GCC diagnostic ignored "-Wpedantic"
#endif

ROOT const pFunc __VECTOR_TABLE[] = {
ROOT const pFunc __VECTOR_TABLE[] ALIGN(512) = {
(pFunc)(&__INITIAL_SP), /* Initial Stack Pointer */
Reset_Handler, /* Reset Handler */
NMI_Handler, /* -14 NMI Handler */
Expand Down

0 comments on commit 4acf674

Please sign in to comment.