Skip to content
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

Merged
merged 30 commits into from
Sep 3, 2024
Merged

feat(Examples): Firmware update through HCI for MAX32655 #1098

merged 30 commits into from
Sep 3, 2024

Conversation

JC-282-AD
Copy link
Contributor

Description

Write a firmware update example: update the firmware through HCI
Add HCI command to be used during the update: erase, update, sysreset

@JC-282-AD JC-282-AD requested a review from EricB-ADI July 30, 2024 15:05
@github-actions github-actions bot added MAX32655 Related to the MAX32655 (ME17) BLE Related to Bluetooth labels Jul 30, 2024
@EricB-ADI
Copy link
Contributor

/clang-format-run

uint8_t * addressErase = (uint8_t*) addr;

BSTREAM_TO_UINT32(size, pBuf);
volatile uint32_t address32 = (uint32_t)addressErase;
Copy link
Contributor

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

Copy link
Contributor Author

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);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

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

@EricB-ADI EricB-ADI changed the title feat(Examples): Firmware update through HCI for MAX32655 feat(Examples): Firmware update through HCI for MAX32655 Aug 12, 2024
@EricB-ADI EricB-ADI merged commit 18d0cc0 into analogdevicesinc:main Sep 3, 2024
8 checks passed
sihyung-maxim pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 3, 2024
ozersa pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 11, 2024
ozersa pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLE Related to Bluetooth MAX32655 Related to the MAX32655 (ME17)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants