METHOD AND DEVICE FOR THE INITIAL PROGRAMMING OF A SECONDARY COMPUTER

Information

  • Patent Application
  • 20200226092
  • Publication Number
    20200226092
  • Date Filed
    June 11, 2018
    6 years ago
  • Date Published
    July 16, 2020
    4 years ago
Abstract
A method (10) for the initial programming of a secondary computer (22), characterized by the following features: —a serial interprocessor interface (21) between the secondary computer (22) and a main computer (23) is configured, and —the data (24) are written (12) via the interface (21) to a flash memory (25) of the secondary computer (22).
Description
FIELD

The present invention relates to a method for the initial programming of a secondary computer. In addition, the present invention relates to a corresponding device, a corresponding computer program, and a corresponding storage medium.


BACKGROUND INFORMATION

In digital and automation technology, any semiconductor module that contains a processor and peripheral functions is referred to as a microcontroller (pController, pC, MCU). Microcontrollers known in the existing art sometimes have flash electrically erasable programmable read-only memories, or flash EEPROMs. In addition, control devices (electronic control units, or ECUs) are known that have a plurality of microcontrollers configured as master computers and slave computers.


German Patent Application No. DE 102007051657A1 provides a communication system and a method for operating a communication system, the communication system having a CAN bus and at least two devices coupled via the CAN bus. Such a device has a CAN control unit, an asynchronous, serial communication interface unit, and a switching means. The CAN control unit is suitable for transmitting, in a first transmission mode, CAN data frames via the CAN bus, using a first physical protocol. The asynchronous, serial communication interface unit is suitable for transmitting ASC data frames via the CAN bus, using a second physical protocol, in a second transmission mode. The switching means is set up to change over between the first transmission mode and the second transmission mode as a function of at least one agreement made between the device and at least one additional device.


SUMMARY

The present invention provides an example method for the initial programming of a secondary computer, a corresponding example device, a corresponding example computer program, and a corresponding example storage medium.


In accordance with the present invention, it is recognized that during the booting of a microcontroller in its state as delivered (“virgin device”), the boot loader normally checks a defined address in the flash to find out whether a valid program start address is present. If there is no valid entry, the boot loader receives an asynchronous serial communication (ASC) via CAN or UART in order to receive data via the CAN interface according to the ASC protocol (ASC@CAN). The received data are then programmed to the flash memory.


In addition, the present invention recognizes that in control devices having inadequate performance of one microcontroller, designs are frequently used that have two microcontrollers in a master-slave configuration. In this case, the second pC, configured as slave, can be used as a peripheral expansion, e.g. for inadequate ADC channels, more CAN interfaces, etc. However, the slave can also execute separate programs, and can operate separate connected peripheral modules. The results are then provided to the master, or read out by the master itself. In addition, the slave can be realized as a pluggable board in order to represent different performance classes within a hardware family of control devices, or to offer particular additional features as added value. The two pC are connected via a powerful serial interprocessor interface (SIPI) so that the exchange of data can take place with adequate performance.


A particular feature of this interface is that the master can have write access or read access to every address in the slave as long as no address protection mechanisms are activated. Due to the high transmission speed, the transmit and receive ports are typically set up for the transmission of a low-voltage differential signal (LVDS) in the sense of the standard ANSI/TIA/EIA-644-1995, in order to meet EMC requirements.


According to an example embodiment of the present invention, a new boot mode via the SIP interface is provided. The selection of the boot mode between CAN/UART or SIPI takes place using conventional methods, e.g., with HW configuration spins. During the boot process, the new boot mode is recognized. In order to set up the SIPI function, the pins should be configured to LVDS, and a minimal initialization of the SIPI module (PLL, transmitter, receiver, etc.) should be carried out. The further controlling is later taken over by the master.


An advantage of this solution is the possibility it provides for direct programming of the slave by the master, using the already-connected SIPI interface.


In this way, specific additional hardware, such as a CAN transceiver, for the programming of the slave pC can be done without. As a result, the costs that would arise only for the factory programming of the secondary computer are then not incurred.


