We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all -
I'm evaluating the Keil MDK. I have a NUCLEO-L496ZG board, and the Pack Installer doesn't have an entry for this board. It does have an entry for the L476RG. I just want to do some of the examples shown in the Videos section of Keil's web site; nothing fancy yet. Can someone tell me whether I can use the L476RG pack with my board, and what I might need to do to getting the MDK working on my board? If I can just learn how to use the debugger, and turn the on-board LED on and off, I'd consider that a success.
Thanks.
1. is this what I was supposed to do?
That is reasonable, but I always do the High Level Part first (Device Family Pack) then the demo board examples and stuff(Nucleo-...). That is just how I think of it, not a right or wrong.
2. what exactly is this download? By this, I mean which parts of the "Product Components" image at this page: http://www2.keil.com/mdk5 does this pack provide? I notice that in the Examples tab of the Pack Installer, there are entries for:
- Keil:STM32L4xx_DFP -Keil:STM32Nucleo_BSP
From the link you show (http://www2.keil.com/mdk4) the most significant part of the download is the "device" related stuff. That is what the STM32L4xx_DFP is. This is the STM32L4xx Device Family Pack. It is developed my ST. It should be all the header files needed for each and every STM32L4 part as well as device driver code for these devices.
The Items listed as BSP are usually examples for specific implementation of boards within the device family.
So in my mind, I think "Device Family Pack" first as any board that uses a device from this "family" will still need the full Device Family Pack. Then I may go look for examples or a starting point if I have a dev board or something.
It appears that we now have a few more layers of software, and I'm trying to get a picture of how they all hang together.
Not too many years ago, when you installed Keil, you just got support for every chip and every demo board installed no matter what. This made it "easier" in that you did not need to know too much beforehand, but it was a fairly large amount of data. As the number of processors as well as the number or processor manufactures increased, the size of the installs increased significantly. There was also no real concept of installing a specific version of processor support. When you get a new version of Keil, you got the newest version of the libraries.
They have done away with the install support for everything and make you choose what you want. You are still free to choose any/everything you would like, but there are so many manufactures that it is just easier to install only from the manufactures you are going to use or look into using.
OK, thanks for the clarification. So...I've been able to build the blinky project. I assumed that this program would blink the lone LED on the NUCLEO board, but...it doesn't. Should I expect this to work, or is there some mods I need to make to get the program working on this board? (I don't mind digging into the code, but it's more likely a configuration error, I'd rather concentrate on that.)
Well, it looks like it should do everything properly EXCEPT turn an LED on and off. The NUCLEO-L476RG board has a single LED and it is on pin PA.5.
The NUCLO-L496ZG does not have an LED on pin PA.5 The plus side is that the L496ZG board has more than 1 user controllable LED on it. Download the schematic from ST and configure the proper pins (that have LED's connected to them)
It looks like there are two that are safe to work with:
LD1 is PB14 (red) LD2 is PB7 (blue)
I'm assuming that PB means that this is off the GPIOB?
So, I'm guessing that I'd modify the contents of the file LED_NUCLEO_L476RG.c as follows:
1. enable the GPIOB clock (instead of GPIOA) 2. change references to GPIOA to GPIOB for the pin configurations.
Though rather than change this file, it'd make more sense to copy it and modify it for the 96 series. But...I don't see how to add or remove files from the project in uVision. Am I trying to perform an unnatural act here?