User defined hot keys in LPCXpresso IDE

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

User defined hot keys in LPCXpresso IDE

901 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by SashaBe on Tue Mar 22 12:58:02 MST 2011
Hi.
There is some trouble with LPCXpresso IDE in Kubuntu linux.

I need to use shell script to upload my firmware.bin to target controller (LPC1343) via USB. So, I want to start that script by hotkey, for example, Ctrl+U, from IDE.

Is there any way to customize hot keys in IDE?
Can I add custom hotkey, which will execute shell script?

LPCXpresso:
Version: LPCXPresso 3.8.1 [Build 117] [05/01/2011]

PS: Sorry for my English :rolleyes:
0 项奖励
回复
2 回复数

805 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by SashaBe on Thu Mar 24 10:51:09 MST 2011
Thank you for your answer.

Point 2 is almost successfully. There are additional question about first one.

1. I've set hot keys(Ctrl-U) for "External Tools..." So question is how can I add hot keys for each item in External Tools. There is only "External Tools..." in the list of "Commands".

But some other commands in the list have sub entries. For example,  "C/C++ Content Assist" has 6 cases with different "(type: ..."


3. Other question is not about LPCXpresso itself, but about Linux sudo management. Could you please explain how to allow LPCXpresso to execute shell script with super user privileges.
I have script file "binupload"

Quote:
#!/bin/bash
sudo mdel -i /dev/sdb ::/firmware.bin
sudo mcopy -i /dev/sdb ./firmware.bin ::/
sudo umount /dev/sdb



I've chose it Location with "Browse workspace" in Run->External Tools->External Tools Configuration. But when I try to run it, terminal view printed:


Quote:
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified



Regards,
Sasha.
0 项奖励
回复

805 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Mar 23 00:52:51 MST 2011
There are really two questions here:

1. How do I add/change hotkeys?
- Windows->Preferences
- Open General and then Keys
This give you complete control (within the limitation of the OS) over the key mappings

2. How do I run an external command from within LPCXpresso?
- Run->External Tools->External Tools Configuration
- click on Program and then the Add button (top left hand corner)
- Give it a name, enter the details and OK
- To run, Run->External Tools->(your name)

You can then apply a key mapping

HTH
0 项奖励
回复