A következő címkéjű bejegyzések mutatása: Cortex-M4. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: Cortex-M4. Összes bejegyzés megjelenítése

2014. április 7., hétfő

ARM Course 10. - FSM

After a long skip continued the ARM Course. The section 10 is the hardest part according to the instructors. My opinion is the same. And it is the most useful. I've gaps in my knowledge for shure, or maybe my education was incomplete (I was learning embedded systems something like 20 years ago in the college), but this is the first time I've heard about FSM (Finite State Machine). It a very simple simple method for subscribing and programming something what is required for an MCU based system on daily bases. I'm absolutely sure that I'll use it frequently.
I finished both the quiz and the lab.
Her is the working traffic light:

2014. március 3., hétfő

ARM Course 9. - Lab 9.

This also finished.
I'm getting sick of LED blinking.
I'm sure that at this Lab the description and the required behavior is not the same. So I found only the solution in the forum.
In the description was "record PortF bits 4,1,0 every time the input changes or the output changes", but the solution:
record PortF bits 4,1,0 every time the input changes or on and the output changes
In addition the information was missing about the storage of the initial state value - it should not be stored.

2014. február 24., hétfő

ARM Course 8. - LAB 8

Yesterday evening I've finished the module 8. With this I'm standing at 47% (I need 70%). I still not feel the high level of this course. It take something like ten minutes to write and test the code, the construction of the circuit on the breadboard.
I've documented the result here:


32 Bit, 80 MHz and the LED blinking (my first PC had a 16 Bit 8 MHz CPU with a little more result). The biggest challenge during the construction was that I caught a bug. To be precise, not a bug but a "misprint".
I was looking for the the PE0 pin on the board. Finally I fond. Here:


Check the yellow marked designators! The two parts of the photo displays a part of the top and the bottom side of the Launchpad.

2014. február 5., szerda

ARM Course 5. - The continuation

So I'm not happy. I was looking around on the course forum. The continuation will be released on 13th february.
I can do two things:
  • Wait (do other tings)
  • Start to work on the unofficial material

2014. február 4., kedd

ARM Course 4. - Comments to the Lab 7

The Lab 7 is not about the coding, but about understanding and modifying code written by others.
I read the original and found this:

  //S
  GPIO_PORTF_DATA_R |= 0x08;  delay(1);
  GPIO_PORTF_DATA_R &= ~0x08; delay(1);
  GPIO_PORTF_DATA_R |= 0x08;  delay(1);
  GPIO_PORTF_DATA_R &= ~0x08; delay(1);
  GPIO_PORTF_DATA_R |= 0x08;  delay(1);
  GPIO_PORTF_DATA_R &= ~0x08; delay(1);
  //O
  GPIO_PORTF_DATA_R |= 0x08; delay(4);
  GPIO_PORTF_DATA_R &= ~0x08;delay(4);
  GPIO_PORTF_DATA_R |= 0x08; delay(4);
  GPIO_PORTF_DATA_R &= ~0x08;delay(4);
  GPIO_PORTF_DATA_R |= 0x08; delay(4);
  GPIO_PORTF_DATA_R &= ~0x08;delay(4);
  //S
  GPIO_PORTF_DATA_R |= 0x08; delay(1);
  GPIO_PORTF_DATA_R &= ~0x08;delay(1);
  GPIO_PORTF_DATA_R |= 0x08; delay(1);
  GPIO_PORTF_DATA_R &= ~0x08;delay(1);
  GPIO_PORTF_DATA_R |= 0x08; delay(1);
  GPIO_PORTF_DATA_R &= ~0x08;delay(1);
  delay(10); // Delay for 5 secs in between flashes


Come on! Are you certain? Professionals write code like this? Tell me, this is a joke, not?
At least this. And this barely good enough:

    char i;
    char j;
    char delays[3] = {1,4,1};
    for(i=0;i<3;i++)
    {
        for(j=0;j<3;j++)
        {
            GPIO_PORTF_DATA_R |= 0x08;
            delay(delays[i]);
            GPIO_PORTF_DATA_R &= ~0x08;
            delay(delays[i]);
        }
    }
    delay(10);

Do not panic. This is not the solution just the rewriting of the code above.
And this is the end of the 7th module. And what's next?
The 8th module is nowhere. To be precise "under development":
http://users.ece.utexas.edu/~valvano/Volume1/E-Book/



2014. február 3., hétfő

ARM Course 3. - Videos

In the mean time it turned out that the course videos are not only available on the YouTube but also available in the Amazon S3 (my favorite in these days). Here is the full list (just the first 7 module there yet):
http://users.ece.utexas.edu/~valvano/Volume1/E-Book/VideoLinks.htm

2014. február 2., vasárnap

ARM Course 2. - Over the 6th module

I've finished the 6th module, written the necessary code. This module at least gave some useful information and writing the code needed more time than five minutes (it just because I haven't checked some prerequisite in the material).
Now I don't know how to continue. Half of the 7th module already done and I intend to finish it tonight, but no more modules released yet.

2014. január 24., péntek

ARM Books

In connection with the course  I've ordered the books wrote by the teacher on this topic.
These books also arrived on Wednesday:


In the mean time the optional Nokia 5110 display also arrived so the package is complette (I don't count the resistors, leds, etc. because I have them anyway at home)

It has begun

On Wednesday evening the ARM embedded course has begun:

 
https://www.edx.org/course/utaustinx/utaustinx-ut-6-01x-embedded-systems-1172 
Yesterday evening I completed the first two modules with 100% result.
If somebody interested the first part of the videos are available here:
https://www.youtube.com/user/JonathanWValvano/videos?view=1&flow=grid
It seems to be that the rest of the videos will not be accessible through this channel. So lets register, it's free! 

2013. december 11., szerda

ARM Cortex-M4 course 1.

Two days ago arrived the first letter about the ARM course what I mentioned here.
It was also clear when I applied that I have to get a TI Tiva C Launchpad what they are using for the course, but it somehow I postponed the order.
The letter gave me a boost, so I ordered it.
Today It arrives. Here it is: