-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade packer and send more FF data #201
Conversation
@pkotamnives how did you test this? I thought this required a change in the Zynq FW |
Hi Peter, I first checked the BUTool there was a bug that I just fixed though. I can re-check again. |
yes please, I think we need a new firmware from @dgastler for this to work. Is it possible you were looking at stale values? |
Hi @pwittich and @dgastler, I have reprogrammed mcu with the master cm_mcu.bin. The BUTool |
Thanks for making the changes! I think there might still be some issues; look at the grafana (I fixed the setup so that it shows up again): |
Update on rollover/overwrite issue: We found that it is a bug in Task.h (i.e. ZM_NUM_ENTRIES = 256 ) that prevents higher address than 0xFF to be written and the program also crashed when more entries than 256 are sent or overwrote to the first table otherwise. We also changed the sensor type from uint8_t to uint16_t just to be consistent with the data type. Other bugs and corrections as well as the addition of ff_laser_fault to a list of data sent to Zynq will be merged into this branch from https://github.com/apollo-lhc/cm_mcu/tree/test_packer2rollover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
take a look at these changes
projects/cm_mcu/ZynqMonTask.c
Outdated
#define SENSOR_SIX_BITS 0x3F | ||
#define SENSOR_MESSAGE_START_OF_FRAME_NIB 2 | ||
#define SENSOR_MESSAGE_START_OF_FRAME_NIB_V2 3 | ||
#define RESERVED_DATA 0x9 // 0b1001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw, this just a dummy value. We don't need to put this in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what your suggestion is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean typing them directly to the code?
unify readout into one byte
fix sizes
This PR will close #197
The v2 packer has been implemented, and it is compatible with the current set of data steams. This has been checked on Apollo205, and BUTool
status
looks consistent with what has been shown before.Next step is to send all FF-ch optical power outputs,
ff xmit on
output, and more ff register outputs. Some have also been implemented via CLI. The following list is what missing :ff_cdr_lol
ff_los_alarm