embetronicx / stm32-bootloader Goto Github PK
View Code? Open in Web Editor NEWSTM32 Custom Bootloader from scratch
STM32 Custom Bootloader from scratch
Unable to see eta_ota_app.exe. please upload the same file
Hi Can you share any source code on how to implement FOTA via Ethernet for STM32 MCU. Currently I am using STM32H743ZI2 based Nucleo-144 Board
Hi i saw a problem in "etx_ota_update.c" file at line 369
ret = HAL_FLASH_Program( FLASH_TYPEPROGRAM_BYTE,
(ETX_APP_FLASH_ADDR + ota_fw_received_size),
data[4+i]
);
The error is the "data[4+i]" part. It should be replaced with "data[i]"
Hi,
I am testing the Bootloader and App.
I have problems with the CRC using UART.
When I send the SOF from the APP, the bootloader gives me error when calculating the CRC.
And the other way around too. If I send the ACK from the Bootloader to the App, the App also gives me an error in the CRC.
Inside Bootloader "etx_receive_chunk( uint8_t *buf, uint16_t max_len )" function:
if( cal_data_crc != rec_data_crc ) { printf("Chunk's CRC mismatch [Cal CRC = 0x%08lX] [Rec CRC = 0x%08lX]\r\n", cal_data_crc, rec_data_crc ); ret = ETX_OTA_EX_ERR; break; }
I get:
cal_data_crc = 0x8B329C8
rec_data_crc =0x4E08BFB4
I am using CubeIDE's hCRC component, but I don't see that anything can be configured this component.
In the other direction, the same thing happens to me...
In function "etx_ota_send_resp( ETX_OTA_ACK );"
The rsp.crc = HAL_CRC_Calculate( &hcrc, (uint32_t*)&rsp.status, 1);
give me the crc=0xc704dd7b
{sof = 170', packet_type = 3, data_len = 1, status = 0, crc = 0xc704dd7b, eof = 187}
In the App I get:
CRC Received: C704DD7B
CRC Calculated: 4E08BFB4
Any idea what the problem might be?
Thank's a lot.
Hi
With your code as reference i successfully built and loaded bootloader and user application binaries for "STM32F411RE" evolution kit.
issue :
Bootloader unable to jump to user application. Below is my goto application function
`static void goto_application(void)
{
printf("Loading Application....\r\n");
void (app_reset_handler)(void) = (void)(((volatile uint32_t) (0x08008000 + 4U)));
__set_MSP((volatile uint32_t) 0x08008000);
// Turn OFF the Green Led to tell the user that Bootloader is not running
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_RESET ); //Green LED OFF
app_reset_handler(); //call the app reset handler
}`
bootloader storage : 0x08000000 to 0x08007800 [30kB]
Application Flash range : 0x08008000 to 0x08018000 [64KB]
Bootloader is going to error handler while running app_reset_handler() function.
Could you please help me out in solving this issue.
Thanks in advance.
Best Regards
khaleel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.