infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

Search:

Type: Posts; User: kamikaze

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    9,464

    I've read the book, and my conclusion was that...

    I've read the book, and my conclusion was that it's a good introduction.

    It leaves out some of the more advanced topics that you should eventually master: register paging, constants in flash,...
  2. I guess I should pick up the habit of checking...

    I guess I should pick up the habit of checking this forum more often.

    Any way, no I do not have documentation. This is a reverse engineering effort.

    The code is written to fail if something...
  3. Replies
    1
    Views
    3,033

    I've been using SDCC for the XC878 for a long...

    I've been using SDCC for the XC878 for a long time.

    I run it with the following Parameters:`sdcc -mmcs51 --xram-loc 0xF000 --xram-size 3072`

    The important part is to add some custom startup...
  4. Did you try: const char * const data_str4 =...

    Did you try:

    const char * const data_str4 = "12345";

    That should be exactly the same as:
    const char data_str4[6] = "12345";

    or:
    const char data_str4[] = "12345";
  5. You're initialising the strings wrong. This:...

    You're initialising the strings wrong.

    This: {"HELLO WORLD\n"};
    Has the following type: const char ** const
    I.e. an array of pointers to const char arrays.

    This:
    char data_str1[] = "HELLO...
  6. Thread: Sqrt function

    by kamikaze
    Replies
    3
    Views
    5,757

    As I said, you just have to select a lower value...

    As I said, you just have to select a lower value for SQRT_ITERATIONS. How low you can go depends on your precision requirements.

    There's no way to get a fast and precise sqrt unless you have a...
  7. Replies
    3
    Views
    17,609

    I think the point of protecting the flash is that...

    I think the point of protecting the flash is that it's non-reversible. I might be wrong, but it doesn't really make sense otherwise.

    Imagine you ship a critical system and you don't want anyone to...
  8. Replies
    7
    Views
    4,719

    Keil supports the XMC 4500 and provides reentrant...

    Keil supports the XMC 4500 and provides reentrant support: http://www.keil.com/dd/chips/infineon/arm.htm
  9. Replies
    1
    Views
    7,514

    Your motion has up to 5 phases, limited by the...

    Your motion has up to 5 phases, limited by the jerk, max acceleration and max speed.

    The 3 phases have the following distance (s) formulae:
    s = v * t
    s = 1/2 a t
    s = 1/6 j t

    You might...
  10. Replies
    7
    Views
    4,719

    For the XC800 you use the keyword reentrant and...

    For the XC800 you use the keyword reentrant and the compiler switches to using stack pushing for that function. It's pretty straightforward and simple:



    void foo() reentrant {

    }

    ...
  11. Thread: Sqrt function

    by kamikaze
    Replies
    3
    Views
    5,757

    You can write your own sqrt function where you...

    You can write your own sqrt function where you have control over the number of iterations.

    It's basically a logarithmic search.



    #define SQRT_ITERATIONS 16

    float sqrt_fast(float const x)...
  12. HSK-Libs on the XC878 driven High Speed Karlsruhe F-108

    The team has released a youtube video of the racing event in Spain:
    https://www.youtube.com/watch?v=yjewsN3VDj8

    The code is running on multiple electronics devices, such as the steering wheel,...
  13. Replies
    1
    Views
    3,954

    I finally followed up on this and checked Master...

    I finally followed up on this and checked Master TX pin with a voltmeter. Here are my results.

    The SSC for SMBus/IC is configured to shift on trailing clock edge and latch on leading edge, with...
  14. Generating C-Code from Vector CANdb++ .dbc files

    I developed a parser for .dbc files that can use a set of templates to output a subset of contained information into arbitrary formats.

    The information it is currently able to output:

    ...
  15. Thread: linux tools?

    by kamikaze
    Replies
    9
    Views
    8,961

    If you use upstream SDCC, use a 3.2.1 or later...

    If you use upstream SDCC, use a 3.2.1 or later (I'm on the 3.3 branch, now) where bug 2045 is fixed:
    https://sourceforge.net/p/sdcc/bugs/2045

    Apart from that you're fine with the parameters:...
  16. What's your sample time? I.e. how long does your...

    What's your sample time? I.e. how long does your measurement take and how much time is between measurements?
  17. Thread: PWM with CCU6

    by kamikaze
    Replies
    4
    Views
    5,715

    STE12 is rh (read and hardware). It can be...

    STE12 is rh (read and hardware). It can be activated by setting the bit T12STR (shadow transfer request), which is what you are doing.
  18. Thread: linux tools?

    by kamikaze
    Replies
    9
    Views
    8,961

    @svein, @putyn Would you be willing to test if I...

    @svein, @putyn Would you be willing to test if I developed a flash tool?
  19. Replies
    1
    Views
    3,954

    SSC TX output in idle state

    I'm trying to implement an IC/SMBus master using SSC.

    I can use SSC_CONL.PO to switch the clock idle from high (no transmission) to low (idle state between bytes).

    I have to do something...
  20. Hmm, I was planning to try that. But so far I'm...

    Hmm, I was planning to try that. But so far I'm only using SSC to shift data into external registers.

    I haven't worked on UART at all, but I suppose it could be anything like start/stop bits,...
  21. Thread: linux tools?

    by kamikaze
    Replies
    9
    Views
    8,961

    Actually the SDCC version provided by Infineon is...

    Actually the SDCC version provided by Infineon is seriously dated. I wouldn't use it, even on Windows. http://sdcc.sf.net

    I'm using VirtualBox to flash devices with code compiled on FreeBSD. The...
  22. Replies
    3
    Views
    5,241

    Are your Protocol, Interface and Target set up...

    Are your Protocol, Interface and Target set up like this?
    http://hsk.sourceforge.net/dev/XC800_FLOAD.png
  23. Use the latest FLOAD, 5.4:...

    Use the latest FLOAD, 5.4:
    http://www.infineon.com/cms/en/product/channel.html?channel=db3a304319c6f18c011a0b54923431e5
  24. Replies
    3
    Views
    5,241

    Did you check whether you're using fload over...

    Did you check whether you're using fload over udas?
  25. Replies
    4
    Views
    6,969

    I'm afraid it's not quite as easy as people make...

    I'm afraid it's not quite as easy as people make it out to be. E.g. the PLL is completely different.
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4
Disclaimer

All content and materials on this site are provided as is. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.