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.
-
2Does your board run your friend's .hex file ok?RedGrittyBrick– RedGrittyBrick2021年09月15日 13:16:42 +00:00Commented 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.Zhelyazko Grudov– Zhelyazko Grudov2021年09月15日 18:24:48 +00:00Commented Sep 15, 2021 at 18:24
-
1why you don't upload over USB bootloader if you flashed it?Juraj– Juraj ♦2021年09月15日 19:21:13 +00:00Commented 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?Zhelyazko Grudov– Zhelyazko Grudov2021年09月16日 08:15:35 +00:00Commented Sep 16, 2021 at 8:15
-
maybe try "Upload with programmer" from the Sketch menuJuraj– Juraj ♦2021年09月17日 09:38:23 +00:00Commented Sep 17, 2021 at 9:38