-
-
Notifications
You must be signed in to change notification settings - Fork 284
Successful upload but no output on nRF52810 #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Samlbakr, You may need to look at the documentation of 52810 and make sure the pin mapping matches the Generic nRF52. I had to write my own for 52833. |
Hello, thank you for the reply. My PCB closely follows the QFN32 LDO schematic in the NRF52810 datasheet (pg 400.) with an LED on P0.20. It's powered with a 3.7v li-ion with a 3.3v regulator. I broke out the reset and SWD pins and connected GND, 3.3V, SWDIO, and SWDCLK to the ST-Link v2. I have been flashing with soft device S132 and Generic nRF52 selected. Every time it is has uploaded and verified bytes successfully. I also just bought a j-link to test it out with nRF Connect. (It refused to work with ST Link) It shows up and I can read and write successfully. Tested the j-link with the Arduino IDE and its the same result; upload succeeds but nothing happens. Here is the code I have been trying to upload:
I am not 100% on the pin mapping and have even tried with every integer 1-32 with no result lol. I have taken a peak at the variant files but honestly have no idea what I am looking at. Could you point me towards some resources so that I can write my own variant? EDIT: Had a small realization that may be useful. I thought I could upload using the DK variant since the nRF52832 has the same pinout as the nrf42810. However, I am using the 32 pin version and not the 48 pin version that's on the DK. |
UPDATE: I have successfully gotten a simple blink sketch to work using Segger studio. Still no luck with Arduino. I tried making my own variant but don't really know what I am doing. I really don't want to have to use Segger studio if possible. Any help would be greatly appreciated! |
You have thee files in variants: pins_arduino.h, variant.cpp, and variant.h. in the soft device folder (ex: C:\Users\MyUserName\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.7.0\cores\nRF5\SDK\components\softdevice), make sure you have a compatible softdevice with your module. in the text file "boards.txt", add your variant and the appropriate functions. You will find the file in: Example:
|
Thank you!! I was able to write a variant for the nRF52810 and my blink sketch now works perfectly. However, I am having some trouble with the softdevice. When I select a softdevice rather than
I was able to find a linker script for s132 which compiles, but I only need peripheral BLE functionality so I was hoping to use the s113. Any clue where I could find this? Thanks so much again! |
Create a folder in In "headers" folder, place the .h files from the softdevice file you downloaded from nRF website.
Make sure the file names and the properties in "boards.txt" match. |
I have the same problem on a custom nrf52820 board. How do I fix that issue? Everything seems like it should work but the soc just does nothing.. |
Hi George, Could you describe your system?
|
@samlbakr Could you share more info on how you made blink work on nRF52810? I am currently doing the same by writing a custom board.json with necessary options, and I stumble upon 2 issues:
UPDATE: Oh, I've realized that my points are related to PlatformIO nrf5 platform, so it's not related to this repository, and only Uart.cpp relates to the core |
I have a custom nRF52810 based board connected via ST-Link v2 programmer. I have attempted using boards Generic nRF52 and nRF52 DK. Theoretically the nRF52810 should be identical to the nRF52823 on the DK (Besides the memory.) When I flash my code it uploads and verifies successfully however there is no output on my board (Basic blink sketch.) I am quite sure I am using the correct GPIOs and even wrote a test that looped through all the digital pins to be sure. Is the nRF52810 not supported?
The text was updated successfully, but these errors were encountered: