Skip to main content
KDIAS.2340
Associate II
February 9, 2020
Question

Not able to start. I d'loaded MDK529.exe , it is an icon on my desktop. I click on it hoping to run it but it gets me to another screen asking me to install. Is there a clear and comprehensive single set of instructions that actually work?

  • February 9, 2020
  • 13 replies
  • 4047 views

Most of the links lead to nowhere i.e. 404 error

This topic has been closed for replies.

13 replies

Piranha
Principal III
February 9, 2020
KDIAS.2340
Associate II
February 9, 2020

Thanks (for the second link). This talks about dev boards which I am not using. I have the STM32 already in my own board as mentioned earlier.

Piranha
Principal III
February 9, 2020

Oh, you poor one. One of course has to be a genius to see the "Devices" tab besides the "Boards" tab.

KDIAS.2340
Associate II
February 9, 2020

Tried Blinky example but got error msg:

Error: Flash Download failed - Could not load file 'C:\Users\Admin\Documents\MDK\MDK\Boards\ST\STM32G474E-EVAL\Blinky\Objects\Blinky.axf'

Tesla DeLorean
Guru
February 9, 2020

And is the file actually there? Any other failures in the connection/download process

I'd build these things off an C:\KEIL directory

Does the project build and complete?

Does the ST-LINK find a connected STM32 device? Inspect Options -> Debug -> Debug Settings

Do the ST-LINK Utilities find the STM32 / Board?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
KDIAS.2340
Associate II
February 22, 2020

Thanks. How to run the simulator?

KDIAS.2340
Associate II
February 13, 2020

I decided to try the simulator instead but got stuck. I am in microvision and loaded the project blinky but could not see the simulate button. The video shows him opening MDK and then you get a list of examples and you copy the one you want and then simulate appears automatically in the abstract file. I don't think you have to do this every time you simulate but then how else can you simulate?

KDIAS.2340
Associate II
February 29, 2020

At last, d'loaded Blinky via STLINK. When I ran it, the LED on STLINK started FLASHING red and green. So I assume my d'load to STM32G4 works OK. Now, I have to program the 3 motors for forward and reverse motion. Is there any code out there that can do it?

Thanks

Tesla DeLorean
Guru
February 29, 2020

You've got a custom board, with random motors. No one here was involved in your design. I'm not sure this stuff is the trivial exercise you think it is.

If you want examples, perhaps look at ST provided board/motor combinations related to the STM32G4, and apply what you learn there to your specific case.

https://www.st.com/content/st_com/en/about/media-center/press-item.html/n4187.html

You should engage with ST Motor FAE's, perhaps they can suggest seminars or motor hack-fest type events, or suggest contractors for motor applications.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Piranha
Principal III
February 29, 2020

You mean a universal code for universal unknown drivers? How about learning how your motor drivers work and turning them on?

KDIAS.2340
Associate II
March 27, 2020

I was trying to understand the C code for Blinky but with limited success, may be need a refresher on C. Any suggestions welcome

Pavel A.
Super User
March 27, 2020

> may be need a refresher on C. Any suggestions welcome

Would recommend to look at courses and articles of Jacob Beningo.

I like his style of explaining things.

https://beningo.mykajabi.com/

https://www.beningo.com/blog/

And then, more tools and TDD:

http://www.throwtheswitch.org

-- pa

KDIAS.2340
Associate II
March 27, 2020

Thanks, but looking for something quick; ordering and getting a book - 2 weeks? with this virus. Having trouble with this line:

tid_thrBUT = osThreadNew (thrBUT, NULL, NULL);

Pavel A.
Super User
March 27, 2020

This virus time gives ideal chance to read a book.

Maybe he has some electronic format - pdf or doc ...

> Having trouble with this line:

 tid_thrBUT = osThreadNew (thrBUT, NULL, NULL);

This is a function call. osThreadNew is the function name. To the right of it are 3 parameters. To the left hand of it is the returned value.

-- pa

KDIAS.2340
Associate II
March 28, 2020

Thanks. What do the 3 parameters signify