Skip to main content
Graduate II
May 8, 2024
Question

how to check if program is indeet loaded to exteral flash and runs from there?

  • May 8, 2024
  • 1 reply
  • 1947 views

everything is working, downloads and runs, I am still not sure it the external QSPI works.

I can write and read from QSPI, checked but I am not sure if it works as external flash to load the code and run from it.

I chose to put main.c in external flash (is this the way you do ?)

1.png

4.png

 

2.png

 

but the bar in Keil only and always shows that it is loading to internal flash

3.png

    This topic has been closed for replies.

    1 reply

    Graduate II
    May 8, 2024

    How much code is actually in main.c vs all the C and HAL library code?

    To know where it's running, you could make a small routine in startup.s, that loads R0 with the LR, and returns.That way it will tell you where you're calling the function from.

     

    CalledWhence PROC
     EXPORT CalledWhence
     MOV R0, LR	
     BX R0
     ENDP

     

    MNapiAuthor
    Graduate II
    May 8, 2024

    the main.c is less than 10K compared to the whole thing over 1M

    the board is running I cannot confirm if from internal flash or external, I might still be missing something

     

    5.png