Skip to content

rtl8195am - fix gpio toggle slow #6289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

M-ichae-l
Copy link
Contributor

@M-ichae-l M-ichae-l commented Mar 7, 2018

Description

Ameba has two memory blocks: SDRAM(2M) and SRAM(512KB). SRAM has better access performance than SDRAM. So some timing critical codes must be moved to SRAM.

fix for mbed-os issue #5778

Pull request type

  • Fix
  • Refactor
  • New target
  • Feature
  • Breaking change

Ashok Rao and others added 13 commits February 22, 2018 11:49
Add new api to clear whole sent blockwise message list
fix section error, ARM compiler uses IRAM1.bss to calculate the heap size

fix conflict of _memset between Ameba's library and ARM compiler's library, use standard memset() instead of _memset() in case of ARM compiler
Ameba has two memory blocks: SDRAM(2M) and SRAM(512KB). SRAM has better access performance than SDRAM. So some timing critical codes must be moved to SRAM.

Debug for mbed-os issue ARMmbed#5778
#define __bss_sram_start__ Image$$RW_IRAM2$$ZI$$Base
#define __bss_sram_end__ Image$$RW_IRAM2$$ZI$$Limit
#define __bss_sram_start__ Image$$RW_IRAM1$$ZI$$Base
#define __bss_sram_end__ Image$$RW_IRAM1$$ZI$$Limit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one commit contains few changes:

  • moving bss sramd to ram1
  • removing some text from sram1
  • some changes in the sections regarding lwip, _api and other files

Should this be split into separate commmits , or all are related and what might be beneficial is to describe these changes in the commit message?

I am trying to understand how this fixes gpio and relates to all these changes here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @0xc0170
The change in "rtl8195a_init.c" is actually from PR #6226. The PR #6226 have not merge yet. This change actually is not related to this gpio toggle slow issue. Once the PR #6226 is merged, I will try to rebase for this fix gpio toggle slow issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that explains it. Please always state dependencies in the description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @0xc0170 ,
The PR #6226 has merged. So I rebased this PR. Please review if there is any issue. Thank you!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase again, I can see the commits from master duplicated here

0xc0170 and others added 9 commits March 8, 2018 17:36
…_only

NVStore: Enclose header file with DOXYGEN_ONLY option as well.
Allow build profiles to omit language entries
…rtl8195am

rtl8195am: fix ARM section error
Adding Laird BL652 as new target
Fix for Crash dump formatting issues and adding more info to crash dump
Ameba has two memory blocks: SDRAM(2M) and SRAM(512KB). SRAM has better access performance than SDRAM. So some timing critical codes must be moved to SRAM.

Debug for mbed-os issue ARMmbed#5778
M-ichae-l added a commit to M-ichae-l/mbed-os that referenced this pull request Mar 12, 2018
Ameba has two memory blocks: SDRAM(2M) and SRAM(512KB). SRAM has better access performance than SDRAM. So some timing critical codes must be moved to SRAM.

fix for mbed-os issue ARMmbed#5778

rebase for ARMmbed#6289
@M-ichae-l M-ichae-l mentioned this pull request Mar 12, 2018
1 task
@M-ichae-l
Copy link
Contributor Author

There was some issue with the branch I created, hence I have raised a new pull request #6326. I have closed this PR. Apologies for the delay.

@M-ichae-l M-ichae-l closed this Mar 12, 2018
@M-ichae-l M-ichae-l deleted the rtl8195am-fix-gpio-toggle-slow branch March 12, 2018 06:18
@sg- sg- removed the needs: work label Mar 12, 2018
adbridge pushed a commit that referenced this pull request Mar 26, 2018
Ameba has two memory blocks: SDRAM(2M) and SRAM(512KB). SRAM has better access performance than SDRAM. So some timing critical codes must be moved to SRAM.

fix for mbed-os issue #5778

rebase for #6289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants