PSoC™ 6 Forum Discussions
I'm using CYC8KIT-062S4, FWIW.
When I create the Dual-CPU Empty PSoC6 App, I see a file called system_psoc6.h located under bsps\TARGET_APP_CYC8KIT-062S4. The instructions in linker.ld advise changing the CY_CORTEX_M4_APPL_ADDR value in this file to reflect the length of the CM0P application. This worked in MTB 2.4, however it no longer has any effect in MTB 3.0. The reason appears to be that CY_CORTEX_M4_APPL_ADDR is already defined when this header is included--but where?
I changed my CM0P application to have a length of 0x8000. I then changed the definition in system_psoc6.h to look like this:
#if !defined (CY_CORTEX_M4_APPL_ADDR)
#define CY_CORTEX_M4_APPL_ADDR (CY_FLASH_BASE + 0x8000U)
#endif /* (CY_CORTEX_M4_APPL_ADDR) */
Upon running the application, I see a crash when the M4 is enabled.
If I comment out the 'if !defined' like so...
//#if !defined (CY_CORTEX_M4_APPL_ADDR)
#define CY_CORTEX_M4_APPL_ADDR (CY_FLASH_BASE + 0x8000U)
//#endif /* (CY_CORTEX_M4_APPL_ADDR) */
...and rebuild, I get a ton of 'redefined' warnings, however the application then runs correctly.
Seems like the instructions in linker.ld could use an updating?
Show LessHello,
We are using Cy_BLE_GetRssiPeer() to find the RSSI of a connected device. It is my understanding that the RSSI reading is acquired from one of the 37 BLE data channels. Is it possible for use to which channel is used to obtain the RSSI value?
Thank you in advance
Show LessI am using CE219431 which demonstrates using a PDM mic. The example sets a threshold at 128 samples in the fifo before the interrupt is supposed to be triggered, but it seems the interrupt is being triggered immediately after clearing a couple times. I am using PDM_PCM_GetNumInFifo() to get and then print out how many are in the fifo every time the mic flag is set, and the pattern is 129 samples, 1 sample, 1 sample, 129 samples, 1 sample, 1 sample, etc. So basically the interrupt is tripped 2X more often than it should be which is annoying for my application. I have tried messing around with the order of clearing the interrupt and reenabling and resetting the flag, but I can't figure out what the problem is. I also thought it could be that the fifo count needs more time to be updated before interrupts are enabled, or it will trip it, but I added a 5ms delay after reading the fifo, and that didn't have an effect on the extra interrupt triggers.
Anybody else figure this one out?
Thanks for reading my post!
Josh
Show LessI already try this library (https://github.com/Infineon/udb-sdio-whd) with CY8CPROTO-062-4343W, it works with Port_2.
I already succesfully use this library on custom board with a CY8C6137BZI-F34 with Port_2.
I can't make it works on Port_9, anyone has experience any issue on Port_9?
I'm working on Windos10 with ModusToolbox 3.0.
My target would be observe SDIO_clk run on P9_5.
Show LessHI ,
for a new project I have to implement the reading of a rotary encoder on CY8CPROTO-63-BLE PSOC6.. I don't understand if this functionality with the PDL QUADDEC feature is present in the CYBLE-416045-02 chip and what are the dedicated PhiA, PhiB pad pins and if there is a configuration example project in the designer Psoc creator 4.3
Thanks in advance
Robert
Show LessHi
I am using psoc6 platform in which I use one GPIO. I configure GPIO interrupt for both edges but when I initialize GPIO interrupt triggers automatically. Please suggest any solution.
Show Less
Hi,
I need to get 24 channels of ADC into the PSoC 63 (124 BGA).
max read-frequency is say 1kHz, x 24ch, I'd be ok with slightly less too.
I've built a project using AMux, it allows me to configure 24 connections while 8 of course will be placed on port10 which is directly tied to the ADC. The remaining pins will be routed in fabric.
Questions:
- How do I best find out / calculate the limits of the MUX vs the SARADC speed?
- Please see attached screenshot which says "SARADC is reachable through analog routing fabric but my lead to congestion or failure"...
Is there a way in psoc creator (or modus) to get more info on what the actual limitations might be?
Hello,
Info : target psoc6.cpu.cm4 was not halted when resume was requested
Hi all,
Using New Application: if I select empty project (or is it empty BSP?) on the first screen where I can choose the kit, then I can choose empty project but there is no dual core ... if I select a kit on the first screen then I see a dual core empty app but I don't want to select a kit. It seems to add more stuff I don't care for because I have my own board.
What am I missing?
BTW nice improvements with Modustoolbox 3. BSP Assistant is great! Nice job guys/gals.
Thanks
Show LessI am using the digital microphones on CY8CPROTO-062-4343W and having a problem when using the DMA to transfer data from the PDM to memory. I have the following code to setup the PDM
/* Initialize the PDM/PCM block */
active_rx_buffer = audio_frame0;
full_rx_buffer = audio_frame1;
cyhal_pdm_pcm_init(&pdm_pcm, PDM_DATA, PDM_CLK, &audio_clock, &pdm_pcm_cfg);
cyhal_pdm_pcm_register_callback(&pdm_pcm, pdm_pcm_isr_handler, NULL);
// cyhal_pdm_pcm_set_async_mode(&pdm_pcm, CYHAL_ASYNC_DMA, CYHAL_DMA_PRIORITY_DEFAULT); // turn on DMA, currently broken
cyhal_pdm_pcm_enable_event(&pdm_pcm, CYHAL_PDM_PCM_ASYNC_COMPLETE, CYHAL_ISR_PRIORITY_DEFAULT, true);
cyhal_pdm_pcm_start(&pdm_pcm);
cyhal_pdm_pcm_read_async(&pdm_pcm, active_rx_buffer, FRAME_SIZE); // trigger the first packet
The remainder of the code is similar to the code in Github posted here: https://github.com/infineon/mtb-example-psoc6-pdm-pcm two days ago, and snippet 2 posted here: https://infineon.github.io/mtb-hal-cat1/html/group__group__hal__pdmpcm.html.
When the cyhal_pdm_pcm_set_async_mode() is commented out the application works as expected.
When I turn on the DMA I get 4x more callbacks per second and all of the data in the second buffer is corrupt.
Is there a problem with the HAL library routines?
Show Less