Quantcast
Channel: Infineon Forums
Viewing all 9892 articles
Browse latest View live

flashing SAL-XC866L-4FRA 3V via Miniwigglerv3

$
0
0
Hello Everybody,

We have an XC866-Controller (SAL-XC866L-4FRA 3V to be precise) in our system as a safety controller. To flash this device our plan is to use the MiniWiggler3 which is connected to our board via JTAG.

So far so good, however, I did not manage to connect the MiniWiggler to the XC866 device. I tried it in two ways:
- Using Memtool 4.7.2
- Using FLOAD 5.4

Unfortunately none of my tries was successful and so I hope you can give me some support.

When I installed the Memtool, also the UDAS-tooling was installed and I tried out the DAS tools coming with it.
Using the DAS Server Control and the DAS Device Scanner, I managed to detect a Controller of "XC800 Family" and the device ID 0x10100083 was read out. --> Obviously, the JTAG connection to the controller can be established somehow and works fine.

In FLOAD I was able to select the XC866L-4 controller type and select the access port to be UDAS. So this looked promising, but when clicking the "connect" button, I only received some odd error message stating that no connection could be established. I did not find any logfile with further details.

In Memtool it was even worse: I used the "new target" wizard to create a new configuration. There I could select the XC866-4 device (without the "L"). However, when clicking on setup, the only interface offered by Memtool is some serial COM port and no JTAG connection. --> No chance to connect.

So my questions:
- Is the programming of the SAL-XC866L-4FRA 3V via MiniWiggler/JTAG supported by IFX at all?
- Are there other tools available to flash this particular device?
- Is there a PDF-documentation on Memtool available?
- Is it possible to extend the device list offerd by Memtool with custom config files? Where are those predefined configs stored?
- Is there anybody in IFX who would be available for some interactive session to guide us through the procedure of firstly flashing our devices?

As you can see, we are pretty stuck for the moment, so any help is very much appreciated.

Cheers,
Felix

In-Application Flash Programming

$
0
0
Hello all,

I need to store data in the D-Flash Memory portion (0xF000 - OxFFFF) in the XC878. I am using the the Flash program subroutine located in the address 0xDFF6.

The datasheet states that we must setup DPTR0 with the start address of the flash programming location, DPTR1 with the XRAM start address containing Flash data to be programmed, R1 with Number of bytes to be programmed and EA=0.
So, I have came up with the following solution. But it's not working. (copying 0x20 bytes).

Code:

#define        RESERVED_DFLASH_PAGES                        9

#define        RESERVED_FLASH                                        288


code const ubyte dflash[RESERVED_FLASH] _at_ 0xF000;

xdata volatile ubyte flashBuffer[RESERVED_FLASH];

EA = 0;

                #pragma asm
                mov                        r1, #20H
                mov                        EO, #00H
                mov DPTR, #dflash
                MOV      MEX2, #0x02
                mov                        EO, #01H
                mov                DPTR, #flashBuffer               
                #pragma endasm
               
                ((void(code *)(void))0xDFF6)();
               
                EO = 0x00;
       
        EA = 1;

Have someone already done this ?

How should I implement

$
0
0
Unfortunately, eleclearner also encountered similar problems but can not find a solution.

quadrature encoder, POSIF and Simulink Package

$
0
0
You should use the POSIF and CCU4 block. In the current version there is no example to show this interaction.

Maybe you can look at the POSIF application note and try to apply the described connections with the Simulink blocks. The app note can be found here: http://www.infineon.com/dgdl/Infineo...4ed938a6a7311f.

XMC Phase - Shifted Carrier Set up

$
0
0
Hi paulDBone,

are you sure that the timer is stopped before you write to the TIMER register?

Reference Manual:

Timer Value
This field contains the actual value of the timer. A write access is only possible when the timer is stopped.

You can also check the Slice status run bit: TRB (CC8yTCST)

Regards
Eric

XMC4400 CCU8 P2.9 cannot be used as direct pwm output pin

$
0
0
yes i tried it with dave4 but it didn't work either

Position of DPS310 pressure sensor - Widefield vs Larix

Welcome to the Multicopter-Forum


Integration of copter.rocks sources 2016 on GitHub

$
0
0
Hi,

without deciding what to to right away, which options do we have of combining our source code branches on GitHub?

Variant A: (better overview on GitHub)
https://github.com/ManagementCenterInnsbruck
rename "copter.rocks" to "copter.rocks MAIN"
add "copter.rocks FH Technikum"
add "copter.rocks TU Ilmenau" (Odroid)
add "copter.rocks FH Joanneum" (Dave 3)
The variants could be deleted once merged into the "copter.rocks MAIN" repo?

Variant B: (better control authors)
distributed GitHub sources with one overview page on e.g. copter.rocks

Ideas?

Rafael

How to start building your own customised PCB with XC866 microcontroller

$
0
0
Dear Friends,

Could someone please give some pointers on how to start building your own customised PCB.

My first question is which pins get 5 V supply and which pins get GND.

Is the AGND and DGND the same and from where do I get this ground? Do I just take it to be the mid point of the
secondary of the input supply transformer.

It would be really helpful if you could get back to me quickly.

Thanks a lot.

Shomik C.

ESD protection in high voltage areas

