Hello, i am having trouble in flashing a simple program in to a 8051 device with a usb kit. The device i am using is a "at89c51ic2"
when i build target does not show any error or warning, but when i try to flash, this error shows up:
with this i went to the "options for target" ->"utilities" to make sure but i did not found nothing :(
this is what is the box:
"-autoisp -device $D -hardware RS232 -port COM5 -baudrate 9600 -operation MEMORY FLASH LOADBUFFER "#H" PROGRAM START RESET 00"
if anyone could help finding the problem it would be great, i am losing my mind :'(
sorry for my bad english
Why do you think that's an error ?
It looks like just an echo of the command being executed.
What happens if you just do the programming from the command line - ie, taking uVision out of the equation ?
Have you studied the documentation for batchisp ?
Andy Neil said:Why do you think that's an error ?
Oh, I see:
EuSouOVALETEbro said:--- Error: failed to execute 'batchisp -autoisp -device AT89C51RD2 -hardware RS232 -port COM5 -baudrate 9600 -operation MEMORY FLASH LOADBUFFER "C:\Keil_v5\C51\Examples\Objects\teste.HEX" PROGRAM START RESET 00'
Well, that's uVision telling you it couldn't execute that command.
So, again, can you execute that command manually from the command line?
If you get the same at the command line, then obviously uVision won't be able to execute it, either!
You will then have to contact whoever supports this "batchisp" thing ...
Where does BATCHISP (.EXE or .BAT) exist on your system? Is it properly pathed, via the PATH environment variable, that the system can find it when asked to run it?
Can you run it from the command line? ie a DOS Box brought up with CMD.EXE, or the Windows-R key
Have the ATMEL tools including BATCHISP been loaded/installed in the system?
As Westonsupermare Pier suggests, the PATH environment would have to be set correctly to run the 'batchisp' command as shown.
This applies whether you run it manually from the command prompt, or get uVision to do it - hence the suggestions to try it from a command prompt.
Alternatively, supply the complete path to the executable - as shown here:
http://www.keil.com/support/docs/2880.htm
thank you for the response, the "batchisp" was the problem as you suggested. What happened that this 8051 usb kit was the first i used as a student before i reset my PC and lost all the necessary programs for programming this 8051 kit. yesterday i found it and wanted to try to do something with it, but i did not remembered of the total configuration of the "Keil uVision", but worst i forgot to install a program called "FILP" that it is intended to help in the communication with the 8051 kit, and when you pointed it i installed it and put the right path to it.
thank you very much :))
hello and thank you for the response, the "Batchisp" was indeed the problem, see, the problem is that i dint program in this kit for a long time and since then i reset my pc, and i forgot i had to install a program called "FLIP" that is intended to help with the communication with the 8051 USB kit. After that was just put the correct path to the "Batchisp".
and it works great. it can flash the memory of the microcontroller
thank you once more :))
thank you for the response, that was indeed the problem.
after i install "FLIP" was just put the right path and it worked!!!
it can flash the memory of the MCU with the program.
EuSouOVALETEbro said:it works great. it can flash the memory of the microcontroller
Jolly good!
Now please verify the solution: