- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When calling Bootloadable_SetActiveApplication(AppNo) an error is returned. I attached an example project tht uses the bootloadable for both applications.
Bob
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please call CySetTemp() before Bootloadable_SetActiveApplication(AppNo). CySetTemp() function needs to be called once before executing series of Flash or EEPROM writing functions. For more details, please refer to System Reference Guide.
Status = Bootloadable_SetActiveApplication(AppNo);
sprintf(PrintBuf,"SetActiveApp returned %d\n\r",Status);
UART_PutString(PrintBuf);
if (CYRET_SUCCESS != CySetTemp())
{
sprintf(PrintBuf,"Error in CySetTemp \n\r");
UART_PutString(PrintBuf);
}
Status = Bootloadable_SetActiveApplication(AppNo);
sprintf(PrintBuf,"SetActiveApp returned %d\n\r",Status);
UART_PutString(PrintBuf);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please call CySetTemp() before Bootloadable_SetActiveApplication(AppNo). CySetTemp() function needs to be called once before executing series of Flash or EEPROM writing functions. For more details, please refer to System Reference Guide.
Status = Bootloadable_SetActiveApplication(AppNo);
sprintf(PrintBuf,"SetActiveApp returned %d\n\r",Status);
UART_PutString(PrintBuf);
if (CYRET_SUCCESS != CySetTemp())
{
sprintf(PrintBuf,"Error in CySetTemp \n\r");
UART_PutString(PrintBuf);
}
Status = Bootloadable_SetActiveApplication(AppNo);
sprintf(PrintBuf,"SetActiveApp returned %d\n\r",Status);
UART_PutString(PrintBuf);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, I didn't call a flash write function, but the bootloadable did. Wouldn't it be better and cleaner to put the required call to CySetTemp() into the component's responsibility?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have forwarded your query to our product development team, who will evaluate your query. Thank you for your interest in Cypress products.