Microchip-MPLAB-Harmony / csp

Harmony 3 Chip Support Package
https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MH3_csp&redirect=true
Other
34 stars 22 forks source link

Vector Table incorrectly defined #36

Closed CharleO closed 1 year ago

CharleO commented 3 years ago

For the ATSAMC20 and ATSAMC21 (Cortex M0+) there are 32 interrupts, after PTC_Handler there should be reserved vector. The header file "device_vectors.h" should have pfn_handler_t pfnReserved31; after pfn_handler_t pfnPTC_Handler; so that it falls on a page boundary.

vishalnxt commented 2 years ago

@CharleO , May I know what issue you are running into with the existing implementation?

CharleO commented 2 years ago

So my application Vector Table Offset Register is assigned to 0x00000800 address, where the boot loader wrote the application. The Application Vector Table size includes first 16 exception and device's IRQ, which is 192 bytes. Page boundary is 64 bytes. If all 32 IRQ are not defined properly, problems with validations tests. Since this writing, I would also include the PIC32CM family as well.

vishalnxt commented 1 year ago

@CharleO , I am closing this ticket as this is something that needs to be taken care in your validation tests.