lpcxpressov5

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lpcxpressov5

1,221件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jx1 on Mon Jun 10 23:34:22 MST 2013
Hi,
   I am using the dali master with the nxp DaliController to control the brightness of the lamp.With the same wiring and power set-up, how come the binary from nxp can work but not the compiled one from lpcxpresso?
0 件の賞賛
返信
6 返答(返信)

1,169件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jx1 on Thu Jun 13 19:24:22 MST 2013
Hi jvdg,

Thanks for your help. How do you import the dali_master_lpc13xx project cause my source and header files are all in a dali_master_lpc13xx folder. Are yours in a zip file? Where did you import all the 3 projects? I only got the first step by importing CMSISv1p30_LPC13xx project.
0 件の賞賛
返信

1,169件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jvdg on Thu Jun 13 02:46:15 MST 2013
Hi jx1,

Yesterday I installed the latest LPCXpresso v5.2.4_2122 on my Windows 7 PC, and i also installed the latest NXP DALI SDK from following link:

[FONT=Calibri][COLOR=#0000ff]http://www.nxp.com/documents/software/LPC11xx_LPC13xx_DALI_DevKit.zip[/...

I used the following worspace path,
      "C:\nxp\lighting\DALI_SDK_v2.0\Workspace"
and imported all projects under
      "C:\nxp\lighting\DALI_SDK_v2.0"

Then the following 3 projects will be visible:
       CMSISv1p30_LPC13xx
       dali_master_lpc13xx
       DALI_Slave_LPC111x

The first 2 projects are needed for the USB2DALI device (board OM13046).

I first build a release version of the CMSISv1p30_LPC13xx project

[SIZE=2][SIZE=2][LEFT]Building target: libCMSISv1p30_LPC13xx.a
Invoking: MCU Archiver
arm-none-eabi-ar -r "libCMSISv1p30_LPC13xx.a" ./src/core_cm3.o ./src/system_LPC13xx.o
c:\nxp\LPCXpresso_5.2.4_2122\lpcxpresso\tools\bin\arm-none-eabi-ar.exe: creating libCMSISv1p30_LPC13xx.a
Finished building target: libCMSISv1p30_LPC13xx.a

[/SIZE]
/bin/make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size libCMSISv1p30_LPC13xx.a ; # arm-none-eabi-objdump -h -S libCMSISv1p30_LPC13xx.a >libCMSISv1p30_LPC13xx.lss
text data bss dec hex filename
134 0 0 134 86 core_cm3.o (ex libCMSISv1p30_LPC13xx.a)
408 4 0 412 19c system_LPC13xx.o (ex libCMSISv1p30_LPC13xx.a)

[/LEFT]
[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][LEFT]11:12:43 Build Finished (took 1s.404ms)[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE]
Then i build a release version of the dali_master_lpc13xx project

[SIZE=2][LEFT]Building target: dali_master_lpc13xx.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\nxp\lighting\DALI_SDK_v2.0\LPC134xMaster\CMSISv1p30_LPC13xx\Release" -Xlinker -Map=dali_master_lpc13xx.map -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T "../linker/dali_master_lpc13xx_Debug.ld" -L "../linker" -o "dali_master_lpc13xx.axf" ./src/bsp.o ./src/cr_startup_lpc13.o ./src/dali_master.o ./src/main.o ./src/usb.o ./src/usbdesc.o -lCMSISv1p30_LPC13xx
Finished building target: dali_master_lpc13xx.axf


/bin/make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "dali_master_lpc13xx.axf"; arm-none-eabi-objcopy -O binary "dali_master_lpc13xx.axf" "dali_master_lpc13xx.bin" ; checksum -p LPC1343 -d "dali_master_lpc13xx.bin";
text data bss dec hex filename
2448 4 132 2584 a18 dali_master_lpc13xx.axf
Created checksum 0xefffd84c at offset 0x1c in file dali_master_lpc13xx.bin
[/LEFT]
[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][LEFT]11:16:51 Build Finished (took 2s.621ms)[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE]
Then i downloaded the binary via a NXP LPC-Link board into the USB2DALI board.

By means of the DaliController GUI i was able to connect to the USB2DALI board and i could control a DALI Slave (board OM13026). Don't forget to connect a DALI power supply to the DALI bus.

To be really sure that i was able to build the DALI master software with the latest LPCXpresso development environment, i disabled the toggle of the heartbeat LED (D1 of OM13046 board) by commenting out the line

[SIZE=2][LEFT]bsp_set_led(LED_HEART_BEAT, hb_led_state);

which can be found in function "[B][SIZE=2]TickHandler[/B][/SIZE]()" in file bsp.c (in dali_master_lpc13xx project).

I again build the project dali_master_lpc13xx and downloaded it again into the USB2DALI board.

Again i could control the DALI Slave board, but now the heartbeat LED didn't blink at a one second blinking rate.

SO I CAN CONCLUDE THAT THE USB2DALI FIRMWARE FROM THE NXP DALI SDK V2.0 CAN BE SUCCESFULLY BUILD WITH LPCXPRESSO v5.2.4_2122

I hope this will help to find were it went wrong in your setup.

Regards,
jvdg[/LEFT]
[/SIZE]
0 件の賞賛
返信

1,169件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jx1 on Wed Jun 12 00:52:35 MST 2013
Hi Pat,

I use USB2Dali master. There is a folder "dali_master_lpc13xx" and I import the source and header files to compile it with the LPCXpresso v5.2.4.
0 件の賞賛
返信

1,169件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pat on Wed Jun 12 00:10:47 MST 2013
Hi ,

Which part of the DALI SDK2.0 system did you recompile with the LPCXpresso v5.2.4? The DALI SDK2.0 was released for LPCXpresso v5.0.10
Is it:
a) the DALI slave (lamp driver)
b) the USB2DALI master
c) both?

On which device are you experiencing the problem? I expect the master from the thread but this is not fully clear to me.

Regards,

Pat
0 件の賞賛
返信

1,169件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jx1 on Tue Jun 11 04:27:43 MST 2013
Yes CodeRedSupport, that is what I am using.http://www.lpcware.com/content/nxpfi...ali-release-20.I am using LPCXpresso v5.2.4 and I did not get any build time errors. I tried out the binary given by nxp which can work. However, the compiled one from the lpcxpresso does not seem to work. I debug,flash write done but the dali master cannot communicate with the ballast to control the lamp.
0 件の賞賛
返信

1,169件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jun 11 03:56:19 MST 2013
Which DALI development platform are you using, and which code base? I believe that the latest information can be found here:

http://www.lpcware.com/content/nxpfile/an11174-and-an11175-lpc11xxlpc13xx-dali-release-20

Is this what you are using?

What version of LPCXpresso are you using? What exactly does not work? Do you get build time warning/errors?

Regards,
CodeRedSupport
0 件の賞賛
返信