Skip to content

Commit 1832f27

Browse files
ZJsbourdeauducq
authored andcommittedMay 2, 2015
targets/pipistrello: add flash sizes
1 parent 5e649a6 commit 1832f27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎targets/pipistrello.py

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def __init__(self, platform, sdram_controller_settings=LASMIconSettings(), **kwa
120120
if not self.integrated_rom_size:
121121
self.submodules.spiflash = spiflash.SpiFlash(platform.request("spiflash4x"),
122122
dummy=10, div=4)
123+
self.add_constant("SPIFLASH_PAGE_SIZE", 256)
124+
self.add_constant("SPIFLASH_SECTOR_SIZE", 0x10000)
123125
self.flash_boot_address = 0x180000
124126
self.register_rom(self.spiflash.bus, 0x1000000)
125127

0 commit comments

Comments
 (0)
Please sign in to comment.