Thanks Dr. your content made it to my small laptop and I'm really happy with that!
@Nykrel2 жыл бұрын
My professor should educate himself by reading your book and watching your videos.
@suangpi88473 жыл бұрын
I'm reading that book and I cannot achieve a thing: variables from the DATA Area don't get initialized in Data memory when I set to READWRITE. When I set to READONLY, they are in Instruction memory (0x0800xxxx) but I want to put variables into Data memory (0x20000000) like the book's examples. I did exactly like the book says but the output is different. Please help me! Thanks in advance.
@suangpi88473 жыл бұрын
I'm trying Figure 3-6 and the Datas (srcStr, dstStr) are not in Data Memory(0x20000000). Actually they're nowhere.
@suangpi88473 жыл бұрын
Now I know the point. The book use startup file of its own edited by Dr.Zhu. But the point is everybody don't have the same Board. For me, I have only Nucleo F4 board. So, please make a video of how to modify startup file for a specific board.
@embeddedsystemswitharmcort90513 жыл бұрын
Hi, Suang, I am sorry for my late response. I am glad that you figured out the solution. If you program in C, the original startup _xxxx.s works fine. However, if you main program is in assembly, you need to use the modified startup. I think if you copied the part I added into the startup file for your board, you will be fine.
@suangpi88473 жыл бұрын
@@embeddedsystemswitharmcort9051 Omg you finally reply me! Thank you very much! I'll try it. Can I get a favor? Can you make a video of the modification of startup files (even if not very detail, just a brief short)? Because I just copy it and don't really know how it works under the hood. And I can't figure them out by my own. Much appreciated!
@suangpi88473 жыл бұрын
@@embeddedsystemswitharmcort9051Edit: Don't worry sir I figured it out :). Thank you very much for your guidance.
@janekkomorowski90462 жыл бұрын
What if you try to store a word in a register that already holds some memory
@embeddedsystemswitharmcort90512 жыл бұрын
You question is unclear to me. What does "holds some memory" mean?
@janekkomorowski90462 жыл бұрын
@@embeddedsystemswitharmcort9051 I’m wondering whether we need to free a memory from certain register before storing memory in it
@embeddedsystemswitharmcort90512 жыл бұрын
@@janekkomorowski9046 When you save a value to a register, the original value will be destroyed. Similarly, when you save a value to the memory, the original data at that memory location is lost. If you want to preserve the original memory value, you need to load it to some register (and maybe save it to a different memory location).
@banana0012 жыл бұрын
how can I store a number that I have in register back to memory?