PSoC™ 6 Forum Discussions
text.format{('custom.tabs.no.results')}
To debug a sporadic crash, I want to examine Cy_SysLib_GetResetReason(). However, the main app is running from a bootloader which will clear the reset reason before executing the main app. I guess I can write what the bootloader sees to NV Flash and read from main app. Is that the best way?
Show LessHello everyone,
I work on a project on CYBLE-416045-02 module. I have start with demo project to use BLE. For this moment all woked great.
i have create a new task which print a message every 10 secondes.
I program my module all work great, all task initialized, Ble advertisement OK and my new task work great with a message every 10s.
At this moment, activate advertisement and i connect my module and my smartphone application.
After connexion succesfull, all continue to work great.
After this test, i quit my smartphone application and at this moment my new task print none message and i don't see any disconnect message on my console.
Do you have any advice or idea about this problem ?
Thanks,
Best regards,
Max
Show LessDear Support team,
I have add "retarget-io" lib to my project(offline BSP package ) successful base MTB2.4 , and have referenced cy_retarger_io.h in main.c, but it build fail. Could you have any advice? BTW i use "make getlib" command, the result as below .
?
Show Less
I have created a sample project for the CY8CKIT-064S0S2-4343W based on the Empty PSoC6 App template. When running the code, the call to set the system configuration (below) returns a configStatus of CY_PRA_STATUS_ERROR_PROCESSING_CLKLF.
configStatus = CY_PRA_FUNCTION_CALL_RETURN_PARAM(CY_PRA_MSG_TYPE_SYS_CFG_FUNC,
CY_PRA_FUNC_INIT_CYCFG_DEVICE,
&srss_0_clock_0_secureConfig);
if ( configStatus != CY_PRA_STATUS_SUCCESS )
{
cycfg_ClockStartupError(configStatus);
}
Here is the clock configuration:
This does not happen when running the aws_demos so I am sure it is something in my configuration but I can't seem to figure out what I am doing wrong. The return status to code only appears in Cy_PRA_ClkLfInit() in cy_pra_cfg.c but I never see this function get called by the M4.
Any ideas??
Hi,
I am using CYPROTO-060-4343w Evaluation board. I want to initialize capsense on CM0+ core and use it. When I initialize capsense on CM4 core, it works fine but for CM0+ it fails. I tried to debug and found out it fails at Cy_CapSense_SsAutoTune_Call(context); function during initialization. It returns value of 0x11.
I dont understand why does this happen. Same code works on one core and doesnt on other core. There is an option in Device Configurator to choose core for capsense, I selected CM0+, I have followed all the steps mentioned in AN215656 document to build dual core environment.
attaching project and configuration for reference.
Show LessHi,
I am using the psoc 6 dev board to stream timestamped data over ble at frequencies between 100hz - 1khz using notifications. The data is being received by a windows pc. The data is 504 bytes of sensor readings.
I am trying to debug the reason for large spikes in the timestamp data ( 200 ms - 1000ms). These spikes show up at all of the data capture frequencies mentioned above.
I tried out wireshark to sniff the ble data. The points where the spike occurs always has an error message about a wrong "sequence number". I have attached the log message screenshot. What might be going wrong? Any direction would be really helpful !
Show LessI'm getting an INVALID_PARAMETER sending notifications error I cannot explain. It only happens with some apps on an Android device. Other apps on the same device work fine. I've debugged up to the binary and it is being returned by the internal undocumented function: Cy_BLE_GATTS_Notification()
I thought it was related to MTU, but with both apps they report the same data length change.
CY_BLE_EVT_DATA_LENGTH_CHANGE (handl=0 RxO=251 RxT=2120 TxO=251 TxT=2120)
However, the one that works does emit CY_BLE_EVT_GATTS_XCNHG_MTU_REQ with 512, whereas the one that does not work, never sends that.
But the data I am trying to send os only 210 long , so I am at a loss why this error is occuring, and any hope of understanding it is hidden the binary.
Here are the parameters that work and don't work depending on the app that connects.
How can these be parameters be invalid?
Show Less
I am required to work on PSoC for various projects such as motor speed control, digital controller implementation, etc. For this, I need to learn PSoC basics to start with projects such as
-
Generating Waves: Rectangular Pulse, Square wave, Triangle wave, sawtooth, sine, etc
-
ADC: Where we feed a wave (generated from the function generator) to the PSoC and the program should be able to find the i. Peak magnitude ii. Average value iii. RMS value
All these using UART interfaces with Putty where just by pressing a key on the keyboard you should be able to modify the amplitude, frequency, width/time period of the wave (in case of 1.). And should display on Putty the parameters like for e.g " a . The peak amplitude of the supplied wave is: ____ V"
PSoC Kit : CY8CKIT-059 5L
If anyone can help or guide me with coding for these projects please do let me know.
Show Less