nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
301 stars 136 forks source link

[BUG] MIMXRT1176 StartupCode may not set Vector Table #85

Closed ChristianMosbach closed 2 years ago

ChristianMosbach commented 2 years ago

Describe the bug If __USE_CMSIS is defined, but __MCUXPRESSO is not, the startup code does not set the Vector Table

Only define__USE_CMSIS as symbol

Expected behavior The SystemTick_Handler should be called. The startup code of LPC55S69 does work without __MCUXPRESSO

mcuxsusan commented 2 years ago

Hi @ChristianMosbach, below is feedback from developer, please help check:

"with ARMGCC, the VTOR is set in devices/MIMXRT1176/gcc/startup_MIMXRT1176_cm7.S. It doesn't rely on any macro. __MCUXPRESSO should not be defined in armgcc build.

Does it mean you are was building MCUX IDE startup devices/MIMXRT1176/mcuxpresso/startup_mimxrt1176_cm7.c with armgcc?"

ChristianMosbach commented 2 years ago

Hello @mcuxsusan,

Yes, I built startup_mimxrt1176_cm7.c with armgcc.

As I said, it works with the mcuxpresso startup code for the LPC55S69.

Thank You

nxp-wayne commented 2 years ago

Hi @ChristianMosbach , startup_mimxrt1176_cm7.c is designed for mcuxpresso IDE. We have dedicated startup_MIMXRT1176_cm7.S for armgcc. In other word, building startup_mimxrt1176_cm7.c with armgcc is an invalid use case and is not qualified. LPC55S69 happening to work doesn't mean this is a valid case.

ChristianMosbach commented 2 years ago

Thank you for your answer!