On Wed, Sep 9, 2020 at 5:50 PM Daniel Mesham <danielmes...@gmail.com> wrote:
> I am attempting to port NuttX to the STM32L431CC on a custom board. I have 
> done so by copying the config for the Nucleo-L432KC board, using pretty much 
> the same procedure as described here: 
> https://groups.google.com/g/nuttx/c/3p1ZF1lS8cw/m/FzPVR5omAgAJ.
>
> I have made a simple app that toggles an LED, which is the entry point app. 
> When I flash ‘nuttx.bin’, to the Nucleo-L432, it works as expected and the 
> LED blinks. However, when I flash the same code to my L431 it does not work.
>
> It appears that NuttX is not initialising properly. When I use the 
> STM32CubeProgrammer to inspect the device memory, I can see that the GPIO 
> configuration registers have not been set as they should be. For example, the 
> GPIOB registers at 0x48000400 simply contain repeating blocks of 
> “0xFFFFFEBF”, which is not right (and is not what I see on the Nucleo-L432).
>
> I’m finding it very hard to debug this. Are there further steps that I should 
> try, or a different approach? My understanding was that the L432 and L431 
> were very similar and so the port should have been fairly straightforward.
>
> Thanks in advance for any and all suggestions!
>
> Daniel

Hi Daniel,

A few thoughts...

I think at this time NuttX does not have a STM32L431CC configuration.
I am not familiar with this particular sub-family (L432, L431 etc) to
know whether there is any operative difference between them. But if
there is, and if you're trying to flash a program that expects to be
on a L432 to a board running L431, that might be an issue.

Feel free to submit a PR to add architectural support for your exact MCU model.

If that's not the issue...

Perhaps you should look more closely at the clock setup in your custom
board's board.h file?

Have you been able to flash and run some other firmware, such as a
simple bare metal blinking light program, to ensure the board and CPU
are operating correctly?

Nathan

Reply via email to