This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

getting started with MDK; need support for STM32L496

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.

Parents
  • 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.)

Reply
  • 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.)

Children
  • 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?