Avatar of birenshukla
birenshukla

asked on 

Code to read and write to EPROM

Hi,

Can someone help me with a snippet or code that will allow us to read and write data to an EPROM in either C or C++

Biren
C

Avatar of undefined
Last Comment
Jaime Olivares
Avatar of BrianGEFF719
BrianGEFF719
Flag of United States of America image

What type of EEPROM?


Brian
Avatar of birenshukla
birenshukla

ASKER

EEPROM is Atmel 24C family.

Basically, we are going to use hte i square C protocol to program the EEPROM. It is a hardware device that attaches to a computer's USB that serves as a license key.
Appears to be you are trying to crack a license dongle.
Besides this, code to read the EPROM will be useless because it is protected by USB logic, you will need to learn how to "talk" to the device through the USB driver. That's not a trivial task if you are not the device's designer.
Avatar of birenshukla
birenshukla

ASKER

We are designing the device. We are the manufacturer. I just want to know how to achieve this task of being able to read and write to the EEPROM on the device(which is USB) when the software wants to check to see if the client has the license hardware or not.
well, in that case you have to choose a microcontroller to manage the memory, have you did it?
The secuence is:
You have to build a device with a USB enabled microcontroller or a standard microcontroller with an USB controller device, plus memory.
Write the software (or firmware) for the microcontroller.
Write the specific USB driver for windows
Write the code portion to talk to the device through the driver.

SOLUTION
Avatar of cryptosid
cryptosid

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
C
C

C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, so it has found lasting use in applications that had formerly been coded in assembly language, including operating systems as well as various application software for computers ranging from supercomputers to embedded systems. It is distinct from C++ (which has its roots in C) and C#, and many later languages have borrowed directly or indirectly from C.

23K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo