Skip to content

Commit

Permalink
targets/pipistrello: add flash sizes
Browse files Browse the repository at this point in the history
ZJ authored and sbourdeauducq committed May 2, 2015
1 parent 5e649a6 commit 1832f27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions targets/pipistrello.py
Original file line number Diff line number Diff line change
@@ -120,6 +120,8 @@ def __init__(self, platform, sdram_controller_settings=LASMIconSettings(), **kwa
if not self.integrated_rom_size:
self.submodules.spiflash = spiflash.SpiFlash(platform.request("spiflash4x"),
dummy=10, div=4)
self.add_constant("SPIFLASH_PAGE_SIZE", 256)
self.add_constant("SPIFLASH_SECTOR_SIZE", 0x10000)
self.flash_boot_address = 0x180000
self.register_rom(self.spiflash.bus, 0x1000000)

0 comments on commit 1832f27

Please sign in to comment.