解決済! 解決策の投稿を見る。
Hi Akihito,
The error is happening because the Heart Rate Sensor (hrs) SDK example makes use of the Low-Power mode for the device, causing it to go to a determined power mode, and to disable the required pins and systems to enable debugging.
To prevent this, and for a better experience while debugging your MCU, Low-Power mode can be disabled by changing the following macro definition to a "0":
/* Enable/Disable PowerDown functionality in PwrLib */
#define cPWR_UsePowerDownMode 0
This will disable Power Down functionality for the demo application. This is recommended during debugging, but it can be enabled again for later steps of development.
Please let me know if you need any more information.
Best regards,
Sebastian
Hi Akihito, I hope you're doing well!
If the example programmed implemented Low Power mode, it's possible that the device is stuck in low power mode and needs to be woken up to be programmed.
Could you please try issuing an "unlock kinetis" command through the J-Link Commander software?:
Please let me know if you continue to have issues with your board.
Best regards,
Sebastian
Hello @Sebastian_Del_Rio,
I am also working with the FRDM-KW38 Board and I have the same problem. My board is in Low Power mode and I am not able to flash any other application onto it. I cannot connect to the device via J-Link Commander, so I am also not able to issue a "unlock kinetis" command. How can I flash another Application onto my board? Thanks in advance!
Hello. I'm having the same problem. I uploaded the bluetooth_hrs_freertos example and now I'm not able to debug it again to upload a different code to the KW36 FRDM board. I cannot access also JLINK Commander since it cannot detect the USB Probe. I'm stuck. Please help on how to upload new code to the board.
I have the same problem here with the twr-km35z512VL. I was messing with the linker script and, after a flash, the JLinkExe detects the probe no more. It says: "No emulators connected via USB" even "lsusb" shows me the device "ID 0d28:0204 NXP ARM mbed".
In case someone found these useful:
The header of the last ihex binary flashed:
:1000000000C0002085020000E9020000ED020000AF
:1000100000000000000000000000000000000000E0
:10002000000000000000000000000000F1020000DD
:100030000000000000000000F5020000BD0E0000FE
:10004000FD02000001030000050300000903000099
:100050000D030000E5020000E5020000E5020000DB
:10006000E5020000E5020000E5020000E5020000F4
:10007000E5020000E5020000E5020000E5020000E4
:10008000E5020000E5020000E502000011030000A7
:10009000E5020000E5020000E5020000E5020000C4
The memory map used:
Name Origin Length Attributes
m_interrupts 0x0000000000000000 0x0000000000000200 xr
m_flash_config 0x0000000000000200 0x0000000000000010 xr
m_text 0x0000000000000210 0x0000000000032000 xr
m_sram 0x000000001fffc000 0x0000000000010000 rw
*default* 0x0000000000000000 0xffffffffffffffff
EDITED:
I've been trying to update OpenSDA Bootloader following this instrucction with no success: https://www.nxp.com/design/software/development-software/sensor-toolbox-sensor-development-ecosystem...
EDITED 2:
If I create a file named "assert.act" into the MSD root folder, the bootloader responds with an ASSERT.TXT (see msd commands doc
Assert
File: (file)
Line: 151
Source: Bootloader
The file DETAILS.TXT contains the following:
# DAPLink Firmware - see https://mbed.com/daplink
Unique ID: 0000000048824e45002f7008dd8900378761000097969900
HIC ID: 97969900
Auto Reset: 0
Automation allowed: 1
Overflow detection: 0
Daplink Mode: Bootloader
Bootloader Version: 0243
Git SHA: 2f498feb503c4396822ef00f6fbf8c5289dfa9c0
Local Mods: 1
USB Interfaces: MSD
Bootloader CRC: 0xf95f84e6
Interface CRC: 0x308c203a
Remount count: 0
EDITED 3:
I finally solved it reflashing both micros with an external JTAG (JLink EDU). I used the "k20dx_twrkm35z75m_if_crc_combined.bin" binary for the K20 (you can found it in here) and a working "blinking.hex" for the KM35.
Hi Sebastian,
I am using FRDM-KW38, and get same problem. But how can I use COMSIS-DAP to unlock the demo board? As you know, If I use Jlink, I need open OpenSDA wire on the board. You can see this point in schmatic of FRDM-KW38.
Is there any other solution? I have try to download other project file, but fail.
Hi, Sebastian
I've confirmed that the problem can be solved in the way you taught, but it always seems to recur when disconnect the debugger.
I unlock every time. Is there a workaround?
The debug target is the hrs example based software included in the SDK.
Hi Akihito,
The error is happening because the Heart Rate Sensor (hrs) SDK example makes use of the Low-Power mode for the device, causing it to go to a determined power mode, and to disable the required pins and systems to enable debugging.
To prevent this, and for a better experience while debugging your MCU, Low-Power mode can be disabled by changing the following macro definition to a "0":
/* Enable/Disable PowerDown functionality in PwrLib */
#define cPWR_UsePowerDownMode 0
This will disable Power Down functionality for the demo application. This is recommended during debugging, but it can be enabled again for later steps of development.
Please let me know if you need any more information.
Best regards,
Sebastian
Hello,
I seem to be having the same issue and can't seem to find this define:
/* Enable/Disable PowerDown functionality in PwrLib */ #define cPWR_UsePowerDownMode 0
within the PWRLib.c and PWRLib.h files. Do you know where I might be able to find this #define?
Hi, Sebastian
The problem was solved in the way you taught. Thanks for your advice!