Home arrow Support arrow Forums

Luminary Micro Forums

abl

Junior Boarder
Click here to see the profile of this user

2008/09/23 03:30

Bug report of DriverLib

In file ../DriverLib/src/interrupt.c
function "void IntRegister(unsigned long ulInterrupt,void (*pfnHandler)(void))":
// Copy the vector table from the beginning of FLASH to the RAM vector
// table.
//
for(ulIdx = 0; ulIdx < NUM_INTERRUPTS;ulIdx++)
{
g_pfnRAMVectors[ulIdx] = (void (*)(void))HWREG(ulIdx * 4); //-->>crashed when using a bootloader
}
//correct code :
g_pfnRAMVectors[ulIdx] = (void (*)(void))HWREG(ulIdx * 4 + HWREG(NVIC_VTABLE));

login or register to reply

LMI Dan

Moderator
Click here to see the profile of this user

2008/09/23 16:22

Re:Bug report of DriverLib

Thank you for the bug report. I'll send this to the Software team and they will put a proper fix into the next release of DriverLib.

This function was written before the boot loader and isn't used by any of our examples since we do not dynamically set-up up the vector table. Either way, it should be written to be a bit more flexible when the vector table is moved from it's default location.

login or register to reply

ve2yag

Fresh Boarder
Click here to see the profile of this user

2008/10/30 10:19

Re:Bug report of DriverLib

Bug is not corrected in last version downloaded last week... Compiling of bootloader crash all time.

Remi

login or register to reply

LMI Bobby

Moderator
Click here to see the profile of this user

2008/10/30 13:28

Re:Bug report of DriverLib

This issue has been addressed and the fix will be included in the upcoming StellarisWare Software Release (scheduled to be posted to the web site in the next few days). This fix will be part of the Stellaris Peripheral Driver Library (formerly known as DriverLib). If you're unable to make progress until this fix is released, please contact us at support@luminarymicro.com so that we can assist you with your specific issues.

login or register to reply

LMI Bobby

Moderator
Click here to see the profile of this user

2008/10/30 13:30

Re:Bug report of DriverLib

I clicked the send button too soon.

For more details regarding StellarisWare, refer to the Luminary Micro web site (http://www.luminarymicro.com/products/software.html).

login or register to reply