Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Ikes 72000
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by Ikes 72000

    • RE: Compilation error nrf52_dk plateformio

      I just tried this code and compilation fail.

      #define MY_GATEWAY_SERIAL
      #include <MySensors.h>
      
      void setup() {
        // put your setup code here, to run once:
      }
      
      void loop() {
        // put your main code here, to run repeatedly:
      }
      

      Log:

      Processing nrf52_dk (platform: nordicnrf52; board: nrf52_dk; framework: arduino)
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Verbose mode can be enabled via `-v, --verbose` option
      CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/nrf52_dk.html
      PLATFORM: Nordic nRF52 4.4.0 > Nordic nRF52-DK
      HARDWARE: NRF52832 64MHz, 64KB RAM, 512KB Flash
      DEBUG: Current (jlink) On-board (cmsis-dap, jlink) External (blackmagic, stlink)
      PACKAGES:
       - framework-arduinonordicnrf5 1.600.190830 (6.0)
       - tool-sreccat 1.164.0 (1.64) 
       - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
      LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
      LDF Modes: Finder ~ chain, Compatibility ~ soft
      LibraryManager: Installing id=548
      Using cache: C:\Users\Ikes\.platformio\.cache\08\6b3d0755f5ced94725e5025051350d08
      MySensors @ 2.3.2 has been successfully installed!
      Found 37 compatible libraries
      Scanning dependencies...
      Dependency Graph
      |-- <MySensors> 2.3.2
      |   |-- <Time> 1.6
      |   |-- <SPI> 1.0
      |   |-- <Wire> 1.0
      Building in release mode
      Compiling .pio\build\nrf52_dk\src\main.cpp.o
      Compiling .pio\build\nrf52_dk\lib45d\Time_ID44\DateStrings.cpp.o
      Compiling .pio\build\nrf52_dk\FrameworkArduino\Stream.cpp.o
      Compiling .pio\build\nrf52_dk\FrameworkArduino\Uart.cpp.o
      In file included from C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/Arduino.h:17:0,
                       from C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp:12:
      C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp: In function 'char* monthStr(uint8_t)':
      C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:105:49: error: 'const void*' is not a pointer-to-object type
       #define pgm_read_ptr(addr) (*(const void *)(addr))
                                                       ^
      C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:63:45: note: in definition of macro 'strcpy_P'
       #define strcpy_P(dest, src) strcpy((dest), (src))
                                                   ^~~
      C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp:72:29: note: in expansion of macro 'pgm_read_ptr'
           strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(monthNames_P[month])));
                                   ^~~~~~~~~~~~
      C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp: In function 'char* dayStr(uint8_t)':
      C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:105:49: error: 'const void*' is not a pointer-to-object type
       #define pgm_read_ptr(addr) (*(const void *)(addr))
                                                       ^
      C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:63:45: note: in definition of macro 'strcpy_P'
       #define strcpy_P(dest, src) strcpy((dest), (src))
                                                   ^~~
      C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp:86:28: note: in expansion of macro 'pgm_read_ptr'
          strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(dayNames_P[day])));
                                  ^~~~~~~~~~~~
      In file included from .pio\libdeps\nrf52_dk\MySensors/MySensors.h:74:0,
                       from src\main.cpp:7:
      .pio\libdeps\nrf52_dk\MySensors/hal/architecture/NRF5/MyHwNRF5.cpp: In function 'uint16_t hwCPUVoltage()':
      .pio\libdeps\nrf52_dk\MySensors/hal/architecture/NRF5/MyHwNRF5.cpp:506:16: warning: 'sample' is used uninitialized in this function [-Wuninitialized]
        return (sample*3600)/255;
               ~~~~~~~^~~~~~
      *** [.pio\build\nrf52_dk\lib45d\Time_ID44\DateStrings.cpp.o] Error 1
      =========================================================================================== [FAILED] Took 5.57 seconds ===========================================================================================
      
      posted in Development
      Ikes 72000
      Ikes 72000
    • RE: Best PC platform for running Esxi/Docker at home?

      @monte said in Best PC platform for running Esxi/Docker at home?:

      +1 for proxmox. Didn't have good experience with esxi. Proxmox is opensource, free and debian-based. Using it on HP microserver gen 8.
      As for CPU choice I don't see how there would be any issue with Ryzen. All you need from processor is hardware virtualization, and I think all except the lowest level ones have it nowadays.

      I have two HP gen8 microserver running Esxi 6.7U3, working fine.
      I tried Proxmox earlier, and encountered some issues.
      Both HP run old cpu (core i3 and xeon e3-1265) and 7 or 8 VM each (OMV, pfsense, Nodered, Mosquitto, HA, Nextdom, seedbox, other).
      Cpu are not used much, less than 25%.
      So with recent cpu, you shoudn't have any issues.

      posted in Controllers
      Ikes 72000
      Ikes 72000
    • RE: Floor Cooling in my House

      Hi,

      @Strontvlieg, you can use Node-red for that, it's simple and work fine.
      I use both Modbus and Mysensor at home, with Node-red.

      Modbus Node red
      Mysensors Node red

      With this solution, it will be easy to do what you need to achieve.

      posted in General Discussion
      Ikes 72000
      Ikes 72000