annotate wiki/Detailed CPU1-Upper Project.md @ 682:8775d3dc6325
Betatest
Bugfix low ppO2 warning in bailout mode:
the code has different sources for divesettings (real and simulated). The ppo2 calculation code used the pointer to the real structure. As result in simulation mode an error occured caused by the ppo2 calculation which was not aware that a bailout happened (because the real structure was references instead of the simulator ones). The problem has been fixed by using the "stateUsed" pointer which is refering to the structure currenty in use.
author |
Ideenmodellierer |
date |
Mon, 25 Apr 2022 21:15:01 +0200 |
parents |
5f11787b4f42 |
children |
|
rev |
line source |
38
|
1 # How to Create From Scratch a Project for _CPU1-Upper_ Code #
|
|
2
|
|
3 The main CPU (aka. _CPU1 Discovery_) firmware is splitted in two parts:
|
|
4 - The proper _CPU1 Discovery_ firmware, with the main code.
|
|
5 - The _protected upper memory_ firmware, which is programmed during _OSTC4_ production, and contains (amongst other things) code used to upload and install firmware upgrades.
|
|
6
|
|
7 ## Make a specific project ##
|
|
8
|
|
9 Follow the same procedure than for [CPU1-Discovery](Detailed CPU1-Discovery Project.md), (same processor, same includes) but include the `CPU1-Upper` source directory.
|
|
10
|
|
11 **
|
|
12 NOT FINISHED YET... BE PATIENT
|
|
13 **
|