No video

Improve your Arduino programming skills - SRAM management

  Рет қаралды 33,358

Joop Brokking

Joop Brokking

Күн бұрын

Random and hard to trace errors or lockups can be caused due to a bad SRAM data management. In this video I explain the most important SRAM areas with the use of simple and understandable Arduino examples.
Video about direct register access:
• Improve your Arduino p...
Video about the qualifier volatile:
• Improve your Arduino p...
Video about pointers:
• Pointers and floats - ...
You can download the examples here:
77.161.83.3/Arduino_SRAM_examples.zip

Пікірлер: 85
@divyanshu_harkhka
@divyanshu_harkhka 4 жыл бұрын
Professor: "Show an example of a perfect explanation.." Me : *Opens Joop Brokking's channel*
@omy2295
@omy2295 4 жыл бұрын
I took real-time process and processing course in college to learn something about programming hardware for real-time processes, the professor had never touched this subject. I realize now how important it is to know how to manage SRAM thanks to this wonderful guy named Joop. I love your way of teaching, man. May God bless you with happiness, good health and long term prosperity for sharing your knowledge with us.
@woodtv4481
@woodtv4481 4 жыл бұрын
We miss you Sir Joop, you haven't had any update project lately. Hope to see more of your videos.
@paulkafig5788
@paulkafig5788 3 жыл бұрын
Wonderful video! Couple of hiccups that I ran into along with the solutions that might help someone else testing this code: 1. When I first ran this, the variables in example 1 weren't showing up in the SRAM dump. The C compiler must have optimized them out because they weren't used. If you declare them as "volatile long" instead of long, you will see them in the dump. Maybe there was a change to the compiler since this video was made. 2. I was getting a lot of "garbage" in my serial monitor before the data could be seen. If you slow down the baud rate, this will help. If you change UBRR0L from 16 to 103, this will change the baud rate from 57600 to 9600. It's a lot slower, but the output is cleaner. For other baud rates, see the ATmeg328P data sheet and be sure to change the baud rate in your monitor to match the Arduino.
@mostafagaberahmed6657
@mostafagaberahmed6657 3 жыл бұрын
Yes your are absolutely right , thank you
@woodtv4481
@woodtv4481 3 жыл бұрын
IS SIR JOOP OK? I KINDA MISS HIM FOR HIS WONDERFUL TUTORIALS... I HAVE LEARN SO MUCH FROM HIS CHANNEL. HOPE HE'LL BE MAKING MORE VIDEOS SOON.
@AppliedMetaphysician
@AppliedMetaphysician 4 жыл бұрын
This very clearly exemplifies the necessity of understanding & practicing good memory management; in the broader realm of computer programming, but most-especially when working in the limited memory world of micro-controllers. Well done!
@longdongsilver4719
@longdongsilver4719 3 жыл бұрын
Hi Joop. Your channel is exactly what I was looking for. Thanks for the precious work and for the sharing!
@andrewtoogood1429
@andrewtoogood1429 4 жыл бұрын
This playlist is amazing. Learning so much! Your brief mention of int main() is huge esp. for attiny ir other smaller processors, seems obvious but i never considered it previously. Please keep these coming!
@PCBWay
@PCBWay 4 жыл бұрын
What an impressive tutorial!
@williamna5800
@williamna5800 3 жыл бұрын
I'm really missing your videos. Hope all is well!
@capistor1
@capistor1 3 жыл бұрын
a beautiful video. we miss you
@robinharris4706
@robinharris4706 4 жыл бұрын
Super video - I learnt a tonne of stuff and find your style very clear to follow. Now I will run your examples and experiment to consolidate what I have learnt. My particular problem is some code that creates 'random' wdt resets after a few hours and I suspect heap / stack collision due to using strings. Although I can remove the problem empirically I want to dig deep and find out the real cause. Lots of learning opportunities! Will watch the videos you referenced too. Great material, thanks Joop.
@KrisTemmermanNP
@KrisTemmermanNP 4 жыл бұрын
Great stuff! Thanks for your in-depth tutorials!
@avijitbanik531
@avijitbanik531 4 жыл бұрын
Before this I just know a little bit of codes. But with your wonderful explanation I have understood a lots of the Arduino's memory works.
@janhvibhosle3852
@janhvibhosle3852 4 жыл бұрын
Excelllent video sir, please make more videos on arduino.
@cheako91155
@cheako91155 4 жыл бұрын
It's worth looking into the Rust programming language, I hear there is an effort to support microcontrollers. Rust takes revolutionary steps to ensure memory safety.
@taihengwei1415
@taihengwei1415 4 жыл бұрын
Excellent and Clear! Your video is very perfect!
@tonybell1597
@tonybell1597 4 жыл бұрын
Outstanding, very clear, thanks Joop
@SyedMehraj007
@SyedMehraj007 3 жыл бұрын
Sir come back please miss you😭
@artcodezen
@artcodezen 3 жыл бұрын
Great explanation, you helped me a lot with your videos! Thanks a lot!
@sandipanchanda9563
@sandipanchanda9563 3 жыл бұрын
Hi Joop, how are you? Any updates? Please come back to this hobby again, we are really missing you.
@peckfamily6662
@peckfamily6662 4 жыл бұрын
Thank you. Very clear explanation with great examples. 👍😃
@ecky_thump
@ecky_thump 4 жыл бұрын
Thanks for taking the time to inform and educate 👍👌
@Mr0neShotAway
@Mr0neShotAway 4 жыл бұрын
Hey, are you planing to upload more videos?
@hubercats
@hubercats 3 жыл бұрын
Very helpful video. Thanks!
@koffibanan3099
@koffibanan3099 4 жыл бұрын
Fantastic explanation!!! Bedankt Joop!
@AdemOmerovicBA
@AdemOmerovicBA 2 жыл бұрын
Thanks for amazin explenation. 🙏
@eyal4
@eyal4 4 жыл бұрын
Hey, joop thank you for the video again!! can you do a video about how to design PCBs? I saw that you design a lot of PCBs in your videos
@argentinomacrifuevidaltamb3772
@argentinomacrifuevidaltamb3772 4 жыл бұрын
Excelente video, gracias por compartir.
@zambumm
@zambumm 4 жыл бұрын
how do you get it running without loop and setup? i always get a compile error. i thought in arduino IDE that is impossible to programm in int main style
@zambumm
@zambumm 4 жыл бұрын
okay, i found out it compiles when using something like arduino nano- but not with ESP32 - i think because of the underlying usage of freertos tasks
@paranoidpenguin9077
@paranoidpenguin9077 4 жыл бұрын
I just came across your channel this week and wanted to let you know that I absolutely love your content! Out of curiosity, do you see any possibility that you would produce a video series on self-leveling planes?
@adelashour3253
@adelashour3253 3 жыл бұрын
please make a video of Raspberry Pico with C programming
@tejramgupta7942
@tejramgupta7942 3 жыл бұрын
👍👍👍👍👍 very useful
@hammershigh
@hammershigh 4 жыл бұрын
Excellent! Thank you.
@mostafagaberahmed6657
@mostafagaberahmed6657 3 жыл бұрын
why there is 5 dislike? this video need to be on Rank :)
@josecelso6342
@josecelso6342 4 жыл бұрын
in the design of the arduino drone, if i use a 4 cell battery, what is the maximum current i can use?
@pavelnemec3867
@pavelnemec3867 4 жыл бұрын
Hi Joop,, thank you for nice tutorials. I did not get variables set at 0x0100 when using your zip examples and latest IDE (1.8.10) possibly due to different code optimization default setting. Variable appears when used (in while loop).
@MicEib
@MicEib 4 жыл бұрын
So good seriously. Thank you.
@Rami7605
@Rami7605 4 жыл бұрын
Good explánation
@erikisberg3886
@erikisberg3886 3 жыл бұрын
Great video! Your code examples seem to be blocked for download by chrome for some reason.
@MediocreReview
@MediocreReview 4 жыл бұрын
Hi joop I'm building an Arduino base drone similar to your ymfc project but I am adding 4 ultrasonic sensor to it for obstacle detection and was wondering if there's a way to get to you. I am not very good at coding but have a good knowledge on it would love your help on few aspect on my codes thank you .
@rameshboina8832
@rameshboina8832 3 жыл бұрын
Joop sir please give me some knowledge about ymfc pcb please update in ur website
@daskasspatzle2396
@daskasspatzle2396 4 жыл бұрын
Excellent explanation, thank you ;-)
@mustafayasiraydin
@mustafayasiraydin 4 жыл бұрын
Hello everyone, i came here from electronoobs channel.
@birendrakumar-gl5gq
@birendrakumar-gl5gq 4 жыл бұрын
Hlo, i have a humble request If u could show a path/ guide to become a drone programmer. Sources, material and where to start as beginner. I've following you ymfc from the beginning but there are lot of difficulty in understanding the code and also some topics like interrupt and other doesn't make much sense to me, pls read this comment it will help a lot of students and diyers. If some in comment section can suggest pls do so.
@merijnvinea3546
@merijnvinea3546 4 жыл бұрын
Hoi Joop, Ik leer een hoop van je video's en ben erg geinspireerd geraakt. Ik heb nu de upgrade gemaakt van Arduino naar de STM32F103C6T8 (Blue pill). Deze wil ik graag programmeren buiten de Arduino IDE. Ik kan .bin files uploaden. (Deze maak ik wel via de Arduino IDE) Maar ik probeer nu via STM32CubeIDE een 'Blink' programma te maken. Daar loop ik een beetje vast. Zou je me hiermee kunnen helpen? Zoja: via wat wil je communiceren? Sorry als de reacties niet de goede plek zijn om dit te vragen maar kon geen betere manier vinden. Alvast heel erg bedankt!
@merijnvinea3546
@merijnvinea3546 4 жыл бұрын
Oke op een of andere manier kan ik de GPIO C dingen niet aan sturen maar werkt het met GPIO B wel. Geen idee dan maar geen geintregeerde LED. Toch bedankt voor alle je leuke videos!
@madhusudan8925
@madhusudan8925 4 жыл бұрын
Hello from electronoobs 🔥
@george12121979
@george12121979 3 ай бұрын
I m lucky. I find your channel
@Dhruv.Wadhwa
@Dhruv.Wadhwa 4 жыл бұрын
Plzzz make a tutorial on how to make a gimbal using brushless motor
@suncrafterspielt9479
@suncrafterspielt9479 4 жыл бұрын
Hey, will you follow up with another video?
@bobyla13
@bobyla13 2 жыл бұрын
why subtitles are closed & unavailable!!!!!!
@RSP13
@RSP13 4 жыл бұрын
OMG! Thank You sooooooooo much.
@FloetschMaster
@FloetschMaster 3 жыл бұрын
example link doesnt work :( -> edit: right click "download link" work... its just youtube which blocks the link...
@viggibot
@viggibot 4 жыл бұрын
please make a tiny quardcopter using coreless motor and arduino mini
@RSP13
@RSP13 4 жыл бұрын
AMAZING!
@osamaomar9096
@osamaomar9096 4 жыл бұрын
thank you sir
@e-seeker8239
@e-seeker8239 3 жыл бұрын
Miss you Sir...Hope everything is ok :/
@sachinupadhyay2790
@sachinupadhyay2790 4 жыл бұрын
Great Work Done Bro *****/5
@aivaraspetrikas15
@aivaraspetrikas15 4 жыл бұрын
Hello Joop, I have several questions with regards to stm32 quadcopter project. I have been struggling to get the project to work and I hope you can find time to discuss the issues with me via email or something. It would really help me out.. Thanks!
@nanomiterctech423
@nanomiterctech423 3 жыл бұрын
Hello sir , haven't seen you active for a long time . Are you okay ? Please respond through a community post or through a video !
@fatih1922
@fatih1922 4 жыл бұрын
Joop you rock !!!
@adelashour3253
@adelashour3253 3 жыл бұрын
Please show us a drone made of raspberry pico
@ishaanbhatia8942
@ishaanbhatia8942 4 жыл бұрын
Sir, please help me out, I was following the video for ymfc _Al version 1 And my quad flips while taking off the orientations of the motors are correct!!! Please help me out!!
@ishaanbhatia8942
@ishaanbhatia8942 4 жыл бұрын
It's very urgent!!
@ajduk6012
@ajduk6012 4 жыл бұрын
Dot on Gyro needs to point to the left rear of quad, if gyro is mounted correctly mybe you failed in setup when you where calibrating gyro. If everything is ok try lifting right wing up at first step in gyro calibration.
@ishaanbhatia8942
@ishaanbhatia8942 4 жыл бұрын
@@ajduk6012 I have done both the things , issue not solved, any more ideas?
@dinvinchester3353
@dinvinchester3353 2 жыл бұрын
update link for code the examples please !
@rayashstudio3222
@rayashstudio3222 4 жыл бұрын
Hello from electronoob
@Electronieks
@Electronieks 3 жыл бұрын
Hela waar zijn de nieuwe uploads?😉
@Artnovetor
@Artnovetor 4 жыл бұрын
👍
@ajaypadale6797
@ajaypadale6797 4 жыл бұрын
Hii from electronoobs
@3D_Printing
@3D_Printing 4 жыл бұрын
Push on the Stack, Pop off the Stack is fast
@anj000
@anj000 4 жыл бұрын
It is always funny for me as a Pole. "Sram" means "I'm shitting"
@MrKlaygomes
@MrKlaygomes 2 жыл бұрын
What happened to you? We miss you a lot!
@duckbear1892
@duckbear1892 3 жыл бұрын
Would you consider adding a camera to your drone
@AxelWerner
@AxelWerner 4 жыл бұрын
I head "Goat" all the time! What is it about the Goat here ?!?
@koteuek2305
@koteuek2305 3 жыл бұрын
Funny fact: In Polish lanaguage "sram" means "i'm pooping"
@marcosdouglas9256
@marcosdouglas9256 4 жыл бұрын
Hi! Do you have some email address, so we can reach you?
@kopazwashere
@kopazwashere 4 жыл бұрын
please remove dealextreme links on your website on parts list for YMFCs, this website is terrible they shouldn't be promoted. :/ their website doesnt even let you log in and overcharges you for shipping/items.
@BlackopTN
@BlackopTN 4 жыл бұрын
electronoobs brought me here
@bobyla13
@bobyla13 2 жыл бұрын
hard to understand your English pronunciation
@digmatology
@digmatology 2 жыл бұрын
I will be Unsubing all channels until the dislike button works. No dislike? No like!
$8 MilkV Duo: Arduino on one core and Linux on the other
13:49
Andreas Spiess
Рет қаралды 80 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 68 МЛН
A simple BIOS for my breadboard computer
21:53
Ben Eater
Рет қаралды 336 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Improve your Arduino programming skills - Open drain
9:38
Joop Brokking
Рет қаралды 22 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 333 М.
Уроки Arduino. Работа с EEPROM памятью
10:35
Заметки Ардуинщика
Рет қаралды 77 М.
Arduino Pointers and Memory Addresses #Arduino #C #C++
8:09
Programming Electronics Academy
Рет қаралды 9 М.
EEPROM Memory - Store Anything - Arduino101
13:16
Electronoobs
Рет қаралды 104 М.
Level Up Your Arduino Code: Registers
21:09
SparkFun Electronics
Рет қаралды 184 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10