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 ago.
digitalout lpc4078
I wrote next program on qsb4088 board:
- include "mbed.h"
DigitalOut lp9(p9); DigitalOut lp10(p10); DigitalOut lp17(p17); DigitalOut lp19(p19);
int main() { while(1) { lp9 = 1; lp10 = 1; lp17 = 1; lp19 = 1; wait(0.2); lp9 = 0; lp10 = 0; lp17 = 0; lp19 = 0; wait(0.2); } }
I test it on the QSB4088 board and it works, but when i load this program in a home made LPC4078 the digital out pins don't change. What is wrong?
1 Answer
10 years ago.
Hi,
How did you flash the binary file to your home made LPC4078 board?
If you use ISP mode for programming, you have to care about the check-sum data in your flash image. (See UM10562 user manual: 38.3.1.1 Criterion for Valid User Code)
In case of the QSB4088, CMSIS-DAP interface firmware add check-sum data during USB drag and drop, so you don't need to worry about this. However, you may have to put check-sum data in your binary file using other tool.
In that case, you can use Checksum utility in LPCXpresso tool.
https://www.lpcware.com/content/forum/download-program-without-ide-