Hi,
This is likely the symptom of a very common issue: K64 bootloader was overwritten
The short answer is:
if you remove the boot loader (by overwriting it) in the K64 memory in the kit, then the reset pin shared between K64 and KW41 (in Rapid IoT) and K20 (in docking station) is not properly managed when the kit is on the docking.
As a consequence
- if you boot your docking station wo Rapid Iot it should work well (Docking displayed as IoT DAPLINK in Windows explorer)
- if you have Rapid IoT plug, the K21 reset pin is tied low and consequently boots in maintenance mode.
To fix this, you should not act on the docking (K21µC) itself, but rather on the Rapid IoT kit:
If you reflash the K64 boot loader into the Rapid IoT kit, then Reset pin is properly managed, then when plugged on the docking the docking will show the DAP Link mode.
In order to avoid this in the future, you should place your K64 FW from the adress 0X14000 onwards (see options associated with your proejct Under MCUXPresso)
One more challenge you will face:
- because your docking is booting in maintenance mode, you likely can no longer program K64 via MCUXpresso. To get your docking station in DAP Link mode, while having your kit plugged in, you have 2 options. A dirty but workign one, and a 'clean' one:
- Dirty method:
- boot your docking wo kit
- Plugthe kit so that the kit does not reset
- Verify the docking did not switch to Maintenance mode and is still in DAP Link mode
- There is a chance that inserting the kit into the docking while docking being ON resets it... but is you do it carefully it may not be the case.
- Clean method:
- Set the switches on the docking so that KW41Z is connected to K21 and not K64 (00111111)
- Reset your docking: K21 will switch in DAPLINK mode as now being connected to KW41Z for which you did not rewrite the bootloader memory area yet
- Verify the docking station appears as DAPLINK mode
- Put the docking switches back to K64 position (11001111)
- You shall be able to agian write programs in K64 and reflash the bootlader.
I though that would be a short answer... so I failed and will shoot a video sometime next week - will be easier to follow than plain text...