Skip to content

Add bootloader support for the LPC55S69 board #10086

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

Merged
merged 1 commit into from
Mar 16, 2019

Conversation

davidsaada
Copy link
Contributor

Description

This PR adds bootloader support for the LPC55S69 board.

Pull request type

[ ] Fix
[ ] Refactor
[x] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 13, 2019

5.12.0-rc3 - is that correct?

"size": "0x58000"
}
}
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have PR 10068 for this, can you please remove this section

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmahadevan108 AFAIK #10068 is not destined for 5.12, while this one is, so I can't have this PR depend on it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@david, is the index.json here same as in #10068?
@mmahadevan108 as this PR more urgent for rc3, is it possible to make #10068 dependent on this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the same. I can make it the same (which is the largest part of that PR).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidsaada @mmahadevan108 Then I suggest you sync with each other

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this change from this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmahadevan108 This certainly needs to be deleted. However, as I explained below, our tools won't build the bootloader well without this change. This should currently be on hold until resolved.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 . Would you like to try with the changes from #10068 to ensure it works fine with the tools.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if I wasn't clear - this requires a change in the bootloader build tools, by which index.json should be ignored in such cases. Until then, this PR will fail if we use the values from #10068. In other words, this PR should be on hold until these tools changes are introduced.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 , got it.

@orenc17
Copy link
Contributor

orenc17 commented Mar 13, 2019

needs to be rebased on top of #10047

@davidsaada davidsaada force-pushed the david_lpc55s69_bootloader branch 2 times, most recently from 986c20a to ffd64d1 Compare March 13, 2019 16:00
@davidsaada davidsaada force-pushed the david_lpc55s69_bootloader branch from ffd64d1 to 25b8267 Compare March 13, 2019 16:24
@davidsaada
Copy link
Contributor Author

Please disregard my force pushes for the time being. Having some hard time with this rebase. Will update when done.

@davidsaada davidsaada force-pushed the david_lpc55s69_bootloader branch from 25b8267 to b9b2050 Compare March 13, 2019 16:29
"*": {
"target.app_offset": "0x8400",
"target.header_offset": "0x8000",
"target.bootloader_img": "mbed-bootloader-lpc55s69-v1_0_0.hex"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this bootloader do?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see https://os.mbed.com/docs/mbed-os/v5.11/tutorials/bootloader.html (Prebuilt bootloaders section)

@davidsaada davidsaada force-pushed the david_lpc55s69_bootloader branch from b9b2050 to 5b1715f Compare March 13, 2019 18:53
@cmonr
Copy link
Contributor

cmonr commented Mar 13, 2019

I think this can be rebased when able.

@dannybenor
Copy link

@mmahadevan108 This is the Pelion firmware update bootloader. Is able to verify and retrieve a downloaded image from external storage into rom and replace current application with the new one. All this is happening in the NSPE.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 14, 2019

I think this can be rebased when able.

@davidsaada already rebased, ready for review?

@davidsaada
Copy link
Contributor Author

I think this can be rebased when able.

@davidsaada already rebased, ready for review?

Not yet. Got a small issue I need to resolve. Will update.

@davidsaada davidsaada force-pushed the david_lpc55s69_bootloader branch 3 times, most recently from a5ccb96 to 7e1e983 Compare March 14, 2019 10:44
@davidsaada
Copy link
Contributor Author

Rebased on top of master. Sorry for the noise.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 15, 2019

Thanks @cmonr, will rebase. However, this PR should be on hold until tools team introduce a solution to the index.json problem, hopefully by the end of the day.

Is there tracking issue for this?

@davidsaada
Copy link
Contributor Author

Thanks @cmonr, will rebase. However, this PR should be on hold until tools team introduce a solution to the index.json problem, hopefully by the end of the day.

Is there tracking issue for this?

No.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 15, 2019

Thanks @cmonr, will rebase. However, this PR should be on hold until tools team introduce a solution to the index.json problem, hopefully by the end of the day.

@ARMmbed/mbed-os-tools has this been addressed or in progress?

@bridadan
Copy link
Contributor

@0xc0170 I believe so in this PR: #10113

@davidsaada
Copy link
Contributor Author

Rebased on top of master. However, taking the changes from #10113 doesn't work.
Will work with @bridadan and @theotherjimmy offline to tackle these problems in order not to contaminate this thread.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 15, 2019

Will work with @bridadan and @theotherjimmy offline to tackle these problems in order not to contaminate this thread.

Please do. #10113 was integrated

@davidsaada
Copy link
Contributor Author

OK, it appears that the mistake was mine - used a wrong configuration option when building the application with the bootloader. Thanks @theotherjimmy for the help here.
Rebased with master now and everything seems to work fine. OK to proceed from my POV.

@davidsaada davidsaada force-pushed the david_lpc55s69_bootloader branch from 9ac262e to 8d32064 Compare March 15, 2019 22:09
@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2019

@davidsaada Thanks for the update fixing Travis CI pytest 😉

@davidsaada davidsaada force-pushed the david_lpc55s69_bootloader branch from 8d32064 to eb5cef8 Compare March 15, 2019 22:13
@davidsaada
Copy link
Contributor Author

Sorry, old index.json slipped in. Fixed now.

@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2019

Will restart CI once Travis completes.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 16, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 16, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 1
Build artifacts

@cmonr cmonr merged commit e901dfa into ARMmbed:master Mar 16, 2019
@cmonr cmonr removed the needs: CI label Mar 16, 2019
@orenc17
Copy link
Contributor

orenc17 commented Mar 16, 2019

@cmonr

Genesis 2:2-3 New King James Version (NKJV)
2 And on the seventh day God ended His work which He had done, and He rested on the seventh day from all His work which He had done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants