XMC™ Forum Discussions
Dear All,
I use the DAVE ide v4 with the nano library, calling the SPI-MASTER-EnableSlaveSelectSignal() and SPI-MASTER-DisableSlaveSelectSignal() functions cannot raise or lower the CS pin of SPI. However, when sending data through SPI, when using an oscilloscope to check the status of SCL and MOSI pins, they generate waveforms that are normal, but the CS pin remains in a high level state.
Configure this CS pin as an IO port, manually pull up or down the CS pin, but use the BUSY flag in the TBUF register as the completion of sending. When pulling up the CS pin, there will be a situation where there is still one byte that has not been sent, but the CS pin has been pulled up.
What may be the reason why the two API functions generated by calling cannot control the CS pin state; How can I avoid manually raising or lowering the CS pin when there is still one byte of data not sent?
Thanks.
Show LessHello,
I am trying to flash littlefs filesystem on thze qspi external serial flash memory in XMC7100 V1.1.
As I see library mtb-littlefs is not included in the XMC7100 kit.
- If I download any one of the PSoC6 kit and add the mtb-littlefs lirary to my project for XMC7100 v1.1 board build and run, Will it work?
- How do I mount the Littlefs to the external serial nor flash attached through qspi to the board ?
- I have limitation in using shread git repo therefore I have a local content storage added.
These are the errors when I try to add the PSoC6 library throught BSP Assistant:
Log file(s) for this session are stored at: C:\Users\Prasad\AppData\Local\Temp\Logs373088102786112282
Opening project creator from C:/Users/Prasad/ModusToolbox/tools_3.2/project-creator/project-creator.exe
Project Creator Status:
Project: littlefs
Location: C:/Users/Prasad/mtw/littlefsqspi/littlefs
Status: failed
Messages:
[1]: Could not fetch asset: 'recipe-make-cat1a' with ID: 'mtb://recipe-make-cat1a#mtb://recipe-make-cat1a', this asset does not exist in the manifest database. Check if your manifest XML files provide correct entry for the 'recipe-make-cat1a' asset
Could someone help me with another littlefs wrapper for the littlefs filesystem for XMC7100 kit?
best regard,
PrasadA
Show Less
Hello,
I am trying to use MULTICAN with XMC4700 Relax Kit, But i am unable to transmit data over it. I have attached my project below -
Please check my code and help me out with solution.
I am design a new application where XMC4800 is used as EtherCAT slave with PMSM FOC.
I started with EtherCAT slave stack demo for XMC4800 and I added PMSM FOC app.
I successfully control the PMSM motor in openloop, just rotating the vector in current mode. The slave stack code runs wihtout problem with TwinCAT.
Unfortunately, when I tried to use the speed loop control with Motorlib calls, the XMC has probably problem with interrupt.
I have a general questions:
1) XMC4800 hardware is able to manage EtherCAT slave and PMSM FOC at the same time ?
2) There is some example with this configuration available ?
3) There are something to configure to avoid problem with Interrupt. I used analog input to capture SIN/COS encoder, motor current, dc bus currents, etc...
Let me know
Regards
Ing. Marco Gavesi
NilLAB GmbH
Show LessHello Infineon,
My project requires using the SMIF (Octal SPI) to transfer from external flash memory into XMC7200 internal RAM through P-DMA.
Based on the 1-D definition of P-DMA in the XMC7200, the maximum transfer size is dependent on the "X_COUNT",
Where "X_COUNT" have a maximum of 256 iterations,
Which equals a maximum of 256*1 Bytes = 256 B of data transferred every P-DMA transfer, assuming 8-bit data element each transfer.
1. Is there a maximum sequential P-DMA transfer constraint that we should be aware through this approach (SMIF (Octal SPI) to Internal RAM through P-DMA)?
2. If I have 16kB (64 sets of 256 B) of total data to be transferred through P-DMA, is there any easy way to automate and chain this 64 sets of transfer together without the microcontroller being involved after P-DMA transfer have started?
3. Or must the microcontroller be involved after each 256B of data transferred through every P-DMA transfer?
4. If so, is the overhead time spent between each P-DMA reprogramming and triggering significant or in the microsecond order of magnitude?
Show Less
Hello
Can we allocate 2 nodes on MULTICAN_CONFIG_0, and operate all message objects of both the nodes using only one CAN_Rx and CAN_Tx through transceiver??
Hi,
Looking at the latest ModusToolBox 3.2 I couldn't find an Ethercat Example for the board KIT_XMC48_RLX_ECAT_V2.1, is there any plan to port the Dave example to MTB as well?
Best Regards,
Marcelo Macedo - FAE at Neutronics
Show LessI am running bldc motor with the help of hall sensor but not able to get full no load speed.This motor has 1000 rpm but getting only upto 3500 rpm.
I am using example code to drive this motor whether this code support 10000 rmp.
My motor is working at 48v,750 W.Could you help to resolve this problem
Show LessHello,
Now I can use one TIMER to set one time interval and trigger one event as shown in the picture below.
And project is also attached.
Is it possible that I only use one timer to trigger different event according to different time interval?
Thanks!
BR,
Lila
Show Less