$
0
0
Hi, We are currently setting up an ESD protected area within a cell that manufactures high voltage products. The floor has been isolated from the grounded circuit. To protect the PCBA's from ESD can the operators/Test technicians wear ESD wrist straps with a 1 Meg inline resistor to protect the components when handling the populated printed circuit board. Is there a risk that the operators might get electrocuted if wear the wrist strap to ground if a high voltage event occurs.

Thank you for the input.

arduino and xmc4700

$
0
0
Hi, I hava a XMC4700 relax kit for 5V shields. I know that DAVE and Arduino use diffent linguages.
Is there a way to import Arduino's codes and libreries to my XMC?
Thank you!

Dave and Arduino

$
0
0
Hi, I have a XMC4700 relax kit for 5V shields. I know that DAVE and Arduino use diffent linguages.
Is there a way to import Arduino's codes and libreries to my XMC?
Thank you!

Can't add CAN apps

$
0
0
Hi,

I can't add any CAN app (MULTICAN_CONFIG, CAN_NODE) when the selected processor is 1403_Q040.

Also what is the recommended way to add 2 can node. I've added two CAN_NODE and a MULTICAN_CONFIG but DAVE says: not able to grant your hw resource request. (on 1404_Q064)
Also how to use MULTICAN_CONFIG with external bus (can't select pins in pin mapping perspective)

c167, read SPI eeprom

$
0
0
Quote:

Originally Posted by Zax View Post
up...
bump...

what do you mean by bump... solve the problem if you can

XMC4800 Firmware update

$
0
0
wow. so many solutions. its very fantastic thread.. learning things :)

How can i restore projects in the project explorer

$
0
0
Hi,

I have deleted some projects from the project explorer. They are still in the workspace, how can I reload them?
I have tried import, but those deleted projects are not available for selection.

Modbus TCP

$
0
0
Hello again,
it´s time to have this thread at the top. I still have problems with the RTOS and as far as I can read from the last answers, it could be possible, that the SYSTIMER-app is the problem. But what can I do? Do I have to uninstall the SYSTIMER-app? Change the configuration?

Best regards,
Oliver

I need some help on power Efficiency of Embedded system

$
0
0
Hello!
I am designing an embedded system and met some problems.
I am hoping to achieve maximum power efficiency as the system will be running off of 2x CR1620 batteries. In addition to power efficiency, I would like to keep the BOM as low as possible.
The system consists of 3 primary components
1x 5mm RGB LED
1x PIC16F18325 (5v Processor) or PIC16LF18325 (3.3v Processor).
1x MMA8452q Accelerometer (I2C and 3.3v and as advertised is NOT 5v tolerant)
The LED will consume the vast majority of the power as it will be on whenever the system is in use.
A primary design consideration, the LED's must be AS BRIGHT AS POSSIBLE regardless of consumption, it is the rest of the system that I need to optimize.
My questions are based on these scenarios:
Scenario 1 PIC16F18325 (5v version is able to be powered directly by the 2x CR1620 batteries) 3x BSS138 (N-Channel FET) 1- to power the accelerometer (3.3v) 2- SCL 3- SDA
Scenario 2 PIC16F18325 (5v version is able to be powered directly by the 2x CR1620 batteries) 3x Resistor voltage dividers to power the accelerometer (3.3v), SCL and SDA ****Note,
I'm not even sure if this works******
Scenario 3 Combination of Scenario 1 and 2, maybe use 1x BSS138 for power and 2x voltage dividers for SCL and SDA or 1x voltage divider for power and 2x BSS138 for SCL and SDA
Scenario 4 PIC16LF18325 (3.3v MCU) using a LM3940 to regulate the voltage from 6v to 3.3v (at approx 55%-65% efficiency since its a linear regulator) and connecting everything directly.
So my questions are these: Which of these scenarios will work? (I'm pretty sure 1 and 4 works, but not sure about 2 & 3) Which of these scenarios is the most power efficient? In scenario 4
will the LED have any difference in brightness being driven by 3.3v vs 5v? assuming I adjust the resistor value to drive the RGB LED at 20mA on each channel
Ideally scenario 4 would be the easiest and most reliable way to design the system, but I'm worried about all the loss of power from the linear regulator.
Additionally I am worried the the brightness of the LED would suffer from 3.3v.
Measuring power is hardware dependent: some embedded processors provide internal measurement capabilities; processor manufacturers may also provide “power calculators” which give some power information;
there are a number of power supply controller ICs which provide different forms of power measurement capabilities; some power supply controllers called VRMs (voltage regulator modules) have
these capabilities internal to them to be read over peripheral interfaces; and finally, there is the old-fashioned method of connecting an ammeter in series to the core power supply.
Attachment 2622
Measuring power using an ammeter. The “old-fashioned” method is to measure power via the use of an external power supply connected in series to the positive terminal of an ammeter,
which connects via the negative connector to the DSP device power input, as shown in Figure 13.1.
Any help and advice would be greatly appreciated =) Thanks in advance
Attached Images

Segger rtt app

$
0
0
Hii.
I wanted to use scanf function in dave 4.2.1 . But I was told to use SEGGER RTT APP instead of scanf . I want to know where is SEGGER RTT APP in ADD NEW APP instances. I could not find. If scanf can be used pls tell me how to use it .
Viewing all 9892 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>