Mercurial > public > ostc4
view wiki/Detailed CPU1-Upper Project.md @ 976:0b81ac558e89 Evo_2_23
Devbugfix UART buffer cleaning:
In the previous version a buffer cleaning function was used which resets the ringbuffer read index. As result the processing of data was stopped until the DMA write comes to the index 0. When reaching it the complete buffer was proceeded including possibly invalid data.
The usage of the cleanbuffer function was replaced by the flush buffer function (meaning the data is discarded but the data index is maintained). There was already a function for this. Because the function was 99% the same as the read function, it was integrated into the ReadData function. Calling the function with parameter flush = 1 will result in a buffer flush.
The workaround of the previous revision was updated to only be applied in case a DiveO2 sensor is operated in stand alone mode.
author | Ideenmodellierer |
---|---|
date | Wed, 29 Jan 2025 17:21:20 +0100 (7 weeks ago) |
parents | 5f11787b4f42 |
children |
line wrap: on
line source
# How to Create From Scratch a Project for _CPU1-Upper_ Code # The main CPU (aka. _CPU1 Discovery_) firmware is splitted in two parts: - The proper _CPU1 Discovery_ firmware, with the main code. - The _protected upper memory_ firmware, which is programmed during _OSTC4_ production, and contains (amongst other things) code used to upload and install firmware upgrades. ## Make a specific project ## Follow the same procedure than for [CPU1-Discovery](Detailed CPU1-Discovery Project.md), (same processor, same includes) but include the `CPU1-Upper` source directory. ** NOT FINISHED YET... BE PATIENT **