-
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
Adamg/flashdrivertest #90
base: master
Are you sure you want to change the base?
Changes from 7 commits
19613a6
28c17df
76f3d20
364c275
412f88f
a8a259a
c857c1d
a5cbd5b
1382a8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This is an genericBoard board with a single STM32F405RGTx chip | ||
# | ||
# Generated by STM32CubeIDE | ||
# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s) | ||
|
||
source [find interface/stlink-dap.cfg] | ||
|
||
|
||
set WORKAREASIZE 0x8000 | ||
|
||
transport select "dapdirect_swd" | ||
|
||
set CHIPNAME STM32F405RGTx | ||
set BOARDNAME genericBoard | ||
|
||
# Enable debug when in low power modes | ||
set ENABLE_LOW_POWER 1 | ||
|
||
# Stop Watchdog counters when halt | ||
set STOP_WATCHDOG 1 | ||
|
||
# STlink Debug clock frequency | ||
set CLOCK_FREQ 8000 | ||
|
||
# Reset configuration | ||
# use hardware reset, connect under reset | ||
# connect_assert_srst needed if low power mode application running (WFI...) | ||
reset_config srst_only srst_nogate connect_assert_srst | ||
set CONNECT_UNDER_RESET 1 | ||
set CORE_RESET 0 | ||
|
||
# ACCESS PORT NUMBER | ||
set AP_NUM 0 | ||
# GDB PORT | ||
set GDB_PORT 3333 | ||
|
||
|
||
|
||
|
||
|
||
# BCTM CPU variables | ||
|
||
source [find target/stm32f4x.cfg] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ bool Queue::SendToFront(Command& command) | |
if (xQueueSendToFront(rtQueueHandle, &command, DEFAULT_QUEUE_SEND_WAIT_TICKS) == pdPASS) | ||
return true; | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this white space |
||
SOAR_PRINT("Could not send data to front of queue!\n"); | ||
command.Reset(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,8 @@ class SPIFlash : public Flash | |
return true; | ||
} | ||
|
||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this white space |
||
/** | ||
* @brief Read data from flash memory at specified offset | ||
* @param offset offset at which to read data | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -640,6 +640,8 @@ void W25qxx_WriteByte(uint8_t pBuffer, uint32_t WriteAddr_inBytes) | |
#endif | ||
w25qxx.Lock = 0; | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove one line from this whitespace |
||
|
||
//################################################################################################################### | ||
void W25qxx_WritePage(uint8_t *pBuffer, uint32_t Page_Address, uint32_t OffsetInByte, uint32_t NumByteToWrite_up_to_PageSize) | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,7 @@ extern "C" | |
void W25qxx_WritePage(uint8_t *pBuffer, uint32_t Page_Address, uint32_t OffsetInByte, uint32_t NumByteToWrite_up_to_PageSize); | ||
void W25qxx_WriteSector(uint8_t *pBuffer, uint32_t Sector_Address, uint32_t OffsetInByte, uint32_t NumByteToWrite_up_to_SectorSize); | ||
void W25qxx_WriteBlock(uint8_t *pBuffer, uint32_t Block_Address, uint32_t OffsetInByte, uint32_t NumByteToWrite_up_to_BlockSize); | ||
void W25qxx_WritePageScary(uint8_t *pBuffer, uint32_t Page_Address); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change IDE to 4-space tabs, get rid of this function declaration unless it's used somewhere There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the name. Dont have it as Write scary page, unless it means something |
||
|
||
void W25qxx_ReadByte(uint8_t *pBuffer, uint32_t Bytes_Address); | ||
void W25qxx_ReadBytes(uint8_t *pBuffer, uint32_t ReadAddr, uint32_t NumByteToRead); | ||
|
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.
Cleanup empty lines