afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

Flash writing bug (receiver calibration values) #63

Closed stenbergd closed 9 years ago

stenbergd commented 9 years ago

There seems to be some problem with writing to flash.

The program goes to Hard Fault shortly after flash has been written with new calibration values.

Inverstigate further.

Writing to flash causes CPU to stall. Perhaps flash-writing code can be run from RAM?

stenbergd commented 9 years ago

Fixed. Needed to reset a flash bit after page erase. Also allocated tmpPage (large flash page array) in data section (static declaration) to avoid overflow of thread RTOS stack space.