7 years, 3 months ago.

Not able to download a modified blinky .bin file to HSP board

Hi,

I am trying to play with hsp board and then make some template code. So I started to check out the board with example blinky code, just changed the wait time a bit to see the change. But after I copy the .bin file to mbed, Device Manager will refresh once and close the mbed folder, which kind of indicates reconnect mbed... after that, i re-open the mbed folder, it lists one more file 'fail.txt' and the content in the file is "SWD ERROR".

Can you help to give a clue where the problem may locate? Thank you in advance.

Question relating to:

MAXREFDES100# Health Sensor Platform

Qiao, As Andrea suggested, be sure to follow the step carefully. One step that is often missed is pressing the power button.

Because this board is designed for battery powered operation, the default state is off and you must press the power button for a half second after applying power to turn it on. This applies to USB and battery operation. The button must be pressed after applying power by connecting to USB or inserting a battery. A 12 second press will turn the board off.

You will not be able to program or communicate with the board unless you turn it on by pressing the power button.

Also, please note that the LED draws power from the output of the buck-boost regulator that is programmable and off by default. You will need to initialize it to see the LED light up. You can use this example that shows how to configure the PMIC to see the LED: https://developer.mbed.org/teams/MaximIntegrated/code/HSP_PMIC_Demo/?platform=MAX32620HSP

posted by Greg Steiert 04 Jan 2017

1 Answer

7 years, 3 months ago.

Qiao,

Thanks for the question, this sound like the target is possibly not being powered, have you followed the steps below carefully?

Could you also let me know if an unmodified blinky example works on the device? Have you made sure to set the target in the online compiler correctly?

Quote:

1. Connect the HDK to the sensor board

Plug the HDK programming adapter into the health sensor board at the USB type-C connector.

2. Connect the HDK to a PC

Connect your PC to the HDK board at the micro-USB connector marked HDK. After a few seconds of activity, the PC will recognize the mbed Microcontroller as a standard USB drive.

3. Press the button on the sensor board

Press and hold the only button on the sensor board for about half a second to wake the PMIC and turn on the board.

4. Click the MBED.HTM link to get logged in

Go to the new USB Drive, and click MBED.HTM to open it in a web browser.

If you do not have an mbed account, choose "Signup", and create your mbed Account. Otherwise, log in with your normal username and password.

This will give you access to the website, tools, libraries and documentation.


Let me know, how you get on.

Regards,

Andrea, team mbed

Hi Andrea and Greg, Thank you for your feedback. Yes, I followed the steps carefully and have powered on the board for sure. The LED blinks at the default frequency (kind of 0.5Hz). Then I modified the blinky code for another frequency 2Hz but failed to download my .bin file.

posted by Qiao li 05 Jan 2017