PSoC™ 6 Forum Discussions
Is it possibile use an SD card via SDIO with a Psoc6 without SD Host Controller dedicated?
I supposed is possible as like use connectivity module via SDIO for wifi, but libraries lack of a SD Host Driver...
An SD Host Driver will be provided in future?
I'm tryng to adapt this example
mtb-example-psoc6-filesystem-emfile-freertos
and to add the hardware layer for SDIO, anyone has already try this solution and want to share the code?
Show Less
Hello!
I have a CY8CPROTO-062-4343W board and a 4x4 matrix keypad connected to it according to the matrix below.
But I don't understand how to use it. I can't find any guide on the internet how it works.
My first thought was that I need to initialize the pin, for example
Cy_GPIO_Pin_FastInit(P13_5_PORT, P13_5_NUM, CY_GPIO_DM_PULLUP, 1UL, P13_5_GPIO);
Cy_GPIO_Pin_FastInit(P13_0_PORT, P13_0_NUM, CY_GPIO_DM_PULLUP, 1UL, P13_0_GPIO);
Then check if both of them are '1' do something
if((1UL == Cy_GPIO_Read(P13_0_PORT, P13_0_NUM)) && (1UL == Cy_GPIO_Read(P13_5_PORT, P13_5_NUM)))
{
printf("1\r\n");
}
But this doesn't work, P13_0 and P13_5 is always '1' regardless of the button '1' is pressed or not.
Show Less
Given a project where a bootloader and an application occupy different regions of the same address space. The existing Linker scripts can be edited to relocate one of the projects. What is the process to debug one of the projects while the other one stays resident in flash?
When the debug session starts with one of the projects, ModusToolbox erases the entire flash address space so the other project disappears from flash. The ability to debug one application while the other stays in flash is vital to how we do bootloaders. The question is: How can a debugging session be started for a project and have the ModusToolbox tell the debugger to only erase the portion of flash that the application is going to occupy and leave the rest intact? (Note we use Segger JLink debuggers)
Greg
Show LessAnother elementary question: Are the atomic functions like atomic_exchange() and atomic_flag_test_and_set() dual-core-safe on the PSoC 6? I'd expect these to work, but there's not much shared memory discussion.
Show LessStep 4 of AN213924 "PSoC 6 MCU Device Firmware Update (DFU) software development kit guide", Section 4.3.1 "ModusToolbox instructions”, explains how to specify a linker script other than the default. In this step the tab called “Tool Settings” is not present in the ModusToolBox (2.4). Under that tab is folder for GNU ARM Cross C Linker which I think we need to specify the special linker script we will need. I can’t find these settings anywhere in ModusToolbox 2.4. Can you tell us how to specify a non-default Linker Script?
Show LessHello!
I have a CY8PROTO-062-4343W board with a LED connected to P11_2 and a button connected to P13_0.
The LED works as it should and I can toggle it with the Cy_GPIO_Write function.
But I do not get any reaction from the button...
Here is my code. When the button is pressed the function Cy_GPIO_Read should return 1 and enters the IF block to turn on the LED and vice versa. But now the program only enters the ELSE block even when the button is pressed.
#include "cy_pdl.h"
#include "cyhal.h"
#include "cybsp.h"
int main(void)
{
cy_rslt_t result;
/* Initialize the device and board peripherals */
result = cybsp_init() ;
if (result != CY_RSLT_SUCCESS)
{
CY_ASSERT(0);
}
/* Init button */
Cy_GPIO_Pin_FastInit(P13_0_PORT, P13_0_NUM, CY_GPIO_DM_STRONG, 1UL, P13_0_GPIO);
/* Set the drive mode to STRONG for pins P11[2] (other pins in this port are HIGHZ)*/
CY_SET_REG32(&GPIO_PRT11->CFG, CY_GPIO_DM_STRONG_IN_OFF << GPIO_PRT_CFG_DRIVE_MODE2_Pos);
__enable_irq();
for (;;)
{
if(1UL == Cy_GPIO_Read(P13_0_PORT, P13_0_NUM))
{
Cy_GPIO_Write(P11_2_PORT, P11_2_NUM,1);
}
else
{
Cy_GPIO_Write(P11_2_PORT, P11_2_NUM,0);
}
}
}
Show Less
CY8C6137BZI-F14 is a single core processor. Is there an example for a PSoC 61 with bootloader and application occupying the same address space?
Note: AN213924 covers dual processor bootloading and is written for ModusToolbox 1.x
Greg
Show LessIs there example code for PSoC devices that use public/private keys but not encryption?
Greg
Hi guys,
For the psoc6(PN: CY 8C6347FMI-BUD53) project development is using the CY8CKIT-005 MiniProg4 ,but it only programme 1 set board one time, lower yield for MP. could you shared the multi-program kit and related link for the mass production.
Show Less
The PSoC 6 TRM and PDL indicates there is support for large data transfers using the DMAC instead of DMA.
The CY8C6247BZI_D54 on the CY8CKIT-062-WIFI-BT does not seem to support DMAC, though. Referencing cy_dmac.h, the entire hearder+source entire header+source for cy_dmac are conditionally compiled out due to:
#if defined (CY_IP_M4CPUSS_DMAC) || defined (CY_IP_MXAHBDMAC) || defined (CY_IP_M7CPUSS_DMAC)
Looking at another P6 variant CY8C614ABZI-S2F04, there are DMAC symbols defined, but there is not an equivalent for the CY8C6247BZI-D54 variant on the evaluation kit.
#define CY_IP_M4CPUSS_DMAC 1u
#define CY_IP_M4CPUSS_DMAC_INSTANCES 1u
#define CY_IP_M4CPUSS_DMAC_VERSION 2u
None of the other two symbols in that conditional preprocessing check are included for the CY8C6247BZI-D54 either.
Are there P6 variants that do not support DMAC?
Thanks,
Scott
Show Less