Skip to content

add flash iap and bootloader support to K66F #4989

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 3 commits into from
Oct 19, 2017
Merged

add flash iap and bootloader support to K66F #4989

merged 3 commits into from
Oct 19, 2017

Conversation

maclobdell
Copy link
Contributor

@maclobdell maclobdell commented Aug 29, 2017

Description

Updates the linker files and configuration to enable flash in-application-programming and bootloader support on K66F. This requires updates to the flash drivers for K66F, which are in a separate PR.

Status

Hold until #4982 is merged.

Migrations

NO

Related PRs

#4982

Todos

N/A

Deploy notes

N/A

Steps to test or reproduce

This was tested with https://github.com/ARMmbed/mbed-os-example-bootloader and was successful.

cc @mmahadevan108

@maclobdell
Copy link
Contributor Author

Please note, that this will fail to build until PR 4982 is merged.


if (!isdefinedsymbol(MBED_APP_SIZE)) {
define symbol MBED_APP_SIZE = 0x100000;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be 0x200000

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching that! I just pushed another commit to fix it. Thanks!

@@ -645,7 +645,7 @@
"macros": ["CPU_MK66FN2M0VMD18", "FSL_RTOS_MBED"],
"inherits": ["Target"],
"detect_code": ["0311"],
"device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG"],
"device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG", "FLASH"],
"features": ["LWIP"],
"release_versions": ["2", "5"],
"device_name": "MK66FN2M0xxx18"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to add "bootloader_supported": true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is there.

"features": ["LWIP"],
"release_versions": ["2", "5"],
"device_name": "MK66FN2M0xxx18"
"device_name": "MK66FN2M0xxx18",
"bootloader_supported": true
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the bootloader is enabled here: "bootloader_supported": true

@mmahadevan108
Copy link
Contributor

@maclobdell. Could you please rebase, PR 4982 has been merged.

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 28, 2017

@maclobdell. Could you please rebase, PR 4982 has been merged.

Please rebase and let us know, we will trigger CI tests

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 9, 2017

@maclobdell bump

@maclobdell
Copy link
Contributor Author

Just rebased and pushed. I checked that everything compiles with iar, armcc, and gcc compilers.

@adbridge
Copy link
Contributor

@mmahadevan108 @0xc0170 Does this need a re-review ?

@mmahadevan108
Copy link
Contributor

Looks good to me.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 17, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 17, 2017

Build : FAILURE

Build number : 196
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/4989/

@mbed-ci
Copy link

mbed-ci commented Oct 17, 2017

Build : SUCCESS

Build number : 198
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/4989/

Triggering tests

/morph test

@mbed-ci
Copy link

mbed-ci commented Oct 17, 2017

@mbed-ci
Copy link

mbed-ci commented Oct 17, 2017

Build : SUCCESS

Build number : 207
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/4989/

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Oct 17, 2017

Build : SUCCESS

Build number : 210
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/4989/

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Oct 18, 2017

@mbed-ci
Copy link

mbed-ci commented Oct 18, 2017

Build : SUCCESS

Build number : 216
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/4989/

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Oct 18, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 18, 2017

/morph uvisor-test

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.

6 participants