Code Monkey home page Code Monkey logo

stm32-bootloader's People

Contributors

embetronicx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stm32-bootloader's Issues

ETX_Bootloader_2.0 Problem

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]"

CRC error in both directions

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.

FOTA using Ethernet

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

Bootloader unable to jump to application

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

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.