Skip to content
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

Kakute F7 - Not saving params #13752

Closed
sevet opened this issue Dec 16, 2019 · 10 comments
Closed

Kakute F7 - Not saving params #13752

sevet opened this issue Dec 16, 2019 · 10 comments

Comments

@sevet
Copy link

sevet commented Dec 16, 2019

Describe the bug
Any change to config is not restored after power cycle or reboot

To Reproduce

  1. connect with qground control
  2. make a config change like "sys_has_mag"
  3. save & reboot
  4. power on and see change was not saved.

Log Files and Screenshots
Always provide a link to the flight log file:
from console:
nsh>
nsh> ERROR [parameters] param auto save failed (-27)

@julianoes julianoes added the bug label Dec 16, 2019
@bkueng
Copy link
Member

bkueng commented Dec 17, 2019

Can you flash master and check the output of dmesg?

@sevet
Copy link
Author

sevet commented Dec 17, 2019

Out put from a fresh build from today's master:

nsh> ERROR [parameters] param auto save failed (-27)
ERROR [parameters] param auto save failed (-27)

nsh>
nsh>
nsh>
nsh>
nsh>
nsh>
nsh>
nsh> dmesg
sercon: Registering CDC/ACM serial driver
sercon: Successfully registered the CDC/ACM serial driver
HW arch: HOLYBRO_KAKUTEF7
FW git-hash: 7abadab
FW version: 1.11.0 80 (17498240)
FW git-branch: master
OS: NuttX
OS version: Release 8.2.0 (134349055)
OS git-hash: 9331fda0d7f7220de33982e8a641c671b1f09c8e
Build datetime: Dec 17 2019 08:40:18
Build uri: localhost
Toolchain: GNU GCC, 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
PX4GUID: 000200000000363636313036510c00350037
MCU: STM32F74xxx, rev. Z
ERROR [param] importing failed (-1)
INFO [tune_control] Publishing standard tune 1
Board defaults: /etc/init.d/rc.board_defaults
SYS_AUTOSTART: curr: 0 -> new: 4050
SYS_MC_EST_GROUP: curr: 2 -> new: 3
ATT_ACC_COMP: curr: 1 -> new: 0
ATT_W_ACC: curr: 0.2000 -> new: 0.4000
ATT_W_GYRO_BIAS: curr: 0.1000 -> new: 0.0000
SYS_HAS_MAG: curr: 1 -> new: 0
CBRK_BUZZER: curr: 0 -> new: 782090
INFO [dataman] Unknown restart, data manager file '/fs/microsd/dataman' size is 362560 bytes
ERROR [param] Parameter LIGHT_EN_BLINKM not found
NAV_ACC_RAD: curr: 10.0000 -> new: 2.0000
RTL_RETURN_ALT: curr: 60.0000 -> new: 30.0000
RTL_DESCEND_ALT: curr: 30.0000 -> new: 10.0000
RTL_LAND_DELAY: curr: -1.0000 -> new: 0.0000
PWM_MAX: curr: 2000 -> new: 1950
PWM_MIN: curr: 1000 -> new: 1075
MC_ROLL_P: curr: 6.5000 -> new: 8.0000
MC_ROLLRATE_P: curr: 0.1500 -> new: 0.0800
MC_ROLLRATE_I: curr: 0.2000 -> new: 0.2500
MC_ROLLRATE_D: curr: 0.0030 -> new: 0.0010
MC_PITCH_P: curr: 6.5000 -> new: 8.0000
MC_PITCHRATE_P: curr: 0.1500 -> new: 0.0800
MC_PITCHRATE_I: curr: 0.2000 -> new: 0.2500
MC_PITCHRATE_D: curr: 0.0030 -> new: 0.0010
MC_YAW_P: curr: 2.8000 -> new: 4.0000
MC_ROLLRATE_MAX: curr: 220.0000 -> new: 1600.0000
MC_PITCHRATE_MAX: curr: 220.0000 -> new: 1600.0000
MC_YAWRATE_MAX: curr: 200.0000 -> new: 1000.0000
MPC_MANTHR_MIN: curr: 0.0800 -> new: 0.0000
MPC_MAN_TILT_MAX: curr: 35.0000 -> new: 60.0000
THR_MDL_FAC: curr: 0.0000 -> new: 0.3000
PWM_RATE: curr: 400 -> new: 0
SDLOG_PROFILE: curr: 3 -> new: 19
RC_FLT_CUTOFF: curr: 10.0000 -> new: 0.0000
CBRK_IO_SAFETY: curr: 0 -> new: 22027
Board sensors: /etc/init.d/rc.board_sensors
WARN [mpu6000] no device on bus #3 (SPI4)
MPU6000 on SPI bus 4 at 0 (1000 KHz)
INFO [ist8310] no device on bus 1
WARN [hmc5883] no device on bus 1 (type: 2)
ERROR [hmc5883] bus 2 not started
ERROR [hmc5883] bus 2 not started
QMC5883_I2C on I2C bus 1 at 0x0d (bus: 100 KHz, max: 400 KHz)
ERROR [fmu] setting I2C clock failed
ERROR [param] Parameter TRIG_MODE not found
Board extras: /etc/init.d/rc.board_mavlink
INFO [mavlink] mode: Config, data rate: 800000 B/s on /dev/ttyACM0 @ 57600B
Starting Main GPS on /dev/ttyS3
Starting RC Input Driver on /dev/ttyS4
Starting MAVLink on /dev/ttyS0
INFO [mavlink] mode: Normal, data rate: 1200 B/s on /dev/ttyS0 @ 57600B
INFO [init] Mixer: /etc/mixers/quad_x.main.mix on /dev/pwm_output0
ERROR [param] Parameter MNT_MODE_IN not found
Board extras: /etc/init.d/rc.board_extras
INFO [logger] logger started (mode=all)

@bkueng
Copy link
Member

bkueng commented Dec 19, 2019

Can you try these commands?

param reset
param save

@sevet
Copy link
Author

sevet commented Dec 23, 2019

param reset

This seems to stop the error but doesn't seem to save params

@julianoes
Copy link
Contributor

@sevet has this been resolved?

@stale
Copy link

stale bot commented Apr 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Apr 29, 2020
@julianoes
Copy link
Contributor

No response, closing.

@kh4lilo
Copy link

kh4lilo commented Jul 12, 2023

hello, i am having the same issue with the kakute H7, some params just refuse to be saved (PWM rate for example). any news abt this?

@julianoes
Copy link
Contributor

@kh4lilo can you attach your param file and PX4 version? It could be that the PWM param is overwritten by your airframe (SYS_AUTOSTART) choice.

@kh4lilo
Copy link

kh4lilo commented Jul 13, 2023

@julianoes after some debugging and a lot of doc and forum reading, i found out that some params are forced during the init, specifically the rcS and rc.mc_defaults files, i changed what i need here and it works fine, thank you for you reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants