Community > SMF2000 community projects
Byte write to external SDRAM
Novakov:
I'm trying to use the SDRAM chip on SMF2000 board. I'm using provided reference design which is configured to use SMC. 32-bit and 16-bit access works correctly (both read and write), however 8-bit write doesn't.
Using base address 0xA0000000 only 8-bit write at offests: 0x0, 0x1 and 0x8, 0x9 work. The cycle repeats every 16 bytes, writes at remaining offests are ignored (no BusFault but memory content is unchanged). I've attached sample program (C++) that zeroes entire memory, than it writes 0xAD to each memory byte. Memory content after the execution is shown on attached screenshot.
I also tried to replicate design from scratch with the same result.
Novakov:
Update: I've used IP Core for SDRAM from this repository: https://github.com/zhelnio/ahb_lite_sdram as a replacemnt for CoreSDR_AXI IP (and AHB-Lite to AXI conversion) and it worked (even with default paramters).
If someone else would be able to verify the result, then I'm going to report support case to Microsemi as (at least for now) that CoreSDR_AXI is broken
Antti Lukats:
Hi
sorry for no quick answer - Microsemi IP core works too, but we are in backlog updating the reference designs, sorry.
and many many thank you for trying out and posting info about the success with the 3rd part SDRAM IP core, this is very good to know that it worked so easily!
ups, we have actually not verified byte access, we know that the SDRAM works but we have not done much testing ourself. I would still assume microsemi IP can also support byte accesses.
br
Antti
Novakov:
Any info on updating reference design?
Antti Lukats:
Hi sorry no - we will update all SmartFusion2 designs to Libero 12.x - if there are still issues with external SDRAM we would then ask Microsemi support directly.
I did assume that the problem is/was solved by some nasty workarounds or at least fully working (with 11.x Libero)
Antti
Navigation
[0] Message Index
[#] Next page
Go to full version