I have read this thread, have bought a few E73-2G4M08S1C modules for experimenting, downloaded platformio and tried to flash it. I recognized I am not able to do it with my STM32 link V2 programmer in platformio. Could somebody summarize what are the current options to flash NRF52840? Is there a way how to use STM32 link V2 or we just need to IDE from Arduino to Platformio and invest into new programmer (DK/BMP)?
Posts made by xmonika
-
RE: Everything nRF52840
-
RE: What did you build today (Pictures) ?
@NeverDie a big thank you as I was inspired by many of your post and this was my first Nrf5 project. The backplate is designed in KiCAD and then outsourced for etching to one local semi-hobby service. Modules are then connected via precision header pins (concept inspired by Ardumower)
-
RE: What did you build today (Pictures) ?
Have finished RIB king gate opener/controller based on NRF52840 & MySensors.
image url) -
Which (cheap) bulb in 2020?
Prices of bulb went dirty cheap. I have bought bluetooth version https://www.ebay.com/itm/15W-LED-bulb-RGB-bluetooth-APP-control-Dimmable-globe-lamp-for-Google-home-Alexa/254349689226 and thinking of connecting to MySensors (have GW or RPi3 and OpenHab2). In my case I need only white color and some dimming capabilities and I was able to crack down the bluetooth protocol, so I can controll it from raspberry via console (but there will not be direct connection once installed due to longer distance).
There are more than one alternatives how to Mysensorize it:
1/ disassembly bulb and solder out BT module, then replace it for NRF5 modules - problems - the space is very limited, voltage incompatibility, requires another PCB and probably some pasive electronics
2/ run extra bluetooth / Zigbee mesh besides the mysensors and let the Controller talk to each network separatelly
3/ select another bulb where the integration will be easier - which one?
4/ construct extra node which will be bridge between MySensors and bluetoothWhich one is the smartest solution in 2020. I have the same task with several other aplication like BT heating valves.
Thank for your ideas! -
RE: Arduino IDE 1.8.10 - Warning....
Still valid in 2020. Got a compilation error "Error resolving FQBN: missing". Downgrade to 1.8.9 helped
-
RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners
@omemanti @mfalkvidd Thank you, I think I did it. It works now - or I hope so from the code.
** Programming Finished ** ** Verify Started ** nrf51.cpu: target state: halted target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20004000 verified 1412 bytes in 0.038633s (35.692 KiB/s) ** Verified OK ** ** Resetting Target ** shutdown command invoked
What I was confused is that there is erase sketch, but to make it erased there is this trick with burn bootloader. Still the port is greyed out, but it seems I am able to flash blank sketch. Thanks
-
RE: 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel
-
I've downloaded the source files and tried to compile them.
I got fatal error: sketch/MyBoardNRF5.h: No such file or directory -
Then I renamed MyNRF5Board.h to MyBoardNRF5.h
I got #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless. -
Then I added #define MY_GATEWAY_SERIAL into the code
I got many errors i.e. 'PIN_AIN0' was not declared in this scope
How to compile the downloaded source files?
-
-
RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners
I am starting to experiment with NRF51822. Thank you all for this thread. I am stuck with setting up IDE on Win10 and my MCU is not communicating. What is the correct setup for Arduino IDE?
I have Port still grayed out and error: The selected port not existCould that be related to drivers? I've run Zadig, there are more options and I've tried all four of them
I am not able to upload even erase sketch. Any suggestion where to focus (IDE/Zadig/other)?
-
RE: Can't connect to radio on raspPi with latest stable 2.1.1 build, but works with 2.2.beta but with beta mqtt gateway very unstable...
Same by me - combination of Rapberry 3 + mosquitto + OpenHab2. 2.1.1. doesn't start at all (TSM:INIT:TSP FAIL), 2.2.0 beta starts without troubles but after a few minutes the communication is lost (!TSF:MSG:LEN,0!=32). Have capacitors on the node and gateway.
-
RE: Serial GW on RaspberryPI 3 doesn't start
In my case the problem is related to MQTT gateway, so not sure if that helps.
-
RE: Serial GW on RaspberryPI 3 doesn't start
Try to install version 2.2.0 beta, this helped me and it is described in other post. The gateway still may be unstable but not only I don't know why 2.1.1 doesn't work.
-
RE: Can't connect to radio on raspPi with latest stable 2.1.1 build, but works with 2.2.beta but with beta mqtt gateway very unstable...
I am experiencing the same behavior. 2.1.1. radio is not detected. 2.2.0 beta detected ok.
-
RE: Beginner - what is wrong
The programmer has 10 pins but the GND is presented 4x. Check the picture [here](http://www.avrfreaks.net/forum/adapter-program-10-pin-6-pin-socket-cable-computer-pc-led-reset-power for wiring, this is how I did it.
-
RE: Beginner - what is wrong
I just have this problem with "programming" solved. I bought this USBISP programmer, downloaded libUSBk drivers from here and pushed it into SBmicro via programmer USBasp. I don't know why but from some reason two UART programmers were not working.
It may save frustration and time to somebody in future.
-
RE: Beginner - what is wrong
Unfortunately I didn't solved it, I just gave it up and am waiting for new ISP programmer to arrive. That is the last piece I didn't changed (I have changed computer/SW, sensebender Micro and it didn't helped). Hope you will be more successfull.
-
RE: Beginner - what is wrong
Could be but the same I get on my second computer (win 10 as well). Will experiment with that.
-
RE: Beginner - what is wrong
So I tried Arduino nano (may be clone). The result is simillar - not in sync. But then I tried the nano via standard mini USB cable and also not in sync. Possibly WIN 10 related? I tried it with admin privileges.
-
RE: Beginner - what is wrong
I have selected 8 MHz. This is what it looks like by me
This is what I did today - got another sensebender micro (SBM) board, soldered jumpers, connected again. Then I measured the conductivity between DTR pin on CP2102 chip and capacitor on DTR wire on SBM. It shall be conected via my wires and it was correctly connected.
Then I run the compillation again and the result is the same - not in sync. So I feel I have replaced everything but still getting the same error.
-
RE: Beginner - what is wrong
@tbowmo Yes, second icon from the left (or Ctrl+U).
By pressing Project Upload via programmer (in menu Project or Ctrl+Shift+U) the result is little bit different - no stk500_getsync() attempt 7 of 10: not in sync: resp=0xdb error just uncommented Upload error. -
RE: Beginner - what is wrong
So I have tried it on the different computer and the results are the same.
This is what I did:
- download ide 1.8 here https://www.arduino.cc/en/main/software & install
- download CP CP2102 win 10 drivers here https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
- install mysensors libraries in IDE via manage library internal tool
- add https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json to IDE
- select Sensebender micro board, COM6 (the only available), Programmer AVRISP.mkII
- add necessary libraries to compile the sensebender micro sketch as described here https://www.mysensors.org/about/arduino#optional---install-external-mysensors-examples - via creating zip files and add zip library file to sketch. Necessary libraries were SI7021 + sha204 + RunningAverage
- compile and upload the basic sketch from here https://www.openhardware.io/view/1/Sensebender-Micro
Result is: stk500_getsync() attempt 7 of 10: not in sync: resp=0xdb
-
RE: Beginner - what is wrong
@tbowmo I will try to install all the drivers & IDE on diferent comp tomorrow. I already did the downgrade from 1.8 because of the note "Arduino IDE 1.5.x & 1.6.x compatible." in SB tech specs.
Anyway thanks for your help. I will have to invest more hours yet to reinvent the wheel but it is fine to have somebody to consult with. -
RE: Beginner - what is wrong
@tbowmo Yes, exactly. By pressing Project Upload => not in sync and Upload error. By pressing Project Upload via programmer => just Upload error message. Here is my setup
-
RE: Beginner - what is wrong
@tbowmo Yes, i.e. now I can see in the terminal all this:
Sensebender Micro FW 1.1req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: sensor started, id 255 - Online! req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: isMetric: 1 req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: T: 19.93 H: 79 req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
-
RE: Beginner - what is wrong
@tbowmo In IDE (Arduino: 1.6.13 - Windows 10), I have: "Sensebender Micro, Atmega328 8Mhz" (it is also shown in the code above) is that correct configuration?
-
RE: Beginner - what is wrong
@gohan But I don't have arduino, I have direct connection between USB/TTL and sensebender micro like this (double checked)
CP1202 USB-TTL <-> MySensebender micro
GND <-> GND
3v3 <-> VCC (tried as well with AA battery without VCC connected)
RX <-> TX
TX <-> RX
DTR <-> DTRIs there some way to manipulate reset directly on Sensebender micro? Like try to generate edge with the wire?
-
RE: Beginner - what is wrong
I have this one .
The programmer I am using is called AVRISP.mkII, hope that is correct.
I have the RX-TX and TX-RX connected. I tried to switch them as well and suppose they are now correct because serial monitor works. DTR on the adapter is connected to the board. The board in self test mode works ok, so it is not damaged.
The output is the error as above. This is very frustrating I already have some experience with arduino but here after 20+ hours of experimenting I am not able to get out of point zero.
Anyway thank you for your patience and help.
-
RE: Beginner - what is wrong
Unfortunately I couldn't move futher because of not being able to upload sketch into the node. I've bought CP1202 USB-TTL/3V3 with DTR pin, downgraded Arduino IDE to 1.6.13, set up Mysensebender micro board, COM6, ATmega328 8 MHz and tried all the programmers available but everytime got
Arduino: 1.6.13 (Windows 10), Vývojová deska: "Sensebender Micro, Atmega328 8Mhz" Projekt zabírá 20 862 bytů (67%) úložného místa pro program. Maximum je 30 720 bytů. Globální proměnné zabírají 747 bytů (36%) dynamické paměti, 1 301 bytů zůstává pro lokální proměnné. Maximum je 2 048 bytů. avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc2 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x37 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb4 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x57 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc5 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x64 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xdb avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xd9 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe5 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x41 Nastala chyba při nahrávaní projektu. Táto zpráva by měla mít víc informacií v "Zobrazení podrobného výstupu při kompilaci" podle zapnuté volby v Soubor -> Nastavení.
I've tried to switch Tx/Rx but not helped. I can track serial output, so there is some transfer
Sensebender Micro FW 1.1req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: sensor started, id 255 - Online! req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: isMetric: 1 req node id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok: T: 21.09 H: 53
Any ideas how to setup IDE to push the code into node?
-
RE: Beginner - what is wrong
Thank you for pointing my focus. I will try to experiment with that tonight.
-
RE: Beginner - what is wrong
It is just new mysensebender micro out of the box, I suppose this code https://www.openhardware.io/view/1/Sensebender-Micro but I may be wrong. It has the same behavior - when GND and A0 connected during boot, the led blinks.
-
RE: Beginner - what is wrong
Thank you for the reply, I've connected it to the raspberry directly (pins 19-24) as described here https://www.mysensors.org/build/raspberry. I've been playing with adding a capacitor 47 uF to both node and raspberry with no efect. I don't have debug of the node, it is mysensebender micro - standalone.
One way could be to replace gateway direct connection or node with arduino and start tracking. At this moment I don't know if I shall focus my energy to track hardware or there is just some SW tweak/configuration I've missed.
What I know for sure - if I disconect battery (two AA) from the node and reconnect it again the gateway writes some READ,255-255-0 rows above - according to log parser indicating that the node is requesting for ID but the gateway doesn't respond (just my guess). -
Beginner - what is wrong
I have successfully installed MySensors 2.2.0 beta, Openhab 2.1 on Raspberry 3 and connected NRF24l01+. Using MQTT.
Once I've started mysensors gateway there is some communication between node and gateway but the node doesn't get response
/MySensors $ sudo ./bin/mysgw -d mysgw: Starting gateway... mysgw: Protocol version - 2.2.0-beta __ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.2.0-beta mysgw: MCO:BGN:INIT GW,CP=RNNG----,VER=2.2.0-beta mysgw: TSF:LRT:OK mysgw: TSM:INIT mysgw: TSF:WUR:MS=0 mysgw: TSM:INIT:TSP OK mysgw: TSM:INIT:GW MODE mysgw: TSM:READY:ID=0,PAR=0,DIS=0 mysgw: MCO:REG:NOT NEEDED mysgw: MCO:BGN:STP mysgw: MCO:BGN:INIT OK,TSP=1 mysgw: Attempting MQTT connection... mysgw: connected to 127.0.0.1 mysgw: MQTT connected mysgw: Sending message on topic: mysensors-out/0/255/0/0/18 mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0: mysgw: Sending message on topic: mysensors-out/255/255/3/0/3 mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0: mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Could you help me what should I try next? Is that HW error, some wrong configuration or anything else?
My mqtt.cfg has this configuration
mqtt:mysensors.url=tcp://localhost:1883 mqtt:mysensors.clientId=openHAB