Moreover, additional programming points for a needle adapter are no longer necessary. As a result, open spaces on the circuit board can be opened up. The space that thus becomes available can be used to unbundle other circuits. Additional pins for the slave programming at the pC, as used for example in the so-called “ASC@CAN” method via UART, can be done without, because signal conductors that are generally already present are used.


A further advantage results for the production facility, because no special equipment (e.g., a second programming station) is required for the slave programming.


Through the measures described herein, advantageous developments and improvements of the basic present invention are possible.





BRIEF DESCRIPTION OF THE DRAWINGS

Exemplary embodiments of the present invention are shown in the figures and are explained in more detail in the following description.



FIG. 1 shows the flow diagram of a method according to a first specific embodiment.



FIG. 2 schematically shows a control device according to a second specific embodiment.





DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS


FIG. 1 shows the basic sequence of a method (10) according to the present invention, whose steps are explained in more detail below on the basis of the control device (20) according to FIG. 2.


During the boot process of the secondary computer (22), the boot loader checks a defined address of its flash memory (25) for the presence of a valid program start address. If no valid entry is found, the boot loader recognizes the SIPI boot mode via the pre-configuration—e.g., external hardware configuration spins—and waits for the data (24) that are to be programmed. So that a reception of data can take place, the SIPI interface (21) is first configured (process 11FIG. 1) during the booting to such an extent that a communication with the main computer (23) can be ensured. For SIPI operation, this includes in particular the initialization of corresponding ports as LVDS input (26), LVDS output (27), and system clock (28). The latter is used either as input clock for the slave SIPI PLL or, instead of a quartz crystal, as input clock for the complete secondary computer (22). In the second case, the clock for the slave SIPI PLL is derived from the system PLL of the secondary computer (22).


The further programming (process 12FIG. 1) of the secondary computer (22) can take place in various ways. For example, the main computer (23) receives the data (24) to be programmed from a programming station, and writes the data directly to the flash memory (25) of the secondary computer (22).


According to an alternative specific embodiment, the main computer (23) first loads a program via the SIPI interface (21) into the RAM of the secondary computer (22). This program is executed, and takes over the programming of the flash memory (25). The programming data (24) are communicated from the programming station to the secondary computer (22) via the main computer (23) and the SIPI interface (21).


The specific software implementation is a function of the programming design, and may be varied without departing from the scope of the present invention.

Claims
  • 1-10. (canceled)
  • 11. A method for an initial programming of a secondary computer with specified data, the method comprising the following steps: configuring a serial interprocessor interface between the secondary computer and a main computer; andwriting the data, via the interface, to a flash memory of the secondary computer.
  • 12. The method as recited in claim 11, wherein the configuring of the interface includes configuring a low-voltage differential signal (LVDS) output, an LVDS input, and a system clock.
  • 13. The method as recited in claim 11, wherein before the writing, the data are communicated to the main computer via a field bus.
  • 14. The method as recited in claim 13, wherein the communication takes place through a driver module for the field bus, having a transmitter and a receiver.
  • 15. The method as recited in claim 11, wherein the data are communicated via programming points on a circuit board that is common to the secondary computer and the main computer.
  • 16. The method as recited in claim 11, wherein the main computer receives the data from a programming station, and the writing is performed by the main computer.
  • 17. The method as recited in claim 11, wherein, via the interface, the main computer loads a program to a direct access memory of the secondary computer and communicates the data to the secondary computer, and wherein the writing performed by the program.
  • 18. A non-transitory machine-readable storage medium on which is stored a computer program for an initial programming of a secondary computer with specified data, the computer program, when executed by a computer, causing the computer to perform the following steps: configuring a serial interprocessor interface between the secondary computer and a main computer; andwriting the data, via the interface, to a flash memory of the secondary computer.
  • 19. A device for an initial programming of a secondary computer with specified data, the device configured to: configure a serial interprocessor interface between the secondary computer and a main computer; andwrite the data, via the interface, to a flash memory of the secondary computer.
Priority Claims (1)
Number Date Country Kind
10 2017 212 252.8 Jul 2017 DE national
PCT Information
Filing Document Filing Date Country Kind
PCT/EP2018/065294 6/11/2018 WO 00