Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    How to receive the FFTdata from subcore?

    Spresense
    1
    1
    655
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      denko 2 last edited by

      Hi there,
      I modified from the examples, but I hope to find a good way to receive the FFT data from the subcore.

      For example, for the 'Highpassband' example, I find the code:
      'memcpy(&out_buffer[pos][0], pDst, cnt * sizeof(q15_t) * g_channel);

      result[pos].buffer = (void*)MP.Virt2Phys(&out_buffer[pos][0]);'
      

      however, there is an error when I write q15_t* buffer in the main core. It looks like q15_t* is only used in the sub-core.

      I then try to use the general way like:
      FFT.get(result[pos].fftResult, i);
      ret = MP.Send(rcvid, &result[pos], 0);

      struct Result {
      Result() {
      clear();
      }
      float fftResult[FFT_LEN];

      void clear() {
      for (int i = 0; i < MAX_CHANNEL_NUM; i++) {
      found[i] = false;
      }
      // Clear the FFT result array
      for (int i = 0; i < FFT_LEN; i++) {
      fftResult[i] = 0;
      }
      }

      But it can receive a frame data, and an error happens:
      up_assert: Assertion failed at file:chip/cxd56_icc.c line: 229 task: Idle Task
      Could you please guide me or show me an efficiency way to receive the FFT data from the sub-core?
      Thanks very much.

      1 Reply Last reply Reply Quote
      • First post
        Last post
      Developer World
      Copyright © 2021 Sony Group Corporation. All rights reserved.
      • Contact us
      • Legal