PSoC™ 6 Forum Discussions
So i am trying to create the DFU MIddleware API,
https://infineon.github.io/dfu/dfu_sdk_api_reference_manual/html/index.html#group_dfu_mtb_cfg
I am following the same steps as mentioned. But the TARGET file in mtb_shared is not generate which is mentioned in STEP 1.4.
So what can be done about it?
Show LessDear Receiver,
About "mtb-example-psoc6-switching-power-modes" example code in the MTB。
We found there is a big current consumption difference between sample code 2.2 and 3.0 in their deep sleep mode。
(Please refer to the attached file 1.)
deep sleep mode in V2.2 is about 0.002mA
deep sleep mode in V3.0 is about 2.6mA
The current measure point is shown as the attached file 2. Please also refer to it。
We feel confused why a big current consumption difference between V2.2 and V3.0,
Thank you so much。
Show Less
Hi to all,
I want to bring your attention to the design challenge at Element14 community that involves the use of PSoC62S4 Pioneer kit to develop a project that pushes it's limits to the max.
https://community.element14.com/challenges-projects/design-challenges/at-the-core-design-challenge/
There are several cool projects running, and it's a good resource for learning.
I am one of the challengers and I am excited to share my progress with you:
At the end of the challenge I will share the project of course, so that it can be helpful to other users. I hope you enjoy this short clip for now f.
Show LessHi,
I have DFU running in CM0 and Application running in CM4.
I want to restart the PSOC , both cores, How to do it programmatically.
Regards,
Madhav
Show Less
Hi Team,
I am using the CY8CKIT43012 board for my development and I am reading the input 5kHz V in SAR ADC. I have taken reference from https://github.com/Infineon/mtb-example-psoc6-sar-adc-simultaneous-sampling example. And I have configured the SAR ADC in the single-ended mode for pin 10.0, I am using an external Vref(1.65V) source and taking the samples at the PWM capture compare event. (At 1 MHz) And set the sampling frequency as 1MSPS. But I am not getting proper output. I am getting proper output for 3.3V, GND, and 1.65V but I am not able to reconstruct the sine wave of 5kHz.
(Environment: Modustoolbox version 3, Implemented above functionality in Empty App). I have attached my sample code. Please let me know what am I missing.
Show LessI am using PSoC6 with BLE to control some rf switches. I am new and learned a lot of the code from the PSoC6-101 videos on youtube.
I keep getting the following issue Build error: 'configMAX_SYSCALL_INTERRUPT_PRIORITY' undeclared (first use in this function) I know it has to do with FreeRTOS
I have attached the project.
Any help will be great.
Show LessHi guys,
I am fairly new with psoc and modustoolbox, but i am having trouble debugging applications.
I am using the 'Wi-Fi Web Server' Application at the minute and keep getting the same error when debugging the application. It seems to be happening for all Bluetooth and Wi-Fi applications.
The errors can be seen below, any help would be greatly appreciated, thanks!
Show Less
After programming the mcuboot hex file using
make clean app APP_NAME=MCUBootApp PLATFORM=PSOC_062_1M FLASH_MAP=./psoc62_1m_cm0_int_swap_single.json
I got the boot loader progarmmed successfully, and got the UART message as follow
[INF] MCUBoot Bootloader Started
[DBG] * boot_prepare_image_for_update...
[DBG] > boot_prepare_image_for_update: image = 0
[DBG] * Read an image (0) header from each slot: rc = 0
[DBG] * selected SCRATCH area, copy_done = 3
[INF] Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[INF] Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[INF] Boot source: primary slot
[DBG] > STATUS: swap_read_status_bytes: fa_id = 1
[DBG] * re-read image(0) headers: rc = 0.
[DBG] * There was no partial swap, determine swap type.
[INF] boot_swap_type_multi: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[INF] boot_swap_type_multi: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[INF] Swap type: none
[DBG] > boot_validate_slot: fa_id = 1
[ERR] Image in the primary slot is not valid!
[DBG] < boot_validate_slot = 1
[DBG] > boot_validate_slot: fa_id = 2
[DBG] * Fix the secondary slot when image is invalid.
[DBG] * Erase secondary image trailer.
[INF] Erasing trailer; fa_id=2
[DBG] * No bootable image in slot(1); continue booting from the primary slot.
[DBG] < boot_validate_slot = 1
[DBG] < boot_prepare_image_for_update
[DBG] * process swap_type = 1
[DBG] > boot_validate_slot: fa_id = 1
[ERR] Image in the primary slot is not valid!
[DBG] < boot_validate_slot = 1
[ERR] MCUBoot Bootloader found none of bootable images
but when I try to Program the board using Program (KitProg3) I got this error
Started by GNU MCU Eclipse
Open On-Chip Debugger 0.11.0+dev-4.4.0.2134 (2022-09-08-13:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
kitprog3 set_latest_version: C:/Users/owaf/ModusToolbox/tools_3.0/fw-loader 2.40.1241
adapter speed: 2000 kHz
adapter srst delay: 25
adapter srst pulse_width: 25
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Info : Using CMSIS-flash algorithms 'CY8C6xxx_SMIF' for bank 'psoc6_smif0_cm0' (footprint 17032 bytes)
Info : CMSIS-flash: ELF path: ../flm/cypress/cat1a/CY8C6xxx_SMIF.FLM
Info : CMSIS-flash: Address range: 0x18000000-0x1FFFFFFF
Info : CMSIS-flash: Program page size: 0x00001000 bytes
Info : CMSIS-flash: Erase sector size: 0x00040000 bytes, unified
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Info : Using CMSIS-DAPv2 interface with VID:PID=0x04b4:0xf155, serial=061F02F302098400
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.40.1241
Info : KitProg3: Pipelined transfers enabled
Info : KitProg3: Asynchronous USB transfers enabled
Info : VTarget = 3.274 V
Info : kitprog3: acquiring the device (mode: reset)...
Error: kitprog3: failed to acquire the device
Info : clock speed 2000 kHz
Error: Error connecting DP: cannot read IDR
Error: Error connecting DP: cannot read IDR
Error: Error connecting DP: cannot read IDR
Error: DAP 'psoc6.cpu' initialization failed (check connection, power, transport, DAP is enabled etc.)
Info : psoc6.dap: powering down debug domain...
Error: Error connecting DP: cannot read IDR
Error: Error connecting DP: cannot read IDR
Warn : Failed to power down Debug Domains
Show Less
I'm new to the ModusToolbox and I have to say that I like it. I started playing with examples running the SAR ADC and it works when using the example from Github (hal adc basic).
However, this example doesn't use the Device Configurator. Could someone explain to me why that is?
Anyway, I tried to create a SAR example by using the Device Configurator and everything works up to starting the conversion but the provided values aren't correct.
What I did is the following:
- Enabling SAR
- Vref set to Vdda
- Number of channels set to 1
- Assigned a random clock
- Single ended result set to unsigned
- Set Ch0 Vplus to 10_0
In the main.c the following was added:
cycfg_config_init(); //to initialize everything done in the device configurator
int16_t result1;
float32_t resultV_0 = 0;
if (CY_SAR_SUCCESS != Cy_SAR_Init(SAR, &pass_0_sar_0_config))
{
printf("Error initializing SAR\r\n");
CY_ASSERT(0);
}
Cy_SAR_Enable(SAR);
Cy_SAR_StartConvert(SAR, CY_SAR_START_CONVERT_CONTINUOUS);
for(;;){
result1 = Cy_SAR_GetResult16(SAR, 0);
resultV_0 = Cy_SAR_CountsTo_Volts(SAR, 0, result1);
printf("%.2fV \r\n", resultV_0);
}
Did I miss something obvious?
I added the example project as zip file, it is the hello world example with the above code added.
Show Less