2

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

asked Sep 15, 2021 at 13:13
6
  • 2
    Does your board run your friend's .hex file ok? Commented 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. Commented Sep 15, 2021 at 18:24
  • 1
    why you don't upload over USB bootloader if you flashed it? Commented 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? Commented Sep 16, 2021 at 8:15
  • maybe try "Upload with programmer" from the Sketch menu Commented Sep 17, 2021 at 9:38

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.