Conversation
|
/morph test |
|
Boards test status:
|
|
Build finished. |
95cf63a to
2fd637d
Compare
Details and progress at ARMmbed#371 Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
2fd637d to
d493edd
Compare
Details and progress at ARMmbed#371 Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
|
|
||
| /** | ||
| * Unlock Sequence clears out the Security Bits and Flash Memory. | ||
| * Hardware Reset line MUST be asserted due implementation issues. |
There was a problem hiding this comment.
Here are the details to add in the place of my todo:
During the unlock sequence the hardware reset must be asserted to ensure device code cannot execute and interfere with the unlocking procedure.
source/daplink/interface/swd_host.c
Outdated
|
|
||
| case RESET_PROGRAM: | ||
| // Initialize SWD DAP Port so we have a known state of the Target. | ||
| // DAP is essential for both softwaRESET_HOLDre/hardware halt-on-reset. |
There was a problem hiding this comment.
I think this is a typo - softwaRESET_HOLDre
d493edd to
ea96943
Compare
Details and progress at ARMmbed#371 Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
|
Need to rewrite / separate nRF51822 code that de-asserts the nRST line because it also disables DAP which breaks |
ea96943 to
48b75e2
Compare
Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state) * Removed return swd_set_target_state_sw(state) * Removed return swd_set_target_state_hw(state) * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
|
Redesigned
Remarks for NORDIC implementation and changes:
|
48b75e2 to
011dcb5
Compare
Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state) * Removed return swd_set_target_state_sw(state) * Removed return swd_set_target_state_hw(state) * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
|
New reset code seems to work on |
|
/morph test |
|
Build finished. |
|
Microbit KL26 / nRF51822 works fine :-) |
|
LPCXpressso5411x HIC_LPC4322 / TGT_LPC54114 works fine :-) |
|
Embedded Artists 11U35_HIC / LPC4088_TGT works fine :-) TODO: Rewrite ISP GPIO toggling wrapped around reset calls.. |
011dcb5 to
66de826
Compare
Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state) * Removed return swd_set_target_state_sw(state) * Removed return swd_set_target_state_hw(state) * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. * Updated some pre/post reset routine quirks. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
66de826 to
c78bf50
Compare
Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state) * Removed return swd_set_target_state_sw(state) * Removed return swd_set_target_state_hw(state) * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. * Updated some pre/post reset routine quirks. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
|
LPC11U35 plus nrf51822 can't reset automatically using msd,why? |
|
Hey @wzt19910506 this thread is about DAPLink RESET REWORK ONLY not the LPC+nRF Drag-n-Drop as stated in #375, please talk about LPC+nRF over there. However, you can try new RESET code from this Pull Request on your LPC HIC with external nRF Target and will should work even with no nRST line attached as we first try the software reset by default! Note: without custom HIC+Target firmware you only get HID Debug and CDC UART working, both can reset your target, so you can verify the new code. |
c78bf50 to
fe222a5
Compare
WARNING: BREAKS NCS FLASHING! Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state) * Removed return swd_set_target_state_sw(state) * Removed return swd_set_target_state_hw(state) * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. * Updated some pre/post reset routine quirks. * Introducing pre/post reset flash/run quirks. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
|
4.0 adds pre/post reset run/flash quirks as required by LPC4088DM board. Some problems with NCS flashing are observed but not caused by last change.. BIN files flashing works fine, HEX flashing does not work over UMS. Is that a known issue? |
|
/morph test |
|
Build finished. |
|
fe222a5 to
8be221d
Compare
Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state) * Removed return swd_set_target_state_sw(state) * Removed return swd_set_target_state_hw(state) * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. * Updated some pre/post reset routine quirks. * Introducing pre/post reset flash/run quirks. * Leaves Cortex-A rework for Target code separation. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
8be221d to
acb0b7c
Compare
Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state) * Removed return swd_set_target_state_sw(state) * Removed return swd_set_target_state_hw(state) * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. * Updated some pre/post reset routine quirks. * Introducing pre/post reset flash/run quirks. * Leaves Cortex-A rework for Target code separation. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
Details and progress at ARMmbed#371 Summary of changes: * Introducing global unified target_set_state(TARGET_RESET_STATE state). * Removed swd_set_target_state_sw(state). * Removed swd_set_target_state_hw(state). * Function swd_set_target_reset(uint8_t asserted) is not weak anymore. * Updated some pre/post reset routine quirks. * Introducing pre/post reset flash/run quirks. * Leaves Cortex-A rework for Target code separation. Signed-off-by: CeDeROM Tomasz CEDRO <tomek@cedro.info>
acb0b7c to
bf51af5
Compare
|
@c1728p9 could you please take a look in a free moment if this is okay? :-)
|
|
What is status of this? |
|
@40Grit What's your interest in this PR? I believe it's stalled and might be just closed now. If there's anything that should be picked up again, let us know. |
|
@0xc0170
|
|
Hey @loverdeg-ep / @40Grit :-) Developers had different idea for reset mechanism and machine state design for DAPLink, and the whole architecture, if any, in general, so probably this is kinda dead end sorry. The master went ahead. You can make use of it as you like :-) |
This PR brings the unification to target reset routines trying the software reset first and then hardware reset if the first fails.
Both
swd_set_target_state_hw()andswd_set_target_state_sw()are replaced withtarget_set_state()which also removes set state from target implementations unless reset really requires some unique reset quirk. New functions will be placed in dedicatedtarget.{c,h}file also separate fromswd_host.{c,h}.Still testing, please merge only after label is removed and code is confirmed after in depth testing..