Go Down

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

iBuddy85

Hi all,

First of all, thanks for the instructions for flashing the modules.

Unfortunately, I had several issues with flashing the firmware on a module and, too sad, jailed one of mine... but finally, I was successful!
Perhabs my solution is helpful for someone.

My configuration:
Win 7 64-bit
USB-UART CP2104 converter
Arduino Pro Mini 3V3 8MHz


First, I was not able to run CCLoader.exe nor CCLoader_x86_64.exe. Windows responds with a compatibility issue.
> Solved by using DevC++ and recompiled the source code from github. This was easier than it sounds!

Second, the CCLoader was not able to comunicate with the Arduino properly. Waiting for respond from Arduino...
> I assumed, that the issue is the serial baud rate. I reduced the speed in the C source code and the Arduino source code to 19200. Unfortunately, this did not solve the issue.
> Checked the connection and found, that I did not disconnect the DSR pin from the Serial converter to the Arduino (it resets the arduino to upload the sketch). Ich checked the C code and believed, it is disabled. However, I disconnected it and this did the trick.
Well, when checking the Arduino code, I also commented the line required for Leonardo boards. I was wondering, why this is not the default.

I checked, if the Pro Mini 3V3 is able to run at 115200 baud and it looks like, this is indeed too fast for it. Well, upload is slow, but for one or two modules it is fine.

I attach my files and hope, it helps. Good luck!

Cheers,
iBuddy

smerrett79

Hi all,

First of all, thanks for the instructions for flashing the modules.

Unfortunately, I had several issues with flashing the firmware on a module and, too sad, jailed one of mine... but finally, I was successful!
Perhabs my solution is helpful for someone.

@iBuddy85, thank you so much - this has been driving me crazy but your method worked for me! Windows 10 Pro, Arduino IDE 1.8.7, Pro Mini 3.3V with FTDI clone USB-Serial. Had already tried Uno direct and the modified Serial sketch further back in this thread. Didn't use capacitor on reset. Did follow ALL the steps in your method. Thanks again.

zincaandrei

I have also a clone module, connect the pins from arduino 4,5,6 to 7,8 and 11 to BT module and nothing. no update for the firmware. What can i do? Hope somebody will help me
With the actual firmware, my S7 oreo said" pairing rejected to BT05"

mrives

Hi guys, i managed to flash HM10 onto my AT09 [...]

After powering up, PIO4 will be 1. Don't ask me why, but this greatly decreases power!

Thanks for your help! I did some digging on my AT-09 board.
On right side, only PIO1 to PIO4 are really connected to the inner module.
PIO4 is linked to ... 3v3! So it helps to keep it on.

Here is a fix.
AT+BEFC080
AT+AFTC088
PIO2 is connected to State pin.
PI08 is connected to LED (but not connected to the castellated module).
PI09 is connected to State pin (but not connected to the castellated module).

I modified the fix :
AT+BEFC080
AT+AFTC28C

pol0815


I need a HEX file for the CC debugger.
Version v540 runs but no AT commands via terminal possible.
I work directly with a CC2541 chip
Maybe then it goes with AT over terminal
Please Help me

GreenSpike

Hi all,

First of all, thanks for the instructions for flashing the modules.

Unfortunately, I had several issues with flashing the firmware on a module and, too sad, jailed one of mine... but finally, I was successful!
Perhabs my solution is helpful for someone.

My configuration:
Win 7 64-bit
USB-UART CP2104 converter
Arduino Pro Mini 3V3 8MHz


First, I was not able to run CCLoader.exe nor CCLoader_x86_64.exe. Windows responds with a compatibility issue.
> Solved by using DevC++ and recompiled the source code from github. This was easier than it sounds!

Second, the CCLoader was not able to comunicate with the Arduino properly. Waiting for respond from Arduino...
> I assumed, that the issue is the serial baud rate. I reduced the speed in the C source code and the Arduino source code to 19200. Unfortunately, this did not solve the issue.
> Checked the connection and found, that I did not disconnect the DSR pin from the Serial converter to the Arduino (it resets the arduino to upload the sketch). Ich checked the C code and believed, it is disabled. However, I disconnected it and this did the trick.
Well, when checking the Arduino code, I also commented the line required for Leonardo boards. I was wondering, why this is not the default.

I checked, if the Pro Mini 3V3 is able to run at 115200 baud and it looks like, this is indeed too fast for it. Well, upload is slow, but for one or two modules it is fine.

I attach my files and hope, it helps. Good luck!

Cheers,
iBuddy
This was a awesome find and ty for the recomplie :)
Works perfectly on win 10 64 bit.
I however was using a UNO to update and had to add a 10uf capacitor between gnd and reset to avoid resets of the UNO. Hope this helps someone else trying to flash :)

Gwe89

Hi Iv just done this too my module and I think it's bricked it

Gwe89

I have just noticed my phone is picking the bluetooth module up but it's not responding to any AT commands

Go Up