AnsweredAssumed Answered

NHS3100 Flash driver "EraseSector" timeout (5000 ms) PC:FFFFFFFE

Question asked by Till Ostermann on Aug 21, 2018
Latest reply on Sep 19, 2018 by Till Ostermann

Hi,

 

I'm stuck with the following Error message of the LPCXpresso program. Target is a NHS3100 chip. The error appears when trying to flash or debugg the NHS3100 chip.

 

Right now I'm trying to figure out how to use the low power mode and altered the blinky program:

 

#include "board.h"

int main(void)
{
    Board_Init();
    Chip_Clock_System_SetClockFreq(8000000);

 

    // Initialize RTC
    Chip_RTC_Init(NSS_RTC);
    Chip_RTC_Wakeup_SetControl(NSS_RTC, (RTC_WAKEUPCTRL_T)(RTC_WAKEUPCTRL_ENABLE | RTC_WAKEUPCTRL_AUTO));
    Chip_RTC_Int_SetEnabledMask(NSS_RTC, RTC_INT_WAKEUP);
    NVIC_EnableIRQ(RTC_IRQn);
    Chip_RTC_Wakeup_SetReload(NSS_RTC, 1);

 

    while (1) {
        // Toggle led
        LED_Toggle(LED_RED);

 

        // Go to sleep
        Chip_PMU_PowerMode_EnterSleep();
    }

 

    return 0;
}

 

// RTC interrupt
void RTC_IRQHandler(void)
{
    if (Chip_RTC_Int_GetRawStatus(NSS_RTC) & RTC_INT_WAKEUP) {
        Chip_RTC_Int_ClearRawStatus(NSS_RTC, RTC_INT_WAKEUP);
    }
    Chip_RTC_Wakeup_SetReload(NSS_RTC, 1);
}

 

I would like to be able to flash the NHS3100 again. Help on possible flaws in the code are also appreciated. Thank you for your help.

 

BR

Till

Outcomes