PSoC™ 6 Forum Discussions
Dears
When I upgrade project using Libraries mtb-hal-cat1 from 1.6.0 to newer 2.X. I have several problems. Maybe I am doing something in wrong way... when updating libs.
For example on this project https://github.com/Infineon/mtb-example-psoc6-usb-audio-device-freertos
void audio_app_clock_init(void)
{
/* Initialize the PLL */
cyhal_clock_get(&pll_clock, &CYHAL_CLOCK_PLL[0]);
cyhal_clock_init(&pll_clock);
/* Get the reset USB clock */
cyhal_clock_get(&usb_rst_clock, &CYBSP_USB_CLK_DIV_obj);
}
passing argument 2 of 'cyhal_clock_get' from incompatible pointer type [-Wincompatible-pointer-types]
I tried investigate what is wrong in "mtb-hal-cat1" library
cyhal_clock.h
1.6.0
extern const cyhal_resource_inst_t CYHAL_CLOCK_PLL[SRSS_NUM_PLL];
> = 2.0.1
extern const cyhal_clock_t CYHAL_CLOCK_PLL[_CYHAL_SRSS_NUM_PLL];
And Structure cyha_clock_t has deprecated two elements:
cy_en_divider_types_t div_type; /*!< Deprecated */
uint8_t div_num; /*!< Deprecated */
But in corespondent C source code cyhal_clock.c the function cyhal_clock_get, is still defined with 2nd parameter as type "cyhal_resource_inst_t" used in 1.6.0 version
cy_rslt_t cyhal_clock_get(cyhal_clock_t *clock, const cyhal_resource_inst_t *resource)
How to correct this situation ? I can create own structures as workaround. But I don't wont to modify shared libraries... (to still have possible update in feature)
And for last are there any releases notes for each revision of specific library ? It is a bit of detective study to see what changed.
Radim
Show LessI'm using Modus Toolbox 2.1, my target is a PSOC 6 MUC CY8C6XXA and I am using pyOCD v. 0.29.0 for programming and debugging. I get the following error / console message during programming:
0002572:ERROR:gdbserver:Exception while executing remote command 'reset init': unexpected value for reset_type option ('init')
Traceback (most recent call last):
File "c:\python27\lib\site-packages\pyocd\gdbserver\gdbserver.py", line 1017, in handle_remote_command
self._command_context.process_command_line(cmd)
File "c:\python27\lib\site-packages\pyocd\commands\execution_context.py", line 300, in process_command_line
invoc.handler(invoc)
File "c:\python27\lib\site-packages\pyocd\commands\execution_context.py", line 369, in execute_command
cmd_object.parse(invocation.args)
File "c:\python27\lib\site-packages\pyocd\commands\commands.py", line 350, in parse
self.reset_type = convert_reset_type(args[0])
File "c:\python27\lib\site-packages\pyocd\utility\cmdline.py", line 143, in convert_reset_type
raise ValueError("unexpected value for reset_type option ('%s')" % value)
ValueError: unexpected value for reset_type option ('init')
The programming continues and then gives an error messages (see attached image)
I have had the same setup working before, but my company charged domain, so had to redo the entire installation again.
Any help is highly appreciated.
Thanks
Show Less
Hello,
Does anyone have a MTB PSoC6 BLE example running in Dual-Core mode that doesn't use FreeRTOS? Or, is that the only way to use both cores?
I've been trying to piece together an application using the Dual Core Design Guide and the BLE Middleware Library, without any luck.
https://infineon.github.io/bless/ble_api_reference_manual/html/page_ble_quick_start.html
Any help would be greatly appreciated.
-Dave
Show LessDears,
I have issues with starting Debug sessions using KitProg3 or MiniProg4 even when I restart IDE (Modus Toolbox)
I just read all manuals, KB. and all suggested things did not help me.
Only restarting IDE, but often it doesn't help... What I have found is only I have to try cyclic ... open "Debug configuration", then try to start debug, if it does not help then Restart whole IDE ... (sometimes it works but sometimes not working...)
Does anybody have similar issues ?
Regards
Radim
Show LessGood morning:
I am trying to make some very initial getting started on wifi subjects and I have selected Wi-FI Scan as my "hello world wifi". I installed Modus toolbox, and I am playing with a -062-4343w board. If you think there is a more initial exercise, please just let me know to begin with.
I created a new application with the Wi-fi scan, and I am reading the WI-FI Scan README.md.
Instructions on the document uses Tera Term but I use Putty. Reference on the text shown 8N1 and 115200 bauds. Is 8N1 something just related to Tera?. I can not see any relation on this parameter to Putty. Could you help me on this?. On other points for Putty are understood (serial line connected to the PC port as COMXX, ...).
1/ I connect the board the the PC, OK.
2/ I do not realy understand if I have to change scan_task.h or just leave it as it is. Please let me know. I a assuming that the file keeps unmodified. This is a first trial, so I just want to see "Something" scanned on the console window.
3/ I open the Putty terminal as defoned above.
Using Eclipse IDE
1/ I select the application, OK
2/ Quick panel,...and download the code to the board.
The PC console shows:
****************
CE230270 - Wi-Fi Scan
****************
and the Debub windows in MTB shows: Thread #11 1 (Name:Current Execution)(Suspended : Breakpoint)
so it seems that the sw is not scaning and apparently sttopped because discovered an error.
Last line on Preview vindow in MTB shows ===== Cortex-M DWT registers
Could you please provide me some help on this?
Thanks in advance
Show Less
1/ I am following the "Using the code example" description at https://github.com/Infineon/mtb-example-anycloud-wifi-scan. After selecting the kit -062-4343W , select the Wifi Scan application tick and apply Create, the following message appears:
fatal: unable to access 'https://github.com/cypresssemiconductorco/mtb-example-anycloud-wifi-scan/': Failed to connect to github.com port 443 after 1083 ms: Connection refused.
Could you please tell how to proceed to load the example code and follow this example?.
2/ I have also accessed to:
https://github.com/cypresssemiconductorco/mtb-example-anycloud-wifi-scan/ and download the ZIP code, but then I do not know how to load the project on MODUS Tool BOX with the unzipped folders. If this way is a solution to the github access defined on 1/, please let me know how to proceed.
Thanks in advance.
Show Less
Dear Cypress Customer service,
Good morning. I'm developing an application for the aforementioned PSoC 6 board, and I need to include a OTA update. Right now, the project makes use of both CPUs of the board (CM0 as well as CM4). I know the CM0 is intended for security uses and encryption, but I need it to do some other things for my project. In this regard, a OTA update should update not only the CM4 's firmware, but also the CM0 CPU.
My question is: is this permitted by the board and the APIs ? If so, my intention would be to set up a HTTPS server to distribute the firmware. How should I set it up to correctly upgrade both CPUs ? Does it mean that I need to distribute 2 different firmwares, one for the CM0 and one for the CM4 ? How should I send the two segments of code ?
Thanks in advance,
Best regards.
Show LessHello
What is the maximum input clock frequency for PWM block in PSOC 61x devices?
With system clock at 150MHz, Peri_Clock at 75MHz, I am only able to get 37.5MHz maximum clock input to the PWM block. Is there a way to get faster clock input?
Thank you
Show LessHello I using Psoc6 Pioneer Kit and I'm using the
"SCB_UART_Transmit_and_Recieve_using_DMA" example to implement DMA.
In the example, the buffer size is set to 1, and it is sent as soon as it receives 1 Byte.
I want to collect several Bytes and receive them at once, not one at a time.
Additionally, I would like to send an array with multiple bytes at once through DMA.
Is there a way?
Thankyou for your reply.
Show Less