Go Down

Topic: How to flash genuine HM-10 firmware on CC2541 (make genuine HM-10 from CC41) (Read 72719 times) previous topic - next topic

jps1

My cc2541 receives AT commands and returns answers, but it is impossible to connect with Android.

I asked Hexor for firmware by PM but I have not had any response.

Is it possible to download the firmware HM-10 otherwise?

Thanks in advance.

danielnora

Hello nicky1finn,

First of all, thank you for your willingness to help.

I believe I have flooded my posts with dispersed information which may have confused you at some point.

My intention is to replicate the exact behavior of a HM-10 module on a CC2541 circuit on a breadboard.
This is because the HM-10 module is too big for my purposes: I intend to use the BLE circuit in a smartband, so I need to have it as a SMD.

In order to do this, I have:

1. Flashed the CC Loader sketch available in this topic to an Arduino Uno.

2. Assembled the CC2541 chip the same way as demonstrated in this schematic.

3. Connected RESET_N (pin 20), DC (pin 34 or P2_2), DD (pin 35 or P2_1) to the Arduino Uno's digital pins 4, 5, 6, respectively. I have also powered the CC2541 with Arduino Uno's GND and 3.3V.

4. Flashed the firmware received from Hexor using CCLoader.exe with the command

Quote
CCLoader.exe COM_NUMBER firmware-file.bin 0
After these steps, I have successfully managed to make the CC2541 circuit execute AT commands!  :D

Unlike the HM-10 module, however, the CC2541 circuit wasn't advertising (meaning I couldn't see the bluetooth module on my Android phone when searching for devices, not even with specific BLE apps).

If you have read my previous posts, I stated that I was using a mere wire as the Antenna, which was short-circuited between the pins 25 and 26, and also connected to the GND, which I believed was the reason why I couldn't see it from my phone. The Antenna wasn't exactly that which was specified in the schematic I provided.

Well, I saw on the schematic that the Antenna had a 50Ω resistance, so I also tried to replace the wire that connected pin 25 to pin 26 and pin 26 directly to GND with a resistor, and it made no difference.

Then I decided to make an antenna on a PCB following this reference (page 4), and connected one of the wires to pins 25 and 26 and the other to GND. Still, no difference. I'm starting to wonder if it's an Antenna issue or something else.

Daniel

nicky1finn

Hello nicky1finn,

First of all, thank you for your willingness to help.

I believe I have flooded my posts with dispersed information which may have confused you at some point.

My intention is to replicate the exact behavior of a HM-10 module on a CC2541 circuit on a breadboard.
This is because the HM-10 module is too big for my purposes: I intend to use the BLE circuit in a smartband, so I need to have it as a SMD.

In order to do this, I have:

1. Flashed the CC Loader sketch available in this topic to an Arduino Uno.

2. Assembled the CC2541 chip the same way as demonstrated in this schematic.

3. Connected RESET_N (pin 20), DC (pin 34 or P2_2), DD (pin 35 or P2_1) to the Arduino Uno's digital pins 4, 5, 6, respectively. I have also powered the CC2541 with Arduino Uno's GND and 3.3V.

4. Flashed the firmware received from Hexor using CCLoader.exe with the command

After these steps, I have successfully managed to make the CC2541 circuit execute AT commands!  :D

Unlike the HM-10 module, however, the CC2541 circuit wasn't advertising (meaning I couldn't see the bluetooth module on my Android phone when searching for devices, not even with specific BLE apps).

If you have read my previous posts, I stated that I was using a mere wire as the Antenna, which was short-circuited between the pins 25 and 26, and also connected to the GND, which I believed was the reason why I couldn't see it from my phone. The Antenna wasn't exactly that which was specified in the schematic I provided.

Well, I saw on the schematic that the Antenna had a 50Ω resistance, so I also tried to replace the wire that connected pin 25 to pin 26 and pin 26 directly to GND with a resistor, and it made no difference.

Then I decided to make an antenna on a PCB following this reference (page 4), and connected one of the wires to pins 25 and 26 and the other to GND. Still, no difference. I'm starting to wonder if it's an Antenna issue or something else.

Daniel
I just skimmed the thread and obviously missed some crucial information on your setup. At least you got the AT commands working! Did you run the AT+RENEW command? After I flashed the HM-10 firmware my module was not advertising either. After issuing that command, however, it immediately started working as expected. By the way, did you run a virus/malware scan on your computer? I'm a bit thrown off that Malwarebytes flagged CCLoader.exe as a backdoor. Hope this helps!

