TRAVEO™ T2G Forum Discussions
Hi
I'm using CYT4BF.
I had a problem while using SPI DMA, and I confirmed that it was working normally after disabling DCache.
And I was able to confirm that DCache was disabled in the SDL DMA Example.
(SDL_8.0.0/tviibh8m/examples/dma/pdma/dw_with_scb_uart/main_cm7_0.c)
Q1. What is the impact of using DCache when using DMA?
Q2. Could you please tell me in more detail why DCache needs to be Disabled when using DMA?
Q3. Does disabling DCache (or ICache) affect ITCM and DTCM?
(I think it will affect Flash and SRAM, but I don't think it will affect ITCM or DTCM.)
Best & regards
Thank you.
taegyunahn.
Show LessHi, We are getting the SPI status busy API "Driver_SPI.GetStatus(SpiDrvDSRC);"for infinite loop, while we are sending command. This is sporadic issue and we are not identifying the root cause of this issue. Please help to resolve this issue. Thanks
Show Less#TC39XB Description of the problem:
The section I set is a const type,
1. Set up a section, then add objects to this section,
#define XXX_INFO __attribute__ (used, protect)) __attribute__ (section (" info_table "))) const struct_info
Changes in the link script:
# if LCF_DEFAULT_HOST == LCF_CPU0
group (ordered, run_addr=mem:pfls0)
# endif
{
select " .text.fast.pfls.cpu0 ";
select " .text.slow.pfls.cpu0 ";
select " .text.5ms.pfls.cp0 ";
select " .text.10ms.pfls.cp0 ";
select " .text.callout.pfls.cpu0 ";
select " (.text|.text.*) ";
select " info_table ";
}
There are multiple object instances in the program, then _lc_ub_driver_table and _lc_ue_driver_table are used to obtain addresses;
As a result, these two quantities can only frame the range of the first member object;
2. If you modify the linked file, put the section in a separate group
# if LCF_DEFAULT_HOST == LCF_CPU0
group (ordered, run_addr=mem:pfls0)
# endif
{
select " driver_table ";
}
There are multiple object instances in the program, then _lc_gb_driver_table and _lc_ge_driver_table are used to obtain addresses; the range is normal at this point;
However, when there are multiple sections in my program, all stored according to this method, the contents of the sections will be interlaced, and the addresses may not be continuous, and they may be mixed with other parts of the code;
Questions:
1. Why isn't the section organized according to standard grammar? What about inconsistent performance in different situations?
2. Does it have anything to do with my storage in Flash?
3. Is there an introduction to the syntax of lsl link files?
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/section%E4%B8%8D%E8%BF%9E%E7%BB%AD%E9%97%AE%E9%A2%98-ADS%E6%88%96%E8%80%85tasking%E8%BD%AF%E4%BB%B6/td-p/680108
Show LessHello, everyone.
I want to use SCB Uart's Baudrate set to 2M.
And I have questions like this.
1. When I use CTX/RTX Port, Is there a case where it needs to be controlled except when setting it up?
2. In this case, should I set the OVS value to 20 and the Divider value to 2?(Peripheral Clock is 80 MHz.)
3. In this case, how do I calculate the error rate?
When I use Fractional Divider, there is a difference between the target baudrate and the real baudrate, so we calculated it as follows.
(Target Baudrate - Real Baudrate)/Target Baudrate * 100
However, if it is 2M, the target Baudrate and Real Baudrate match, so the error rate is zero.
Show LessThe chip I am currently using is CYT2B75BADQ0AZEGS. Now I want to know the difference in the time it takes to read, erase, and write to Work Flash and Code Flash of the same size. I consulted the data sheet for the chip. But only find above the instructions for the time it takes to chip erase and write. I know the chip has two cores. Different kernels access Flash in different ways.
I would like to ask you some questions:
(1) I want to know the difference in the time it takes to read, erase, and write to Work Flash and Code Flash of the same size. (2)I also want to know what the assembly Code looks like when erasing, writing, and reading Work Flash and Code Flash.
Show LessThe CANFD driver is provided in the TRAVEO T2G Sample Driver Library files. Is there also a Classic CAN driver files?
T2G_Sample_Driver_Library_7.8.0\common\src\drivers\canfd
- cy_canfd.c
- cy_canfd.h
Dears.
Now I use event generator in CYT2B98CAS with evaluation board of CYTVII-B-E-176-SO.
Event generator operation is working well. Whenever event generator triggers interrupt like 20ms, it enables output gpio pulse. (No problem)
However, strange thing is that if I hook up the T32 debugger to this EVB and evoke software FW like run time debugging,
Interval interrupt time of event generator is more extended like it triggers event generator interrupt every 50ms.
Could you tell me why it happened inside of it?
Software environment is as the following.
Used SDL version : SDL 7.9.0
Reference Code : T2G_Sample_Driver_Library_7.9.0\tviibe2m\src\examples\evtgen\dpslp_wakeup
Main clock : IMO
DeepSleep Event Generator Interval : 20ms
Best regards,
Kevin Han.
Show Less