PSoC™ 6 Forum Discussions
Hello.
I am writing code using CY8C6136.
I am using the EM-EEPROM function, but an error occurs depending on the IAR version.
In version 8.50.9, it was built without any problems, and there was no problem with the operation.
In version 9.40.1 an error occurs without changing any code.
Error[P21835]: attribute "aligned" does not apply
I attach the relevant code.
Which part needs to be modified?
thanks.
Show LessHi ,
Suspecting with libraries upgrading related, previous your library upgrading to 4.3, Modus loading libraries has problem. Just found library upgrading to version 4.6. Modus could not work suddenly.
Finished download of file 'https://itools.infineon.cn/mtb/manifests/mtb-memfault-mw-manifest-fv2.xml'
Finished download of file 'https://itools.infineon.cn/mtb/manifests/sensiml-mw-manifest-fv2.xml'
Finished loading the manifest data (1680 ms)
Loading the device db
error: pathspec 'release-v4.6.0' did not match any file(s) known to git
the application environment had an empty 'MTB_CACHE_DIR', assuming default location
the application environment had an empty 'MTB_OFFLINE_DIR', assuming default location
the application environment had an empty 'MTB_GLOBAL_DIR', assuming default location
ERROR:there was an error retreiving the asset 'https://github.com/Infineon/device-db' commit 'release-v4.6.0' - error: pathspec 'release-v4.6.0' did not match any file(s) known to git
ERROR:Global asset download of device-db loading completed with error.
ERROR:The asyncStepComplete failed for LoadFlag DEVICE_DB.
ERROR:Failed to get the information.
Press "Retry" to try again.
5 error(s), 0 warning(s)
Best regards!
Jenny
Show LessHello together,
I am using the PSoC63 BLE (CYBLE-416045-02). There is a working bootloader on the uC based on the sample code CE22198401. Now I want to protect the debug pins from being read. I have tried to restrict access via the toc2 and rtoc2 registers. However, I can still read the registers via the PSoC programmer. I have set the toc2 register as follows.
#define CY_PS_FLASHBOOT_FLAGS ((CY_PS_FLASHBOOT_VALIDATE_NO << CY_PS_TOC_FLAGS_APP_VERIFY_POS) \
| (CY_PS_FLASHBOOT_WAIT_0MS << CY_PS_TOC_FLAGS_DELAY_POS) \
| (CY_PS_FLASHBOOT_CLK_25MHZ << CY_PS_TOC_FLAGS_CLOCKS_POS)\
| 0x40) //setting bit [6:5] to 0x03
/* TOC2 in SFlash */
CY_SECTION(".cy_toc_part2") __USED static const cy_stc_ps_toc_t cy_toc2 =
{
.objSize = 0UL, /* Object Size (Bytes) excluding CRC */
.magicNum = 0UL, /* TOC2 ID (magic number) */
.userKeyAddr = 0UL, /* User key storage address */
.smifCfgAddr = 0UL, /* SMIF config list pointer */
.appAddr1 = 0UL, /* App1 (MCUBoot) start address */
.appFormat1 = 0UL, /* App1 Format */
.appAddr2 = 0, /* App2 (User App) start address */
.appFormat2 = 0, /* App2 Format */
.shashObj = 0UL, /* Include public key in the SECURE HASH */
.sigKeyAddr = 0UL, /* Address of signature verification key */
.tocFlags = CY_PS_FLASHBOOT_FLAGS, /* Flashboot flags stored in TOC2 */
.crc = 0UL /* CRC populated by cymcuelftool */
};
/* RTOC2 in SFlash, this is a duplicate of TOC2 for redundancy */
CY_SECTION(".cy_rtoc_part2") __USED static const cy_stc_ps_toc_t cy_rtoc2 =
{
.objSize = 0UL, /* Object Size (Bytes) excluding CRC */
.magicNum = 0UL, /* TOC2 ID (magic number) */
.userKeyAddr = 0UL, /* User key storage address */
.smifCfgAddr = 0UL, /* SMIF config list pointer */
.appAddr1 = 0UL, /* App1 (MCUBoot) start address */
.appFormat1 = 0UL, /* App1 Format */
.appAddr2 = 0, /* App2 (User App) start address */
.appFormat2 = 0, /* App2 Format */
.shashObj = 0UL, /* Include public key in the SECURE HASH */
.sigKeyAddr = 0UL, /* Address of signature verification key */
.tocFlags = CY_PS_FLASHBOOT_FLAGS, /* Flashboot flags stored in TOC2 */
.crc = 0UL /* CRC populated by cymcuelftool */
};
What I have also read is that I can protect the PSoC via the efuse, but I am not sure what bits I need to set here to just protect the pins.
Can you tell me the best way to do this and which bits to set where to protect only the debug pins?
Many thanks for your help
R. Walter
Show Less
In modus tool I am open PSoC6 in that I open empty app and tried to build. While building time time it is success but while coming to debug time some header files defination missing. May I know the solution for this
Show LessI am trying to a program that sets the value obtained from the ADC to a control register via DMA.
I have looked into it myself and tried my best, but it does not work as I expect.
Finally, I want to output the AD converted values from the control register in parallel.
Below is the main code I wrote.Please point out any corrections you need to make.
#include "project.h"
#include "stdio.h"
void ConfigureDMA_Intr(void);
#define BUFFER_SIZE (1u)
uint8 RxDmaUartBuffer[BUFFER_SIZE];
int main(void)
{
Cy_DMA_Descriptor_Init(&RxDMA_Descriptor_1, &RxDMA_Descriptor_1_config);
cy_stc_dma_channel_config_t channelConfig;
channelConfig.descriptor = &RxDMA_Descriptor_1;
channelConfig.preemptable = RxDMA_PREEMPTABLE;
channelConfig.priority = RxDMA_PRIORITY;
channelConfig.enable = 0u;
Cy_DMA_Channel_Init(RxDMA_HW, RxDMA_DW_CHANNEL,&channelConfig);
Cy_DMA_Descriptor_SetSrcAddress(&RxDMA_Descriptor_1,(uint32_t *)SAR->CHAN_RESULT[0]);
Cy_DMA_Descriptor_SetDstAddress(&RxDMA_Descriptor_1,(uint32_t *)Control_Reg_Sync_ctrl_reg__CONTROL_REG);
Cy_DMA_Channel_SetInterruptMask(RxDMA_HW, RxDMA_DW_CHANNEL, CY_DMA_INTR_MASK);
Cy_DMA_Channel_Enable(RxDMA_HW, RxDMA_DW_CHANNEL);
Cy_DMA_Enable(RxDMA_HW);
__enable_irq();
ADC_Start();
ADC_StartConvert();
for(;;)
{
}
}
I am using PSoC Creatror 4.4 and the board used is PSoC6.
Someone please tell me the solution to this.
Show LessI am trying to update the stored data into the EEPROM storage. Am using
Dears,
I am having an issue to limiting the radar distance in Radar Presence detection code and it is limited to the 0.66 meters at least but in my project I need it to be 0.2 meters at most. I connected my kit to the computer via usb cable and I want to check it in Radar Fusion GUI but when I openned the app it says no connection found. When I tried to add manually I can not select the board or anything else.Can anyone help me in this situation? How can I fix that limit problem and GUI problem.
Best regards,
Eray
Show Less