nicky1finn

My cc2541 receives AT commands and returns answers, but it is impossible to connect with Android.

I asked Hexor for firmware by PM but I have not had any response.

Is it possible to download the firmware HM-10 otherwise?

Thanks in advance.
This Bluetooth low energy module does not pair to devices like classic Bluetooth. In order to pair within settings (I can confirm this works for Apple devices, but am unsure of devices running android), you must send AT+TYPE3. The default passcode is 000000 but if you want to change it send AT+PASSXXXXXX where the Xs represent your 6 digit passcode. The data sheet has all of these commands explained in it as well as many others. You can even read the temperature of the IC! It's definitely worth a read. Good luck!

stubb1976

Hi,

Could anyone forward me the hex file that should be flashed, Hexor doesn't seem to respond anymore...

Thanks in advance.

jchidalgo

Dear Hexor and DanielNora,
I need your help to clear how the wiring should be.
According with HM-10 datasheet (JNHuaMao Technology Company Bluetooth 4.0 BLE module Datasheet), the CC2541 pinout and Hexor´s information, the wiring between the arduino board and the HM-10 must be:

          arduino       HM-10          CC2541
DC          5      23 (PIO0)   7 (P1_3)
DD          6      24 (PIO1)   8 (P1_2)
RESET      4      26 (PIO3)   11 (P1_0)

is it correct?
I´m a little confuse about the pin number in the HM-10 board
Please confirm
Thanks in advance...

jchidalgo

sorry for the last dumb question ....
I´ve  used the pinout in the HM-10 board (pins 7,8,11) and connected to an arduino compatible board (seeduino Ver3.0) powered at  3.3v  and now I have a "real" HM-10 board (Version: HMSoft V540)
Thanks Hexor for the firmware and your great job!!

akashboghani

I seem to have bricked my ble module. Additionally, it seems to have been a fake since it didn't respond to many simple AT commands, and even seemed to recognize lowercase AT commands.

Would really appreciate it if someone could provide the bin file with the bootloader so that I can resurrect this chip.

Thanks in advance!

kacna

Hi Guys,

A followed Hexor's HOWTO (thanks for it) and I was able to successfully burn new firmware. From CCLoader I got :

Code: [Select]
... 510  511  512  Upload successfully!
File closed!
Comport closed!


Now I am able to send AT and got OK as response. But problem is that I got OK on every AT command:

AT+HELP? -> OK
AT+RENEW -> OK
AT+ADDR? -> OK

I am able to detect flashed module using another CC41a so I think that is working.

Did anybody observed similar behavior of flashed module?

Thank for help!

kacna

Hi,

Could anyone forward me the hex file that should be flashed, Hexor doesn't seem to respond anymore...

Thanks in advance.
Hexor's link to firmware download working well. Just click on big green button (try it few times): http://uptobox.com/l8vivxdf2qev

zital

Freezed while upgrading firmware :(




qboney

I have an AT-09 (HM-10 copy..) that shows up as name BT05.
I can connect with my iPhone app "Bluetooth Serial" and comm via terminal, so i know it works.

I have identified it as AT-09 through this website: http://www.martyncurrey.com/bluetooth-modules/

There is no joy with this thing. Seems it can not be flashed.
It has never responded to AT commands. This thing is a piece of junk.

Does anyone know how to buy HM-10 direct from manufacturer?

Thanks,
Quint

jzawadzk

I have the same module (also shows as BT05) and have successfully flashed it with Hexor's firmware (after converting .bin file to .hex) using CC-debugger (bought it for something like 15 USD some time ago).

BTW: when using CC-debugger + SmartRF I had to perform full flash erase before I could do anything with the chip. Not sure if this can also be the case with CCloader.

zital

I have an AT-09 (HM-10 copy..) that shows up as name BT05.
I can connect with my iPhone app "Bluetooth Serial" and comm via terminal, so i know it works.

I have identified it as AT-09 through this website: http://www.martyncurrey.com/bluetooth-modules/

There is no joy with this thing. Seems it can not be flashed.
It has never responded to AT commands. This thing is a piece of junk.

Does anyone know how to buy HM-10 direct from manufacturer?

Thanks,
Quint

you can check it watching this image:



check it in amazon

kaav102

Hi,
I have the cc2541 and I tried to follow the steps but for some reson it didn't work and now the module is not responding, the led always on (low light) and it not respond to AT commands as it did before.
I tried reset with the PIO0 pin, didn't help.. :(
Any idea? :smiley-roll:

Go Up