TRAVEO™ T2G Forum Discussions
#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 LessHi
I am using CYT2B9 and CYT4BF series.
I have a question about SAR ADC Vmotor / ADC[x]_M.
I was able to see “One channel is also reserved for motor sensing inputs” in the Architecture TRM-35.SAR ADC.
Q) What is the difference between ADC[x]_M and ADC[x]_y channels for motor sensing input?
(ex. Noise, Compensation, etc...)
Best & regards
taegyunahn
Show LessDear Community,
I would like to toggle the LED 1 (P.19.0) and LED 4 (P12.2) on my board. How I configure, initilaze the ports and pins in the source code?
Does anyone has an example code for blinky LED?
best regards,
Patrick
Show LessI am trying to run T2G_Sample_Driver_Library_7.9.0 using GHS MULTI and CYTVⅡ-B-E-100-SO.
I have a question about the definition of CPU_BOARD_REV in tviibe1m_common.gpj.
In the comments, it says "A, B or C (and so on)", but when I look at the board (CYTVⅡ-B-E-100-SO), the board revision seems to be "REV 2.0".
If I use this board, what value should I set for CPU_BOARD_REV?
Show Less