Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 8 months ago.
what's the frequency of crystal, 16MHz or 8MHz?
i tested a blink example program on my own board, it doesn't work, the frequency of the crystal is 16MHz and my chip version is QFAAG0.
could you give me some advice? Thank you.
best regards, Yuting You.
Question relating to:
2 Answers
10 years, 8 months ago.
Hi Yuting,
Are you using the new pca10024 mbed board or the old evaluation kit board (PCA10001)? To use the mbed method you need the new PCA10024 board.
When you hook it up to your pc it will look like a "flash drive" . Compile the project here in the cloud and then save it. (to your local drive) Then drop this hex file into the mbed "flash drive". It will program the board and LED 1 will flash.
If you are not using the new PCA10024 board you will need to get one in order to use the cloud based mbed system.
BTW, Both the PCA10001 and the PCA10024 use a 16Mhz crystal to run the radio and Cortex M0.
Hope this helped,
Jay
Hi, Jay, thanks for your response. the board we are using is designed by ourselves. it maybe an old version(QFAAG0). i downloaded hex file directly into nrf51 flash via J-Link Debugger, it didn't work. do you mean that only the latest version chip can work on mbed platform?
posted by 10 Apr 2014Hello Yuting,
The QFAAG0 is the production part being shipped currently and is the device on the new PCA10024 mbed board. I took my non-mbed Nordic evaluation board and programmed it with the blinky file I created with the mbed cloud and it works as designed. (LED 0 blinking about every .5 seconds). To do this I used the new mbed compiler and then I used the Nordic PCA10001 board which uses the Segger j-link programmer IC and the nRFgo studio.
If you are having issues programming the nRF51822 over the SWD lines then I would look at something else going on with the board you made. I suggest that you submit the schematic and layout to the Nordic Semiconductor support portal located on the Nordic Website. They can review your hardware design.
Regards , Jay
posted by 10 Apr 2014Hi, Jay, really appreciate your patience in answering my quesion. i've solved the problem now. i used nrfgo studio and j-flash to download a same hex file respectively. nrfgo studio prompted me "Programmed Successfully application ...", but i read back program from flash(using j-flash), i found all the data is 0xFFFFFFF, i should mention that when i downloaded both softdevice and application, it worked. and then i downloaded the hex file by using j-flash, it worked fine.
i'm really happy my board can work on mbed platform, and i hope the information above can be helpful.
posted by 11 Apr 201410 years, 8 months ago.
Hello Yuting,
I have meet the problem as you said,but not have solved. I used the Nordic PCA10001 board. I use following program:
- include "mbed.h"
DigitalOut myled(P0_19);
int main() {
while(1) { myled = 1; wait(0.5); myled = 0; wait(0.5); }
}
Then I download the hex file from the online compiler.I use the NRFgo studio.
First,I choose the nRF51 programming.Click erase all,than I click the program application to download the hex file into the nRF51822 chip.But there is no phenomenon.
Why?Please help me. Thank you!