-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Examples): Firmware update through HCI for MAX32655 #1098
Conversation
/clang-format-run |
uint8_t * addressErase = (uint8_t*) addr; | ||
|
||
BSTREAM_TO_UINT32(size, pBuf); | ||
volatile uint32_t address32 = (uint32_t)addressErase; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is addresss32 for? I only see it set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is addresss32 for? I only see it set
Sorry, this becomes unused after several changes. Deleted.
//this is the callback function to the Msg | ||
void device_reset(wsfEventMask_t event, wsfMsgHdr_t *pMsg) | ||
{ | ||
MXC_Delay(3000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the delay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the delay?
I think yes, without the delay, the reset will be completed before HCI sends the status code back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That delay is blocking. meaning nothing is going on when you run it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing an event with a delay just use a one
shot timer
uart merge
Description
Write a firmware update example: update the firmware through HCI
Add HCI command to be used during the update: erase, update, sysreset