Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Adafruit M0 hang up during hwInit at eep.begin

Adafruit M0 hang up during hwInit at eep.begin

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 31 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jenspr
    wrote on last edited by
    #1

    Hello everybody,

    i set up my gateway so far and everything worked fine.
    Now i soldered all parts nicely on a board and put it in the final housing. But the gateway make gave no message on the Serial.

    I followed the code and put after each line an output to the Serial to find the position where it stucks. Finally i found it:
    ```

    MY_DEBUGDEVICE.println(F("AFTER Wait for synchronization of registers between the clock domains")); 
    const uint8_t eepInit = eep.begin(MY_EXT_EEPROM_TWI_CLOCK, &Wire);
    MY_DEBUGDEVICE.println(F("AFTER eep.begin(MY_EXT_EEPROM_TWI_CLOCK, &Wire);"));
    

    The second message does not arrive on my computer. I would assume that the function eep.begin runs infinite..??

    Interesting for me is that also the reset-button on the adafruit-board does not bring back the controller. After the reset no message is displayed?
    I need to upload the sketch to the board again to re-start the software?

    I saw that the watchdog is set before. I thought that the watchdog should also make some kind of reset if the software gets stucked during the eeprom init.

    I found in the troubleshooting a section that "on rare occasions you might need to clear this memory back to the factory default."
    But the sketch is hanging up at the same position.

    i do not know what to try next... Is it possible that the EEPROM section on the controller got damaged?
    Could somebody please give me a hint?..

    Maybe it would also be a nice idea in general to give some debug-message during the init of the hardware to at least show that the library started to doo something?```

    Thank you very much!
    best regards
    Jens

    J 1 Reply Last reply
    0
    • J jenspr

      Hello everybody,

      i set up my gateway so far and everything worked fine.
      Now i soldered all parts nicely on a board and put it in the final housing. But the gateway make gave no message on the Serial.

      I followed the code and put after each line an output to the Serial to find the position where it stucks. Finally i found it:
      ```

      MY_DEBUGDEVICE.println(F("AFTER Wait for synchronization of registers between the clock domains")); 
      const uint8_t eepInit = eep.begin(MY_EXT_EEPROM_TWI_CLOCK, &Wire);
      MY_DEBUGDEVICE.println(F("AFTER eep.begin(MY_EXT_EEPROM_TWI_CLOCK, &Wire);"));
      

      The second message does not arrive on my computer. I would assume that the function eep.begin runs infinite..??

      Interesting for me is that also the reset-button on the adafruit-board does not bring back the controller. After the reset no message is displayed?
      I need to upload the sketch to the board again to re-start the software?

      I saw that the watchdog is set before. I thought that the watchdog should also make some kind of reset if the software gets stucked during the eeprom init.

      I found in the troubleshooting a section that "on rare occasions you might need to clear this memory back to the factory default."
      But the sketch is hanging up at the same position.

      i do not know what to try next... Is it possible that the EEPROM section on the controller got damaged?
      Could somebody please give me a hint?..

      Maybe it would also be a nice idea in general to give some debug-message during the init of the hardware to at least show that the library started to doo something?```

      Thank you very much!
      best regards
      Jens

      J Offline
      J Offline
      jenspr
      wrote on last edited by
      #2

      Hello everybody,

      i found the reason for the issue... I connected already a BMP280 to the I2C pins of the Feather M0 board. To check one thing after another i did not yet connect the power supply to the BMP280. It works if i solder disconnect the BMP280 from SDA&SCL and also if i connect the 3,3V of the BMP280.

      It seems that the not powered BMP280 is confusing the I2C-bus so badly that the EEPROM library can not handle it. In my opinion should this kind of "mistake" in the wiring not lead to a complete black-out.

      Is the external EEPROM usage in general for SAMD hardware okay? In my case i use the Feather M0 which has no external EEPROM connected. Somehow i think that it was done for the Sensebender board?

      I would suggest to

      • add a debug message at the beginning of the hwInit in the mysensor library that everybody can see that the library starts to works
      • put the external EEPROM functionality in a #define switch or better use some internal EEPROM function

      By the way is something with the clock also wrong.
      My Serial is running at 9600 - but the Software says #define MY_BAUD_RATE (115200ul)..

      i am not very familiar with github and how to use it. If it is welcome that a mechanical guy tries to implement something like above in the library, contact me for a try ;-)

      best regards
      Jens

      1 Reply Last reply
      1
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      26

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular