Hi Sir,
We use the DA1468x/DA1510x PRO-Development kit to develop our project, we can load code to the daughter board by the mother board.
After that, we designed our own PCB of DA14681. Can we use the mother board of development kit to load the code to our own PCB ?
We used the Pin16(SWDIO), Pin20(SWCLK), Pin24(VBAT+ = 3V), Pin28 (GND) of J3 of the attached schematic(mother board) to connect our PCB (P0_6, P2_4, VBAT1&VBAT2, GND).
Is that correct ? or anything we missed ?
We are failed to load code to our PCB, the error message is "cannot open gdb interface"
The flash we used is W25Q80EWNIG.
Regards,
Ivan
Device:
Hi ivanchen,
“不能打开gdb接口”消息意味着the JTAG is not connected with the DA14681 SoC. The connections you are using between your custom board and the Dev-Kit are correct, so you should not connect something else. Please check the header J14 of the motherboard Dev-Kit. Both jumpers of the J14 should be mounted in order to enable the JTAG connection with an external PC. Also, please make sure if you have configured the motherboard with the default jumpers placement. I suggest you to check you to check theFigure 7: Jumper’s placementof the motherboard of theDA1468x/DA1510x PRO Development kit (UM-B-060)user manual from our support page.
Thanks, PM_Dialog
Hi Sir,
We have checked and followed the "Figure 7: Jumper's placement" of the mother board, It doesn't work.
We measured our PCB. All the power outputs (V33, V18, V18P, V14_RF, V12) are correct , and the QSPI_VDDIO=1.8V.
We can get the 16MHz waveform on both daughter board and our PCB
We can get the 32.768kHz waveform on the daughter board, but we can not measure it on our PCB. Is this the problem to make the load code procedure fail?
We measured the voltage of "SWDIO" of daughter board(code loaded), it is 500mV. But it is 3V on our PCB(no code inside).
Is it the problem ? We are not sure what is the default value for this pin of DA14681 without code inside ?
And the voltage of "SWCLK" are 0V on both daughter board and our PCB.
These two pins "SWDIO" and "SWCLK" are connected to the DA14681 on our PCB only, not connected to other components.
Is there anything else we can measure to check if the DA14681 is alive on our PCB ?
Thanks,
Ivan
Hi ivanchen,
Could you please clarify what you mean with that?
“We can get the 32.768kHz waveform on the daughter board, but we cannot measure it on our PCB.”
Why you are not able to measure the 32.768kHz on your custom board? I suppose that is an issue on your PCB. You have to measure the 32.768kHz pulse, because the DA14681 uses the XTAL32K or the RCX as low power clock when it goes to sleep mode.
Also, be aware that the default value of the SWDIO is 3.3V without any code inside. We measured it both in SWDIO test point of DA14681 daughterboard and in J14 header of DA1468x/DA1510x PRO Development kit. So, it is not possible to measure 500mV voltage of "SWDIO" of daughterboard and 3V on our PCB with no code inside.
Could you please use the RCX as low power clock with typical value at 10.5KHz (internal oscillator)? Also, I suggest you to execute JLinkGDBServer.exe in the segger folder to see if Cortex-M0 can be found or not. This is just to check the SoC on your custom board run well.
Thanks, PM_Dialog
Hi Sir,
I mean I can not get the 32.768kHz waveform at the pin XTAL32KP or XTAL32KM on our PCB.
If the da14681 works well, I have to get the 32.768kHz waveform at pin XTAL32KP or XTA32KM. Is it correct ?
How can I use the RCX when I can not load code ?
Can the code be loaded to da14681 if there is no "32.768kHz crystal" on the board ?
Thanks,
Ivan
Hi ivanchen,
Yes, it is correct. If the chip works correctly, you should get 32.768kHz waveform. For using RCX you should define this:
#define dg_configUSE_LP_CLK LP_CLK_RCX
But, you are able to load firmware to the SPI flash without using the XTAL32K. The XTA32K is used only when the device goes to sleep mode, so we use it only for low power clock. Could you please clarify if the basic 16MHz crystal oscillator is working correctly?
Thanks, PM_Dialog