PSoC™ 6 Forum Discussions
Hello. I'm beginner for PSoC series and this is my first post.
I use PSoC63BLE and ModusToolbox as IDE .
I don't use PDL but use HAL in my program from the view point of easy managing in github.
In my project, it is necessary to use 4 analog output and I tried to use DAC of HAL Drivers.
I could use P9_6 as Analog output pin but couldn't assign other pin as analog output.
if P9_6 is assigned as analog output pin, "result = cyhal_dac_init(dac_obj, 9_6)" is not error and result is "0". But if other pins are "result = cyhal_dac_init(dac_obj, PIN)" is error and result is not "0".(PIN is variable of cyhal_gpio_t )
I want ask if I can use 4 analog output in PSoC63 and what pin I can assign as analog output.
I attache the code of part of error occuring.
thank you.
Show LessDear Forum : We developed our embedded software with PSoC6.
But we encountered the following problem:In some boards,PSoC6 can't wake up from deep sleep.
We developed deep sleep and wake up process by the following method:
step1: close all the used MCU macro.(eg: IIC, timer, uart etc.)
step2: set a GPIO port to external interrupt port.
step3:set MCU to standby by the following code
Cy_SysPm_RegisterCallback(&ClkDeepSleepCb);
The saga continues lol. We've got our Em_EEPROM working, but I have a row addressing question regarding Cy_Em_EEPROM_Write(). It's recording single data points fine, but we're trying to keep a log of voltage readings.
This is what I've got right now. Every 500 loops, I'm storing an array of voltage readings from (currently) 2 ADC channels, but I want to keep the last 1000 readings, FIFO style. I'm a little confused on what to put for the first argument of Cy_Em_EEPROM_Write().
cy_stc_eeprom_context_t eepromContext;
cy_stc_eeprom_config_t eepromConfig =
{
.eepromSize = DATA_SIZE,
.simpleMode = SIMPLE_MODE,
.wearLevelingFactor = WEAR_LEVELING,
.redundantCopy = REDUNDANT_COPY,
.blockingWrite = 1u,
.userFlashStartAddr = (uint32_t)&(emEepromStorage[0u]),
};
unsigned short mVLength = 2;
uint32_t voltagemVolts[mVLength];
uint32_t mVSize = sizeof(voltagemVolts);
unsigned short cycleCount = 1; // counter for while loop cycles for logging
uint32_t FIFOCount = 0u; // counts # of values stored in memory
while(true) { // operation cycle
// snip recording voltage into voltagemVolts
if (cycleCount == 500) {
Cy_Em_EEPROM_Write(FIFOCount * mVSize, &voltagemVolts, mVSize, &eepromContext);
cycleCount = 0; // reset loop counter
if (FIFOCount == 1000)
{
FIFOCount = 0u; // reset to initial Em_EEPROM row
}
else FIFOCount++; // iterate FIFO counter
}
cycleCount++; // iterate loop counter
}
}
Initially I just used FIFOCount by itself as the first argument, so it would advance one Em_EEPROM row each time it recorded, but then I started to wonder if I should make more room after iterating for the next datapoint, given that I'm writing an array of voltages. So I guessed and went, maybe I should give it the count of entries * the sizeof the array to ensure I'm advancing to the next recording row correctly. And then I started second-guessing myself and decided to get a second opinion.
Show Less在eclipse中导入多核工程后点击编译,提示Libraries: "core-make recipe-make" not found. Run "make getlibs" to ensure all required build and code dependencies are present.. Stop.
make: *** [C:/Users/86181/ModusToolbox/tools_3.1/make/application.mk:72: build] Error 2,请问这是什么原因造成的,可以通过什么方法解决?
Hello,
I have configured an SRAM chip to work with SMIF in normal mode. Now I want to enable XIP/memory mapping of that memory.
It seems like the memory map of CY8C62x7 expects external RAM to live at 0x60000000 – 0x9FFFFFFF (according to the datasheet). However, I'm having difficulty configuring SMIF to point to that address when memory mapping.
Do you have any hints for me on how to get this to work?
Hi all,
XENSIVTM MEMS microphones PDM接口搭配MCU推荐哪个型号?
是否可以直接处理识别PDM讯号?
Dear Receiver,
We know there are many kinds of power supply source in PSoC 6.
For example: there are VDDD, VDDIO1, VDDIO2, VDDA, etc.
As I know, the power supply source of "Flash" is from VDDD.
Next,
CY8C6247BZI-D54 has 1MB flash
CY8C624ABZI-D44 has 2MB flash
I would like to know is there any "current consumption difference" between 2M flash and 1M flash?
Thank you so much.
Show LessI am a first year student so please bear with me, I am new to this. I am dealing with the Cypress MiniProg4 to program an external intelligent board(the RIS). I was wondering why we aren' t connecting through the JTAG but rather using a DBG Connector to program/ debug the board.
Show LessHi
In the Secure_Boot documentation sample for the PSoC 64 Secure MCU, CySecureTools uses keys in the form of pre-prepared files during the Provisioning process.
However, in actual operational scenarios, having keys in file format exposed is clearly not in line with security standards.
So, as indicated in the title, how should CySecureTools directly access the key inside an external storage device?"
Thanks
Lucas