stm32f107vc | nullUSB2CAN0 for AUTOSAR COM stack study purpose | Change Data Capture library

 by   as-boards C Version: Current License: No License

kandi X-RAY | stm32f107vc Summary

kandi X-RAY | stm32f107vc Summary

stm32f107vc is a C library typically used in Utilities, Change Data Capture applications. stm32f107vc has no bugs, it has no vulnerabilities and it has low support. You can download it from GitLab, GitHub.

stm32f107vc
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              stm32f107vc has a low active ecosystem.
              It has 9 star(s) with 15 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              stm32f107vc has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of stm32f107vc is current.

            kandi-Quality Quality

              stm32f107vc has 0 bugs and 0 code smells.

            kandi-Security Security

              stm32f107vc has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              stm32f107vc code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              stm32f107vc does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              stm32f107vc releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              It has 23 lines of code, 0 functions and 3 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stm32f107vc
            Get all kandi verified functions for this library.

            stm32f107vc Key Features

            No Key Features are available at this moment for stm32f107vc.

            stm32f107vc Examples and Code Snippets

            No Code Snippets are available at this moment for stm32f107vc.

            Community Discussions

            QUESTION

            M95128-W EEPROM. First byte of each page not writing or reading correctly
            Asked 2017-Feb-22 at 07:22

            I am working on a library for controlling the M95128-W EEPROM from an STM32 device. I have the library writing and reading back data however the first byte of each page it not as expected and seems to be fixed at 0x04.

            For example I write 128 bytes across two pages starting at 0x00 address with value 0x80. When read back I get:

            ...

            ANSWER

            Answered 2017-Feb-22 at 07:19

            Caveat: I don't have a definitive solution, just some observations and suggestions [that would be too large for a comment].

            From 6.6: Each time a new data byte is shifted in, the least significant bits of the internal address counter are incremented. If more bytes are sent than will fit up to the end of the page, a condition known as “roll-over” occurs. In case of roll-over, the bytes exceeding the page size are overwritten from location 0 of the same page.

            So, in your write loop code, you do: for (i = 0; i < 64; i++). This is incorrect in the general case if the LSB of address (xlow) is non-zero. You'd need to do something like: for (i = xlow % 64; i < 64; i++)

            In other words, you might be getting the page boundary rollover. But, you mentioned that you're using address 0x0000, so it should work, even with the code as it exists.

            I might remove the print statements from the loop as they could have an effect on the serialization timing.

            I might try this with an incrementing data pattern: (e.g.) 0x01,0x02,0x03,... That way, you could see which byte is rolling over [if any].

            Also, try writing a single page from address zero, and write less than the full page size (i.e. less that 64 bytes) to guarantee that you're not getting rollover.

            Also, from figure 13 [the timing diagram for WRITE], it looks like once you assert chip select, the ROM wants a continuous bit stream clocked precisely, so you may have a race condition where you're not providing the data at precisely the clock edge(s) needed. You may want to use the logic analyzer to verify that the data appears exactly in sync with clock edge as required (i.e. at clock rising edge)

            As you've probably already noticed, offset 0 and offset 64 are getting the 0x04. So, this adds to the notion of rollover.

            Or, it could be that the first data byte of each page is being written "late" and the 0x04 is a result of that.

            I don't know if your output port has a SILO so you can send data as in a traditional serial I/O port or do you have to maintain precise bit-for-bit timing (which I presume the _spi->transfer would do)

            Another thing to try is to write a shorter pattern (e.g. 10 bytes) starting at a non-zero address (e.g. xhigh = 0; xlow = 4) and the incrementing pattern and see how things change.

            UPDATE:

            From your update, it appears to be the first byte of each page [obviously].

            From the exploded view of the timing, I notice SCLK is not strictly uniform. The pulse width is slightly erratic. Since the write data is sampled on the clock rising edge, this shouldn't matter. But, I wonder where this comes from. That is, is SCLK asserted/deasserted by the software (i.e. transfer) and SCLK is connected to another GPIO pin? I'd be interested in seeing the source for the transfer function [or a disassembly].

            I've just looked up SPI here: https://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus and it answers my own question.

            From that, here is a sample transfer function:

            Source https://stackoverflow.com/questions/42374453

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install stm32f107vc

            You can download it from GitLab, GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/as-boards/stm32f107vc.git

          • CLI

            gh repo clone as-boards/stm32f107vc

          • sshUrl

            git@github.com:as-boards/stm32f107vc.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Change Data Capture Libraries

            debezium

            by debezium

            libusb

            by libusb

            tinyusb

            by hathach

            bottledwater-pg

            by confluentinc

            WHID

            by whid-injector

            Try Top Libraries by as-boards

            mc9s12xep100

            by as-boardsC

            mpc56xx

            by as-boardsC++