problem with LPC4357-EVB example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

problem with LPC4357-EVB example

1,222 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ah1986 on Fri Apr 18 04:50:50 MST 2014
Hi everyone,
I want to test LPC4357 blinky. But when i downloaded my code, I got nothing from the board.
I used LPC43xx CMSIS in my code. my code is as below:
#include "lpc43xx_gpio.h"
#include "lpc43xx_scu.h"
#include "lpc43xx_libcfg.h"
#include "lpc43xx_cgu.h"

int main(void) {
unsigned long del=0;

SystemInit();
CGU_Init();

scu_pinmux(0xE, 7 , MD_PDN, FUNC4);
GPIO_SetDir(7,7,1);
while(1) {
GPIO_ClearValue(7,7);
for (del=0;del<15000000;del++);
GPIO_SetValue(7,7);
for (del=0;del<30000000;del++);
}
return 0;
}


I download my code on Flash Bank A. I appreciate if someone can help me
标签 (1)
0 项奖励
回复
5 回复数

1,130 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nravi on Thu Sep 17 12:20:37 MST 2015
Hi,


Try this ,


              GPIO_ClearValue(7,1<<7);
             for (del=0;del<15000000;del++);

      GPIO_SetValue(7,1<<7);
             for (del=0;del<15000000;del++);

Ravi
Bengaluru
0 项奖励
回复

1,130 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ah1986 on Fri Apr 25 02:58:07 MST 2014
Dear Wouter,
I did exactly as you said but I didn't get any output  :(
0 项奖励
回复

1,130 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Mon Apr 21 11:14:00 MST 2014
Hi ah1986,

Please try the examples from this link, it also contains a blinky which works out-of-the-box when running on an LPC4357-EVB board.
You should download examples1.zip and examples 2.zip, unzip examples1.zip to a folder (e.g. C:\LocalData\LPC4357-EVB), then unzip examples2.zip to C:\LocalData\LPC4357-EVB\Examples2.
Then open C:\LocalData\LPC4357-EVB\Examples2\GPIO\Gpio_LedBlinky\Keil\Gpio_LedBlinky.uvproj, build and download.

The project already has the signature generation configured.

Regards,
Wouter
0 项奖励
回复

1,130 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ah1986 on Fri Apr 18 08:23:55 MST 2014
Dear mc,
I put those command but nothing changed. I still don't see blinking LED.
I use Keil 4.70 for developing code & J-Link Ver.7.0 for programming and debugging
0 项奖励
回复

1,130 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri Apr 18 07:07:28 MST 2014
Hi ah1986,
Which tool are you using? You need to set checksum when booting from internal flash. In Keil tool chain
open options dialog box
Go to user tab
and run below command in "Run user command after Build/Rebuild"
Run1:
$K\ARM\BIN\ELFDWT.EXE !L BASEADDRESS(0x1A000000)
Run2:
fromelf --bin -o "$L@L.bin" "$L@L.axf"
0 项奖励
回复