Giter Club home page Giter Club logo

Comments (11)

LorenzMeier avatar LorenzMeier commented on July 26, 2024

Hi,
Rather than going for the EEPROM, I suggest using the flash:
https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/config/flash_storage.c
https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/config/config.c

@pavel-kirienko Could you maybe provide some additional guidance? @dominiho This is the flash based param storage I was referring to.

from px4-flow.

andre-nguyen avatar andre-nguyen commented on July 26, 2024

I think you meant to tag @pavel-kirienko.

from px4-flow.

LorenzMeier avatar LorenzMeier commented on July 26, 2024

Thanks, indeed!

from px4-flow.

pavel-kirienko avatar pavel-kirienko commented on July 26, 2024

It's quite easy. Add the files to the project and make sure this condition handles your MCU correctly.

Then use it like that:

from px4-flow.

andre-nguyen avatar andre-nguyen commented on July 26, 2024

Cool, I'll see what I can do. Hopefully this isn't too critical and I can take my time on this.

from px4-flow.

andre-nguyen avatar andre-nguyen commented on July 26, 2024

Just to be sure I'm going down the right path with this. So the px4esc uses ChibiOS so I can't just shove those files into the px4flow code as is. But I should be able to implement a similar structure using the functions defined in https://github.com/PX4/Flow/blob/master/lib/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx_flash.h is this correct?

from px4-flow.

pavel-kirienko avatar pavel-kirienko commented on July 26, 2024

Yes, you'll need to replace the calls specific to ChibiOS, which is easy to do. I think you only need to replace these:

  • chMtxInit() - inits a mutex (can be removed if thread safety is not required)
  • chMtxLock() - locks a mutex
  • chMtxUnlock() - unlocks a mutex
  • chSysLock() - disables IRQ
  • chSysUnock() - enables IRQ

But I should be able to implement a similar structure using the functions defined in https://github.com/PX4/Flow/blob/master/lib/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx_flash.h is this correct?

I highly recommend you to stay away from STM32's SPL, it's virtually unusable. You can use https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/config/flash_storage.c if you provide needed register definitions, like https://github.com/ChibiOS/ChibiOS-RT/blob/stable_2.6.x/os/hal/platforms/STM32F1xx/stm32f10x.h#L916.

from px4-flow.

LorenzMeier avatar LorenzMeier commented on July 26, 2024

@andre-nguyen Any news on this? 8). Seems like a popular feature request.

from px4-flow.

andre-nguyen avatar andre-nguyen commented on July 26, 2024

Sadly no :(
So busy with the start of the school year with all the funding reports I have to write and the recruitment of new team members. It's still in the pipeline though since were investigating the possibility setting up a project for someone to attempt to fuse two optical flows. I can also say that there won't be progress for probably the next 2 weeks.

from px4-flow.

angelsantamaria avatar angelsantamaria commented on July 26, 2024

Hi guys,
I was dealing with the same problem, and finally in my case I changed the firmware with the parameters that I want and I flashed the sensor with the bootloader (i.e. in the "settings.c" file). In my case, it works because I don't need to change too much those parameters once set.

from px4-flow.

LorenzMeier avatar LorenzMeier commented on July 26, 2024

@jgoppert In case you're tired resetting parameters all the time - could be actually quite quick.

from px4-flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.