- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using the cy8ckit-042-4200 prototyping kit. In my program I am using the the CyGlobalIntEnable function to enable global interrupts. However I have a problem with this function, I find that nothing gets executed after the CyGlobalIntEnable function. The function some how freezes the program execution, after removing this everything works well.
However I need to enable a timer interrupt, so have to use it...
The project bundle is attached,
thanks
a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you know that nothing gets executed? Did you step through the code with a debugger? You can also try to toggle some pins (e.g. ones with an LED connected) to see what happpens afterwards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your problem is not connected to the enabling of interrupts, it is an interrupt that is probably not handled correctly. I would suggest you to try single-stepping through your handler with interrupts disabled by IDE.
And why do you need a bootloader component for a CY8CKIT-042 ???
I just found a working solution running on a PSoC4:
/****************************************************
static void InitializeTaskTick(uint32 Frequency)
{
CySysTickStart(); // Starts SysTick component
CySysTickSetReload(CYDEV_BCLK__SYSCLK__HZ / Frequency);
CySysTickSetCallback(0, SysTicks);
NVIC_SetPriority (SysTickIntNo, ARTSIntPrio);
NVIC_ClearPendingIRQ(SysTickIntNo);
NVIC_EnableIRQ(SysTickIntNo);
}
/****************************************************************************/
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you know that nothing gets executed? Did you step through the code with a debugger? You can also try to toggle some pins (e.g. ones with an LED connected) to see what happpens afterwards.
I am using the LED on the kit to check if execution happens.
And why do you need a bootloader component for a CY8CKIT-042 ???
I program the kit using the bootloader host program. The program accepts only .cyacd file
thanks
a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would suggest you to disable the Bootloading component and start to develop the correctness of your program using the debugger and its facilities.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks everyone for the help.
a