Git Product home page Git Product logo

Comments (20)

ErikAndren avatar ErikAndren commented on August 17, 2024

Is this using the instructions from https://github.com/conorpp/efm8-arduino-programmer ?

from rf-bridge-efm8bb1.

Portisch avatar Portisch commented on August 17, 2024

0x43 means wrong CRC on the received data. (Between host and Arduino)

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

@ErikAndren Yes I followed the instructions from that page.

This is the terminal output:

Once
Running on http://127.0.0.1:4040/ (Press CTRL+C to quit)
Connected
x: 0x81
PI initiated
Device erased
0x0 0x0 020D88E4FDFCFF1214F6120C9E1215FC53D87853E2FDC28043E2029000837404F02222020EA38E418F428C438D44AB07AA06E4F9F87F407E427D0F121468E543F0A3E544F09000C1E541F0A3E542F043910422E591C320E201D322020FB7E53475F00DA422F583E493FC740193FD22E4F5A922021206D201121441C290C296D280E4FBFD7F101215BC12058274A4F0D2AFE4F52EF52FD296052FE52F7002052EB410F3E52EB427EEC29630010912130C8E308F318006753001753100E5317004E530640170409000C6E07007F52EF52F02026C052FE52F7002052ED39410E52E94274002D296D3E52F9430E52E947550

Sometimes it continues with x: 0x43 and sometimes it just stops and does nothing...

from rf-bridge-efm8bb1.

ErikAndren avatar ErikAndren commented on August 17, 2024

Are you connecting the ground pin?
Are the cables long?

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

I've connected 3.3, GND, C2D and C2CLK.
cables are around 20cm, I will try with shorter ones when I'm home.

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

@ErikAndren Tried with shorter cables but no luck...
I'm using a clone arduino mega 2560, could that be a problem?

from rf-bridge-efm8bb1.

ErikAndren avatar ErikAndren commented on August 17, 2024

I'm using a clone nano myself with success but who knows?
To be noted is that I'm using a 5V to 3.3 V level shifter.
I do not know if this really is necessary.

Are you powering the board via its usb-interface?

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

I tried with powering via usb and via external supply, no difference...
Also for the bridge I tried the usb and 3.3 supply

from rf-bridge-efm8bb1.

ErikAndren avatar ErikAndren commented on August 17, 2024

Running out of ideas here.
Try different pins on the arduino, try different arduino, try different host.

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

I'm getting an other error with different pins:

Connected
x: 0x81
PI initiated
127.0.0.1 - - [05/Mar/2018 16:36:25] "POST / HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/flask/app.py", line 1997, in call
return self.wsgi_app(environ, start_response)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/mcoenen/Downloads/efm8-arduino-programmer-master/prog_server.py", line 117, in hello
programmers[port].prog(firmware)
File "/Users/mcoenen/Downloads/efm8-arduino-programmer-master/prog_server.py", line 42, in prog
assert(0x84 == struct.unpack('B', self.ser.read(1))[0])
error: unpack requires a string argument of length 1

from rf-bridge-efm8bb1.

AlbertWeterings avatar AlbertWeterings commented on August 17, 2024

What kind of Arduino do you use in between your PC and EMF8 @mcoenen1994 ? I also struggled for some time but finally got it to work. With a Leonardo I used this code and pins are 3 for C2Ck 4 for CD.

C2_programmer.zip

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

@AlbertWeterings I'm using a Mega 2560 clone. It doesn't have a port-D if I'm right.

from rf-bridge-efm8bb1.

AlbertWeterings avatar AlbertWeterings commented on August 17, 2024

@mcoenen1994 I expect the clone has the same chip, maybe ports are different routed to the outside of the board. I would try to write a small sketch (blinking LED's) to check if you are on the right ports. Otherwise if you have a other Arduino around use that one.

from rf-bridge-efm8bb1.

Portisch avatar Portisch commented on August 17, 2024

Do you use Windows? I have a small (just for testing) self written Windows program to send hex files over the COM port to the Arduino with the efm8-arduino-programmer firmware.

from rf-bridge-efm8bb1.

ErikAndren avatar ErikAndren commented on August 17, 2024

https://www.silabs.com/community/mcu/8-bit/knowledge-base.entry.html/2015/06/08/how_to_use_efm8_star-8aHu

Might be useful, especially the part about 1kOhm pull up resistor on C2CK

from rf-bridge-efm8bb1.

AlbertWeterings avatar AlbertWeterings commented on August 17, 2024

@mcoenen1994 I found this project by Lucas Hartmann eventualy it did not compile but after making these changes to httpServer.h and c2_prog_wifi.ino it compiled without a problem in the Arduino IDE.

Than still it did not work but with the additional pull up resistor mentioned by @ErikAndren it started to work.

A few thing you need to keep in mind pin mapping in c2.h are pointing to GPIO pins (don't make my mistake and take D0 and D2 on a LoLin board). Microsoft Edge and Internet explorer don't work, firefox works. Programming takes minutes sometimes it look if it got stuck but keep waiting it will continue.

If you write @Portisch firmware the bridge will beep when programming is ready.

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

With an other arduino it succeeded! I now used an original arduino uno. I think it went wrong with the pin-mapping of the arduino mega clone but not sure.

Thanks for the input!

from rf-bridge-efm8bb1.

ErikAndren avatar ErikAndren commented on August 17, 2024

Did you use a level-shifter or did you flash directly from the arduino (i. e. did you use 5V i/o voltage)?

from rf-bridge-efm8bb1.

mcoenen1994 avatar mcoenen1994 commented on August 17, 2024

I used the Arduino Uno with only the usb connection to my macbook. The efm was connected via the C2 pins and the ground.

It beeped after programming but not yet able to learn my Sonoff motion detector, but probably that has nothing to do with the efm:)

from rf-bridge-efm8bb1.

AlbertWeterings avatar AlbertWeterings commented on August 17, 2024

@mcoenen1994 Portisch firmware is not yet able to handle RF codes from all hardware see #5 I hope @Portisch finds time soon to make updates that add more hardware and solve some issues.

from rf-bridge-efm8bb1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.