kywwilson11 opened a new pull request, #14336:
URL: https://github.com/apache/nuttx/pull/14336

   Added a flash driver for the STM32G4 series. The primary change here is the 
addition of stm32g4xxx_flash.c. This file uses the STM32L4 flash driver as a 
template. The primary difference is the accounting for dual banks with 
different page sizes for category 3 flash devices. For category 3 devices, 
flash page size and number of pages is determined at runtime. Added additional 
configuration information to hardware/stm32_flash.h for all supported STM32G4 
devices. 
   
   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   No flash driver existed previously for the STM32G4 family. This commit adds 
flash support for the STM32G4. Flash support includes defining functions 
provided by the progmem interface, as well as adding some generic flash_lock, 
flash_unlock, and stm32_flash_user_optbytes. 
   
   ## Impact
   
   This commit should only impact the chips in the arch/arm/src/stm32 category. 
More specifically, only STM32G4 chips should be impacted within that category. 
   
   ## Testing
   Tested with a Nucleo-G474RE Development Board. 
   
   Tested by calling each public function provided by stm32g4xxx_flash.c during 
bringup. Each function was called with varying inputs and verified the correct 
outcome was achieved after each call. 
   
   Also tested by creating a mtd config device "/dev/config" with mtd_config 
and mtd_progmem. I was able to read from the /dev/config device successfully. 
   
   Lastly, I tested building nuttx with other architectures and chips to make 
sure nothing unexpected was broken. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to