A bit of a general question, but asking in case someone has stumbled onto a similar problem before. A friend and I designed a custom PCB board based on the ATSAMD21G microprocessor. The board has a accelerometer connected on I2C and a NRF24 connected on SPI.

The rest of the functionality of the board is working as expected. My friend, who lives in a different country is able to use his copies of the board (all 5 copies were made by the same manufacturer in the same batch) without issue. But on my end, attempting to call the wire library causes loop to not execute. We wonder, if we are missing a potential software issue. We already checked that the core for the boards, the IDE and libraries are the same. And I have previously used the IDE for other wire.h based projects.

enter image description here

  • 2
    Does your board run your friend's .hex file ok? Sep 15, 2021 at 13:16
  • Using J-flash (j-link programmer) I get a "cannot download file" error when I try to flash the .bin, .hex of the sketch he sent me. I will explore other options, but not sure how to flash atm. J-flash did work for flashing the bootloader. Sep 15, 2021 at 18:24
  • 1
    why you don't upload over USB bootloader if you flashed it?
    – Juraj
    Sep 15, 2021 at 19:21
  • I wasn't aware this could be done in the IDE. Done some googling. So I should try to upload it via the command prompt, instead of j-link? Sep 16, 2021 at 8:15
  • maybe try "Upload with programmer" from the Sketch menu
    – Juraj
    Sep 17, 2021 at 9:38


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.