element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
At The Core Design Challenge
  • Challenges & Projects
  • Design Challenges
  • At The Core Design Challenge
  • More
  • Cancel
At The Core Design Challenge
Forum PSoC6S4 Vector table of the cm0+ in flash.
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join At The Core Design Challenge to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 49 subscribers
  • Views 949 views
  • Users 0 members are here
Related

PSoC6S4 Vector table of the cm0+ in flash.

Digimorf
Digimorf over 2 years ago

Has anyone tried to leave the vector table of the cm0+ in flash and configure an interrupt?

By default it is copied into SRAM. No doubt about it's faster to fetch the addresses of the IRQ handlers at runtime, but I need to check if the access to SRAM by both cores causes jitter in fetching the IRQ handlers. 

I tried to customize the startup file of the cm0+, but something must be inherited by the PDL such as the ram_table_address. 

Thanks 

  • Sign in to reply
  • Cancel

Top Replies

  • misaz
    misaz over 2 years ago +3
    Yes. SRAM access on different cores (or caused by DMA or otherm AHB masters) can influence interrupt latancy. I tested it on different PSoC for evaluating Profiler peripheral (which is unluckily not avalaible…
  • ljking
    ljking over 2 years ago +2
    There are actually several independent SRAM blocks and controllers inside the part (it is not just a single large SRAM). if you put the Video buffer in a different SRAM block from the vectors I suspect…
  • ljking
    ljking over 2 years ago in reply to Digimorf +1
    That was my thinking also, but I don't want to assume that is the correct answer. For an example, a single controller could control two 32k blocks. Until I get to see the answer formally documented, I…
  • ljking
    0 ljking over 2 years ago

    There are actually several independent SRAM blocks and controllers inside the part (it is not just a single large SRAM). if you put the Video buffer in a different SRAM block from the vectors I suspect this will help. Unfortunately the datasheet and Technical Reference manuals do not tell you the addresses of the SRAM blocks. I have raised a documentation bug against this oversight, but I can't tell you when  updated documentation will be released. I would trial and error moving the locations of the video buffers in SRAM to see if that helps.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Digimorf
    0 Digimorf over 2 years ago in reply to ljking

    Thank you for sharing this information. Are you referring to what is said in the datasheet:

    "■ SRAM Up to 128 KB of SRAM is provided. Power control and retention granularity is implemented in 32 KB blocks allowing the user to control the amount of memory retained in Deep Sleep. Memory is not retained in Hibernate mode."

    In this case there should be 4 controllers... 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ljking
    0 ljking over 2 years ago in reply to Digimorf

    That was my thinking also, but I don't want to assume that is the correct answer. For an example, a single controller could control two 32k blocks. Until I get to see the answer formally documented, I don't want to give you possibly in-accurate information.

    If your problem is actually SRAM access contention (which seems like a reasonable guess), then moving the video buffers to the highest addresses in memory, and the vectors to the lowest addresses should give you some information. 

    Is it possible the CM0+ is servicing some higher priority interrupt, and you have to wait for that to complete before it starts the video interrupt? (just throwing out other ideas to explore).

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • misaz
    0 misaz over 2 years ago

    Yes. SRAM access on different cores (or caused by DMA or otherm AHB masters) can influence interrupt latancy. I tested it on different PSoC for evaluating Profiler peripheral (which is unluckily not avalaible on part used in At The Core Design Challenge) and shown how SRAM accesses on one core affects performance of the other. For more details see my blog:  PSoC 6 Pioneer Kit Roadtest - Project 6 - Profiler

    Interrupt latency is affected by multiple factors and vector table storage memory (and it's utilization) is one of them. It is very hard to achieve zero jitter on interrupt latency on Cortex-M. Some points why is it hard are described in ARM article: https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/beginner-guide-on-interrupt-latency-and-interrupt-latency-of-the-arm-cortex-m-processors

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Digimorf
    0 Digimorf over 2 years ago

    Thanks for the support. I think I will try first to leave vectors in the flash. I can't understand why this is not the standard configuration.

    Anyway the PDL documentation shows how to configure an interrupt to use the vector table in the flash, but that doesn't work for me. Probably I am missing something.

    https://infineon.github.io/mtb-pdl-cat1/pdl_api_reference_manual/html/group__group__sysint.html

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube