Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/29/07 08:06
Modified:
  03/29/07 08:08

Read: times


 
#136083 - get rid of the bootloader altogether
Responding to: ???'s previous message
First the easy way:

Go to flashmagic page -> resources, download the updated bootloader ( http://www.flashmagictool.com/assets/re...Update.zip ), update it in your chip and use command :01 0000 0C 04 EF=> run user code. I haven't verify this but this is NXP-originated so should work.

If it does what is written in the enclosed PDF, this is your solution (except that it won't prevent the parallel programming, of course).


Now the hard way plus some hints:


There are two ways how to program the 'V51Rx2 : either via UART-ISP, or in a device programmer - see parallel programming.

The bootloader, i.e. the code executing the ISP function, resides in Block1 of Flash, that's an extra 8kB FLASH block active after hardware reset or if you set the appropriate SFR bit. So, if you want to disable ISP for good, you shall rewrite the beginning of the boot code to jump directly into the user FLASH. Or, which would be more elegant, rewrite it so that it disables the reset serial number command, which in effect enables ISP exclusively to those who know the serial number.

This all assumes you can reprogram Block1, either using a parallel programmer, or using the direct-register IAP, which is not documented in NXP/Philips datasheet, but as I repeated so many times, for the true datasheet you should go to SST's site (of course I give no guarantee on this info).

However, this won't prevent anybody from reprogramming the chip using parallel programming - you need to figure out how . Again, the datasheet from SST might help.

JW



List of 4 messages in thread
TopicAuthorDate
Disabling ISP Erasing & Programing of P89V51RD2            01/01/70 00:00      
   get rid of the bootloader altogether            01/01/70 00:00      
   SOLVED            01/01/70 00:00      
      which one?            01/01/70 00:00      

Back to Subject List