-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix GCC_ARM non-contiguous FW for K64F
and K66F
#13832
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
Conversation
@moshe-shahar, thank you for your changes. |
@0xc0170 Can you please get this one reviewed, it solves pyocd flashing issue for PDMC which is used in CI flow. |
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.
I checked, same should be applied to also .sct file (I understand this is for GCC_ARM, but can we fix quickly also ARMCLang?
#define m_interrupts_start MBED_APP_START
#define m_interrupts_size 0x00000400
#define m_flash_config_start MBED_APP_START + 0x400
#define m_flash_config_size 0x00000010
#define m_text_start MBED_APP_START + 0x410
#define m_text_size MBED_APP_SIZE - 0x410
Can you add it here so then K64F MCU is fixed completely?
Or is this only GCC ARM issue?
+1, IAR is not supported anyway. |
3894494
to
49a6db2
Compare
@0xc0170, |
K64F
and K66F
@@ -63,12 +65,21 @@ | |||
#define m_interrupts_start MBED_APP_START | |||
#define m_interrupts_size 0x00000400 | |||
|
|||
#if MBED_APP_SIZE == 0 |
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.
Surely you mean MBED_APP_START == 0
?
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.
Yes. The flash config is needed only if MBED_APP_START
is 0 since that config has fix address in the HW.
#define m_flash_config_start MBED_APP_START + 0x400 | ||
#define m_flash_config_size 0x00000010 | ||
|
||
#define m_text_start MBED_APP_START + 0x410 | ||
#define m_text_size MBED_APP_SIZE - 0x410 | ||
|
||
#else | ||
|
||
#define m_text_start MBED_APP_START + 0x400 |
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.
Why was this 0x400 padding left (due to vectors, that are used below in ROM) ? Its not present in GCC ARM if MBED_APP_SIZE is 0
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.
for the interrupts area. In GCC_ARM I moved the interrupts to the .text
area.
In ARM, everything was in LR_IROM1 from the beginning.
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Jenkins CI Test : ❌ FAILEDBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
we are checking currently cloud client issue (other PRs are affected). However greentea test are related to K64F changes - they are timeouts. Can you reproduce one of the failures (one of the tests) ? |
This will also fix GCC_ARM non-contiguous FW: Issue: ARMmbed#13831
7e2de1d
to
ca39f95
Compare
Pull request has been modified.
Found incorrect condition. rebase and fix it. |
CI restarted |
Jenkins CI Test : ❌ FAILEDBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
I run could client test locally and it passed. |
CI restarted |
Jenkins CI Test : ❌ FAILEDBuild Number: 4 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Ci restarted |
Jenkins CI Test : ❌ FAILEDBuild Number: 5 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Jenkins CI Test : ✔️ SUCCESSBuild Number: 6 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Hooray 👏 |
K64F
andK66F
fix for Issue: #13831Summary of changes
Removing
m_flash_config
on relocated applications. It has a fixed address in the HW and is not required in the app.Combine
m_interrupts
andm_text
into one area on relocated applications to prevent a non-contiguous FW app.Impact of changes
K64F
andK64F
targetsMigration actions required
Documentation
Pull request type
Test results
Reviewers