Hi, to whom it may concern:


Thank you very much for such a brilliant work. It's fabulous !!!
However, since I'm using some other MCU, instead of Atmel MCU, I'm trying to add the profile for such a MCU to this mcu8051ide.

Environment:
OS: Ubuntu 12.10
mcu8051ide: 1.3.7-1



The MCU I'm using is STC90C516RD+ 40I-PDIP40, in short, STC90C516 .
What I've done so far is:
Modify /usr/share/mcu8051ide/data/mcus.xml , and add a final <MCU> </MCU> before the final line </mcus>
The profile about this specific MCU is as follows:
<mcu
vendor="STC" name="STC90C516"
xdata="yes" xcode="yes"
code="64" frequency="0 to 80 MHz"
ram="1280" portbits="32"
uart="yes" interrupts="8"
voltage="max. 6.6 V" timer2="yes"
watchdog="yes" eram="0"
dualdtpr="no" auxr="no"
t2mod="yes" port0="11111111"
port1="11111111" port2="11111111"
port3="11111111" port4=""
pof="no" gf0="yes"
gf1="yes" pd="yes"
idl="yes" smod0="no"
iph="no" acomparator="no"
euart="no" clkreg="no"
pwdex="no" spi="no"
wdtcon="no" eeprom="0"
intelpe="no" pwm="no"
x2reset="no" ckcon="no"
auxr1gf3="no" ao="no"
wdtprg="no" hddptr="no"
auxrwdidle="no" auxrdisrto="no">
<timers>Three 16-bit</timers>
<more>
Three-level Program Memory Lock
Low-power Idle and Power-down Modes
</more><bits>
C903 B83F A8BF 878F
</bits><writeonly>
</writeonly><sfr>
P0 P1 P2 P3 SBUF ES PS ET2 PT2
T2MOD RCAP2L RCAP2H TL2 TH2
SCON SM0 SM1 SM2 REN TB8 RB8 TI RI
T2CON TF2 EXF2 RCLK TCLK EXEN2 TR2 CT2 CPRL2
</sfr>
</mcu>


In the above profile, the bold words are the info that I can find from the manual of this MCU. The other parts(unbold), I just keep the same values as those of 89C52 .



However, when I tried to new a project from the IDE, I obtained the following error message:

FATAL ERROR

MCUs database file is corrupted,
this program cannot run without it.
Please reinstall MCU 8051 IDE.



My question is as the title: Is there a way for me to add my own MCU profile for this mcu8051ide tool???


Thank you very much.


Best Regards

--

Pei JIA

Email: jp4work@gmail.com
cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com