|
spinnaker_tools (BMP) latest
SpiNNaker BMP firmware
|
Flash routines for BMP LPC1768. More...
Enumerations | |
| enum | bmp_lpc_flash_command { FLASH_PREPARE = 50 , FLASH_COPY = 51 , FLASH_ERASE = 52 , FLASH_SERIAL = 58 } |
| (Subset of) commands that can be passed to lpc_iap() More... | |
Functions | |
| uint32_t | is_blank (const void *buf, uint32_t len) |
Check if an area of memory is blank (filled with 0xFF) | |
| uint32_t | flash_sector (uint32_t addr) |
| Convert flash address to sector number (LPC17xx specific) | |
| uint32_t | flash_erase (uint32_t start, uint32_t end) |
| Erase sectors given start and end (byte) addresses. | |
| uint32_t | flash_write (uint32_t addr, uint32_t length, const uint32_t *buffer) |
| Write to flash from supplied buffer. Only writes one sector. | |
Flash routines for BMP LPC1768.
(Subset of) commands that can be passed to lpc_iap()
| Enumerator | |
|---|---|
| FLASH_PREPARE | Flash prepare. |
| FLASH_COPY | Flash copy. |
| FLASH_ERASE | Flash erase. |
| FLASH_SERIAL | Flash get serial number. |
| uint32_t is_blank | ( | const void * | buf, |
| uint32_t | len | ||
| ) |
Check if an area of memory is blank (filled with 0xFF)
| [in] | buf | The address of the area of memory |
| [in] | len | The size of the area of memory, in bytes |
0xFF, false otherwise | uint32_t flash_sector | ( | uint32_t | addr | ) |
Convert flash address to sector number (LPC17xx specific)
Sectors 0..15 are 4096 bytes and sectors 16..29 are 32768 bytes
| [in] | addr | Address in flash |
| uint32_t flash_erase | ( | uint32_t | start, |
| uint32_t | end | ||
| ) |
Erase sectors given start and end (byte) addresses.
| [in] | start | Starting address |
| [in] | end | Ending address |
| uint32_t flash_write | ( | uint32_t | addr, |
| uint32_t | length, | ||
| const uint32_t * | buffer | ||
| ) |
Write to flash from supplied buffer. Only writes one sector.
| [in] | addr | byte address in flash |
| [in] | length | number of bytes to write |
| [in] | buffer | data to write |