Brother such a wonderful video, keep making these advanced tutorials/videos.
@Ciiads Жыл бұрын
Thank you ☺️👊❤️
@andrejspotapovs4046Ай бұрын
Thank You very much! Best video for this topic!
@CiiadsАй бұрын
Thank you so much for your kind words. Knowing that the video made a difference for you means more than I can express. It’s messages like yours that inspire me to keep creating and sharing. So grateful to have been a part of your learning journey!
@asissyjoseph33942 жыл бұрын
Neet & Clean presentation 👌🏻
@Ciiads2 жыл бұрын
❤️
@alanfernandotorrez6507 Жыл бұрын
excellent video but it left me with some doubts: when the reading bits are blocked at some point the Arduino loses communication with the cpu for data transfer in real time! oh it just crashes so it can't be cloned ?😊
@omsingharjit Жыл бұрын
But previously you said Arduino doesn't have Copy protection feature in Hex pulling video !!
@Ciiads Жыл бұрын
Yes, Arduino doesn't have copy protection feature that's why we got the hex file in the hex pulling video I hope you watched it but you know Arduino is made out of avr mcu it has so many features bit lock is just one of them but Arduino is not using that feature that's why we used an avr tool to bit lock the mcu her atmega328p, Arduino is an open-source platform that normally comes with a serial bootloader and there is no chip lock, normally arduino doesn't bit lock the chip. and this is the way to lock it. ones you've done it's never gonna work like Arduino anymore unless you erase and reburn the Arduino bootloader.
@mgzawlay21496 ай бұрын
Lovely Brother, which hex file can i use with or without bootloader for my burned bootloader Atmega328p. pls!
@Ciiads6 ай бұрын
Without bootloader 😊👍
@cosminadrian5845 Жыл бұрын
Nice video, one question, the schema from 2:16 applies also for arduino nano?
@Ciiads Жыл бұрын
Yes
@shawon97256 Жыл бұрын
Thanks for nice video. Is there any ways do extract hex (which I already have locked) file from ATmega328P.
@Ciiads Жыл бұрын
In my knowledge the answer is no but I always believe nothing is impossible. Regards, AMN 😊
@lahiruprageeth855510 ай бұрын
Can i program that arduino board with new program ? And can we use eeprom and serial communication ?
@Ciiads10 ай бұрын
No matter which board you're using, it's all about the chip. Of course, you can reprogram after a chip erase, and there are no restrictions for serial communication and EEPROM usage. However, you can't upload an Arduino sketch through the Arduino IDE because that requires a bootloader, and here we've disabled read and write access to the chip as part of the protection mechanism. If you don't need any protection for your software and want to revert everything back to normal, just erase the chip and burn the Arduino bootloader. Then, your Arduino board will be back to its original state. 😊 AMN
@ahmadyaafouri47972 ай бұрын
Great video, thank you, but does it work for arduino pro mini?
@Ciiads2 ай бұрын
Yes but fuse configuration is different
@dilversingh87662 жыл бұрын
Great , can we do same with nano, what will be the pins?
@Ciiads2 жыл бұрын
Same
@dilversingh87662 жыл бұрын
@@Ciiads thanks for your prompt response
@sushantasarkar123 Жыл бұрын
What is problem in my Atmega328P-U microcontroller. I am using external 16mhz crystal . I am using this setting 0xFF, 0xDE, 0xFD, 0xC0 and write by avrdude. my project stuck or hang after some hour... how to solve my problem...plz tell me
@Ciiads2 ай бұрын
@@sushantasarkar123 you mean hang after some hours that's definitely not the problem of lockbits.
@HAZITECH4 ай бұрын
Very helpful brother. Thanks a lot
@Ciiads4 ай бұрын
You are welcome 🤗
@manukalias2 жыл бұрын
Superb Performance Delivery Bro 👍👍 Please make similar Fuse burning video for ESP 32 chip. If possible let me know how to contact you for a technical discussion 🙏🙏
@Ciiads2 жыл бұрын
I don't have esp32 at the moment, I will try if I had one☺👊
@mehedihasan-qn5ox9 ай бұрын
Brother kindly help me out. Need to use the same technique for Arduino Mega 2560.
@Ciiads4 ай бұрын
Yes you can check the fuse bit and lock bit for that perticular mcu and you can proceed.
@madtech.channel4 ай бұрын
How about esp32 ,is there any lock bit?
@Ciiads4 ай бұрын
I didn't tried cause I don't have one but we will😊
@blessingaghoghovwia4903 Жыл бұрын
what about using a high voltage programmer to enable and acess code
@VishallWagghade2 жыл бұрын
You are simply awesome sir👌 Thank you so much for this video 📹
@Ciiads2 жыл бұрын
😊🤝❤️✌️
@ahmedawat99402 жыл бұрын
How can I calculate fuses atmega328p interial 8mhz and program it
@Ciiads2 жыл бұрын
First, you have to develop or code your firmware for 8mhz internal oscillator Then you can burn that with 8mhz internal oscillator fuse settings To know more about fuse bit just Check the data sheet of the chip or simply google avr fuse calculator it's an online website tool to calculate the fuses for avr MCUs Or if you would like to do that in arduino ide then you just google arduino 8mhz internal clock You will reach there
@ahmedawat99402 жыл бұрын
@@Ciiads thank you
@josevillalba44972 жыл бұрын
Hi ,what's if want to reprogram the chips , it's possible ? or the changes are for ever? thanks,, greetings from Argentina..
@Ciiads2 жыл бұрын
Yes reprogramming is possible but that will automatically erase the chip memory. The changes are not for ever unless you erase the chip. Always you can change the fuse and lock bit settings any time you want but it will erase the chip so you don't wanna worry about that. If you want to make the Arduino board back to it's original state, I mean without any bit lock, you have to burn the Arduino bootloader. Regards. Aneeshmurali ❤️🤝😊✌️
@josevillalba44972 жыл бұрын
@@Ciiads Thanks for the info i'm trying to protect my work.. thanks a lot.
@Ciiads2 жыл бұрын
@@josevillalba4497 Nice to meet you. Wish me luck. See you again. Have a nice day Bro 😊👍
@josevillalba44972 жыл бұрын
@@Ciiads good luck!!
@Email-wg8je5 ай бұрын
hello , is there any way that somebody can still extract the hex file from arduino if the microcontroller has bootloader inside it aswell ? I have read in some forums that is possible to still extract the hex file from the microcontroller through the bootloader that is inside the mcu. how true is that ?
@Ciiads5 ай бұрын
So chip erase then flash the without bootloader version of the hex file with the new fuse and lock bit settings. that's exactly what we did here 👍
@Email-wg8je5 ай бұрын
i saw that you flashed all the 6 lock bits . BLB01 BLB11 BLB02BLB12 are 4 lock bits that are responsible to lock the bootloader . Since you have the hex file without the bootloader then why you are still programming those lock bits ? I think LB1 and LB2 are enough to program if you have a hex file without a bootloader on it .
@Ciiads5 ай бұрын
@@Email-wg8je just closing all the doors as we can👍😁
@pradippatel918 Жыл бұрын
High voltage programmer can unlock chip without loosing data or program?
@Ciiads Жыл бұрын
Maybe, if there is a glitch but I don't think so, try your luck. You know if that is possible the protection feature is pointless right?
@rimbang_2 жыл бұрын
can i do this for wemos d1 mini ? or esp8266 ?
@Ciiads2 жыл бұрын
It's only for avr
@santoshbabu5172 жыл бұрын
hi sir v nice tutorial can you plz let us know how to st lock bits for atmega 8
@Ciiads2 жыл бұрын
It's the same for atmega8
@vimaldaslg518 Жыл бұрын
Possible to do the same using uno as programer to atmega8?
@Ciiads Жыл бұрын
Yes, the programming method will work for most avr MCU's but the fuse bit config and the wiring will vary according to the target MCU and the compiled firmware ☺️👊
@bisdakhydroponics27322 жыл бұрын
Thank you for this tutorials sir..it helps alot..
@Ciiads2 жыл бұрын
Have a nice day ✌️❤️
@bisdakhydroponics27322 жыл бұрын
@@Ciiads Hello sir, is this working in ATMEGA1280?
@Ciiads2 жыл бұрын
@Bisdak Hydroponics settings are different. Wiring diagram is different. Tip 1, First just read and find the original fuse bit settings of your mega. 2, Keep the same fuse bit configuration. 3, keep the lock bit configuration to 0xC0 like this video. 4, for wiring diagram and further info. Watch my previous video and check the description. From there you will get the wiring diagram. 5, Just google "How to read and extract hex file from Arduino board" which will take you there. Have a nice day. Regards Aneeshmurali. 😊🤝✌️
@alfatech86042 жыл бұрын
nice one but can u unlock it again or write to erase eeprom
@Ciiads2 жыл бұрын
Yes you can unlock by just erasing the chip. Or by setting lock bit to unlock bit, to do that, just uncheck all the lock bit check boxes on the bit selector and write it. that also erase the chip. Yes you can erase and reprogram the chip.
@ServiceFMPL2 ай бұрын
I am trying to enter code on mega 2560 but it is not uploading, what should I do
@Ciiads2 ай бұрын
What's wrong?
@ServiceFMPL2 ай бұрын
can I talk to you in some other way sir
@ServiceFMPL2 ай бұрын
Do you have an insta channel?
@pavolslab7831 Жыл бұрын
will this also prevent reprogramming/reflashing the Arduino with USB?
@Ciiads Жыл бұрын
Yes you can reprogram after the chip erase but if you wanna undo everything like the actual functional Arduino board, definitely you have to burn the appropriate bootloader for the chip which is the thing that handles USB serial programming 👊☺️
@jamesmac61022 жыл бұрын
Thank you for making this video!. Can you make a video for locking ESP32 like the TTGO board.
@Ciiads2 жыл бұрын
I don't have esp right now, but I will do it when I have one.😉☺
@guillermostettler613810 ай бұрын
Hi, Could you do the test with the esp32@@Ciiads
@Ciiads10 ай бұрын
@@guillermostettler6138 It's for avr MCU and the settings are different for each MCU. 🙂 AMN.
@chiptekelectronicsАй бұрын
Hello! Does this method work for the pro mini ?
@CiiadsАй бұрын
Yes it does and works for every MCU's but settings might different😊👊
@chiptekelectronicsАй бұрын
Realy, I tried here but without success, and also can't find any information about codes for pro mini anywhere... I think the quickest way is to break the RX / TX pins. 😅 Thank you for the answer 👊
@CiiadsАй бұрын
@@chiptekelectronicsreading and writing firmware through rx tx pin works through bootloader but we can also pull the firmware through miso mosi cs sck pins so breaking the pins not the quickest way, flash the chip with proper settings and at the same time without bootloader that's the way to go. 😊👊 You have to read the chip datasheet to find the lock bit settings and you have to read the chip first with my method to see the current fuse bit settings of your promini, so copy the current fuse bit settings and for the lockbits read datasheet, if your promini had the same chip atmega328p or atmega328 then you can keep the same lockbit settings as shown in the video and remember you have to apply the same fuse bit configuration that the promini already had. otherwise the chip will break.
@chiptekelectronicsАй бұрын
@@Ciiads Got it. I was using an FTDI adapter, but I have to use another Arduino to access the ISP protocol, right? Thank you very much for your attention, brother! Regards from Shizuoka, Japan.
@CiiadsАй бұрын
Another Arduino or programmer 😊👊🤝
@Romello_Pietersz Жыл бұрын
It doesn’t work, can you help please? I used the Arduno itself without ISP
@Ciiads Жыл бұрын
Yes, because you didn't followed the video. If you do, it will work.
@Romello_Pietersz Жыл бұрын
@@Ciiads yes it worked
@gurumoorthytamizhan65912 жыл бұрын
Thanks for uploading this video ... Very Important and useful
@Ciiads2 жыл бұрын
☺👊
@nwaigbo34 ай бұрын
Thanks a lot Bros Can the chip be erased or its permanently disabled ?
@Ciiads4 ай бұрын
Could you please clarify?
@nwaigbo34 ай бұрын
Can one erase a program in a locked atmega, and rewrite another one?
@Ciiads4 ай бұрын
@@nwaigbo3 do you mean, it's possible to re-program the chip after chip erase then the answer is yes.
@jdelectron2 жыл бұрын
So it is possible to undo that I. E. I I am a genioun person who uploaded code, as i wants to reuse the ic , but I don't want to code and I want a clear flash chip Is chip is permanantaly locked?
@Ciiads2 жыл бұрын
Yes, the chip was permanently locked but you can re-use it by just simply erasing the chip. Chip erase will clear the flash.
@jdelectron2 жыл бұрын
@@Ciiads thanks👍
@praveenjohn82422 жыл бұрын
Man ..super ...like it
@Ciiads2 жыл бұрын
😊✌️❤️
@elodiecemoi3057 Жыл бұрын
Excellent video; I still have a question: Question: Is it possible to use a USB-ASP adapter instead of an Arduino Uno to perform the Lock bits writing in the target board ?? Thanks
@Ciiads Жыл бұрын
Of course, you can do Here one of the Arduino is programmed as an isp programmer but if you have a dedicated USB-ASP programmer its output is always isp like MISO, MOSI, RESET, VCC, and GND that's what we need to program the MCU. So 100% you can go with that. 😊👊❤️🤗
@elodiecemoi3057 Жыл бұрын
@@Ciiads Thank you, next question: after having protected the code with this method, is it possible to re-use the board for another program ? I mean: is it possible to upload a totally new code into the Arduino ? Is there something special to do ? Thank you !
@Ciiads Жыл бұрын
@@elodiecemoi3057 Yes, but you have to erase and re-burn a fresh appropriate Arduino bootloader to revert that back to a normal Arduino board
@ramrode535010 ай бұрын
Hello brother, how are you brother, I need your help. In this video you told you how to program Atmega328-P Ic, but I realized that I have future by using Arduino Nano to program So how can I use it and how can I program my Arduino Nano please tell me because I have a code but I have to keep it safe so I want help 🙏
@Ciiads10 ай бұрын
This video focuses on bit locking the Atmega328P. I'm having trouble understanding your question. Could you please clarify it?
@ramrode535010 ай бұрын
@@Ciiads can I type my question in Hindi Because my English is Bad 😞
@ramrode535010 ай бұрын
@@Ciiads sir aapne is video me bataya hai ki Atmega328P Me Fuse Bit Locking kaise lagaye ok par muje aap ki aisi help chahiye jisme muje Fuse Bit Locking Arduino Nano me lagana hai Muje Arduino Nano Me Fuse Bit Locking Use karke Code Upload karna hai jisse Mera code koi Arduino Nano se copy nahi kar payega par maye ye kaise karu muje ye karna nahi aata muje aapki is me HELP chahiye please sir meri help kariye 🙏🙏
@m.l.n11 ай бұрын
So, the lock is not a permanent lock. Anyone can unlock it later, right?
@Ciiads11 ай бұрын
What you mean? No, it's permanent as per the security features of the MCU. You can reuse the MCU after erasing it, but that doesn't mean unlocking it. Erasing it wipes the entire bit lock and program memory, meaning everything is gone.
@smartgadgets57952 жыл бұрын
After set a lock according to this video.. how can we reset the arduino to upload a programme through arduinoIDE ???
@Ciiads2 жыл бұрын
Just flash Arduino bootloader.
@smartgadgets57952 жыл бұрын
@@Ciiads sir how can i burn bootloader.. i am trying to enable it with 2 arduino,, 1 as a programmer and the other one as a target device. But when i am clicking on the burn bootloader option , there are some errors i am facing.. please help sir
@Ciiads2 жыл бұрын
Okay what is the error.
@Ciiads2 жыл бұрын
First upload Arduino as isp sketch to an Arduino. Then wire it with target chip. Select Arduino board type and port. And select programmer as Arduino isp. Then burn bootloader.
@smartgadgets57952 жыл бұрын
@@Ciiads actually i think i am trying it with wrong method . Can you please tell me how i have to do it ??
@dany6723011 ай бұрын
Is arduino not open sourse ?
@Ciiads11 ай бұрын
Of course, Arduino is an open-source development board based on the AVR Microcontroller it has security features called bit lock to safeguard against firmware copy and clones. Arduino is not a locked one it's loaded with a serial bootloader but that doesn't mean we can't use the security features of the microcontroller itself.
@awanglong3599 Жыл бұрын
Bro i see you check the erase for eeprom, i have my coding include the eeprom. ? Is the code still working because the eeprom had just erase in avrduddes.please answer🙏
@Ciiads Жыл бұрын
It doesn't matter, it will work, we are just erasing the previous EEPROM data on the target chip to write a new one.
@awanglong3599 Жыл бұрын
Thanks so much bro🙏
@awanglong3599 Жыл бұрын
Bro how to set it back as default like before? Because after i run the program the arduino could not be upload for new program, i means i tried to upload new program but it can't , please do some help🙏
@Ciiads Жыл бұрын
Once you locked it's locked, if you wanna undo everything, just erase the chip and burn the appropriate arduino bootloader that's it
@awanglong3599 Жыл бұрын
@@Ciiads thank you so much bro 🙏
@dhanush20602 жыл бұрын
Great one 🔥
@alternative01-pd3iu2 ай бұрын
ok so can i upload another code after doing this? eh i probably can
@Ciiads2 ай бұрын
@@alternative01-pd3iu the same way yes.
@sameerato5 ай бұрын
wawww. thanks from srilanka
@Ciiads5 ай бұрын
Welcome 😊♥️🤝
@haczyk847 ай бұрын
If you want have close source, don't use open.
@Ciiads7 ай бұрын
The chip itself is not open source, the video is about bit lock atmega. There is nothing wrong to use opensource development boards to develop firmware but you have to write every piece of code your self including librarys for a closed source project or you have to buy the lisence and need to credit properly. Arduino is opensource platform but atmega MCU's are not.
@mohitraj58042 ай бұрын
How to read our secure data without knowing hacks
@Ciiads2 ай бұрын
@@mohitraj5804 what you mean hacks?, it's not a hack it's a protection feature. if the chip is locked then it's locked. There is no way to pull the code out as per my view. if someone willing to do I would appreciate them. 😊
@eccosabanovic1589 Жыл бұрын
...if your firmware is very unique, then there is always a way to get it out from chip..i think best and most effective way is to make your firmware works as it should, only on particular chip that is uploaded to..in case of been cloned, it will simply introduce errors to any variables or data that it is processing and rendering it useless to clone anyway..
@Kyle-ye4nj Жыл бұрын
How can I get started with that?
@eccosabanovic1589 Жыл бұрын
@@Kyle-ye4nj ..well, you could use IC dedicated for that, such as ATECC608B, or simply, read serial ID of your microcontroller, randomly, every 2-10 minutes, and in case it doesn't match ID hardcoded inside firmware, simply introduce random error, which you add on to result of some variable used by MCU to do desired job...
@neocial2 жыл бұрын
excellent
@ahmedawat99402 жыл бұрын
Thank you
@Ciiads2 жыл бұрын
❤️🤝✌️😊
@bhaveshjat53422 жыл бұрын
Thank you brother
@giginmathew1 Жыл бұрын
Good job
@asifvfceditz26542 жыл бұрын
👍🏻
@prakashharash8380 Жыл бұрын
Good
@EMD692 жыл бұрын
💯👍👍👍
@DevianLLC2 ай бұрын
Almost good video, but these 15-25 year old Atmega chips can be readed out under seconds using voltage glitch...
@Ciiads2 ай бұрын
Good for you. After all those years they still didn't fixed the glitch I don't know could you please make a tutorial about that and share the link for the audiance 😊.
@DevianLLC2 ай бұрын
@@Ciiads I not have time to make tutorials, it is very simple to use the voltage glitch, there are tons of descriptions on the github
@TechnoEveryday2 жыл бұрын
🆒 Thank you so much for uploading this video. 👍👍👍👍👍 Sharing with community 🇵🇰
@ryangrif68822 жыл бұрын
Do you have an email adresse ?
@Ciiads2 жыл бұрын
Yes☺
@elodiecemoi3057 Жыл бұрын
It seems to work, but I have got a warning during writing (ignoring mismatch in unused bits of "lock" (0xc0 != 0x00). To prevent this warning set unused bits to 1 when writing (double check with your datasheet first). avrdude.exe: 1 bytes of lock verified), and I cannot access to the "read file" for verifying that the file is empty (although Avrdudess says it is empty during the second attempt ro read the board). I send you an email with the log: I would be graceful if you can reply, because I am so close to succeed !! Thank you very much for your help !
@Ciiads Жыл бұрын
If 0xC0 is not working then you continue with 0x00 that is because there are only 6 bits in that register so 0b000000 is 0xC0, Bits 6 and 7 are not used that's why it shows the warning. 0b00000000 is 0x00 which will set the unused bits to 0 so don't worry both will work and both will do the same. continuing with the 0x00 will not gonna show you the warning ☺️👊
@elodiecemoi3057 Жыл бұрын
@@Ciiads Thank you very very much ! Your video is by far the best one on this subject : it is clear and complete, exactly what is needed to perform this cloning protection 💛 Maybe (it is just a suggestion) you could make a 2nd part related to the EEPROM section, but I suppose it is very similar. Than you again: I subscribe your channel !