Recent Posts

Pages: [1] 2 3 ... 10
1
STTM STM32 and STR91XF / Re: STM32 Software Versions
« Last post by mark on November 26, 2020, 01:13:49 AM »
Hi

The binary loading doesn't sound right either. There shouldn't be any such delays - see this video: https://www.youtube.com/watch?v=dq-m-Dokq7E&feature=youtu.be

Regards

Mark
2
STTM STM32 and STR91XF / Re: STM32 Software Versions
« Last post by bob_STM32 on November 25, 2020, 04:40:15 PM »
This problem was immediately. The bootloader only accepts binaries. For some reason HEX and SREC files do not write.
Writing a binary file looks like this: it hangs for a few minutes, then quickly writes, restarts, and starts working.
3
STTM STM32 and STR91XF / Re: STM32 Software Versions
« Last post by mark on November 25, 2020, 02:41:27 PM »
Hi

I am sorry but I have never heard of such an effect and can't imagine what it is.
Does the binary loading still work normally? What did you change to cause the problem to start?

Regards

Mark
4
STTM STM32 and STR91XF / Re: STM32 Software Versions
« Last post by bob_STM32 on November 25, 2020, 12:24:49 PM »
Hello. Help, please. The firmware is recorded through the bootloader very slowly 5k - 2 minutes. What could be the reason?
5
STTM STM32 and STR91XF / Re: STM32 Software Versions
« Last post by mark on November 21, 2020, 06:11:41 PM »
Hi

There are these defines:

          //#define USB_MSD_REJECTS_BINARY_FILES                         // default is to accept binary files
            #define USB_MSD_ACCEPTS_SREC_FILES                           // optionally accept SREC content
          //#define USB_MSD_ACCEPTS_HEX_FILES                            // optionally accept Intel HEX content


If USB_MSD_ACCEPTS_SREC_FILES is enabled SRECs are accepted
If USB_MSD_ACCEPTS_HEX_FILES is enabled iHex are accepted
As long as USB_MSD_REJECTS_BINARY_FILES is NOT enabled ALSO binary files are accepted.

If USB_MSD_REJECTS_BINARY_FILES is enabled binary files are not accepted but the SREC and/or iHEX formats are.

Regards

Mark
6
STTM STM32 and STR91XF / Re: STM32 Software Versions
« Last post by bob_STM32 on November 21, 2020, 05:33:42 PM »
Thank you, everything worked.
Tell me, please.
The documentation describes the possibility to program the controller not with a BIN file, but with a HEX file.
How can this be implemented?
What HEX file format do you need? Intel HEX?
7
Disregard....

I got it working! Thanks so much for the assistance Mark!
8
Thanks for the reply Mark!

would these added lines go in the config.h file for the Serial Loader build? Just want to make sure.
9
Hi

The behavior is controlled by the macro

FORCE_BOOT()

In my version it is defined as:

    #define FORCE_BOOT()           ((_READ_PORT_MASK(C, SWITCH_1) == 0) || (SOFTWARE_RESET_DETECTED() && (*(BOOT_MAIL_BOX) == RESET_TO_SERIAL_LOADER))) // pull this input down to force boot loader mode (connect pin pad 22 to GND at reset)

which means that it can be forced to the loader mode with an input or by commanding it from the application.

Often the SD card loader is used in combination with an SD card detect input so that this input is used to force the loader mode, which means that it will jump directly to the application if there is no SD card inserted. Generally the SD card loader will be configured to start the application after the check has completed, whereby the macro RETAIN_LOADER_MODE() can be used to force it to stay in the loader:
In my version it is defined as:
#define RETAIN_LOADER_MODE()   (_READ_PORT_MASK(C, SWITCH_1) == 0)   // pull this input down to force boot loader mode (connect pin pad 22 to GND at reset)

If you prefer the loader to always check the SD card you can simply force it every time with

#define FORCE_BOOT()    1

To never hold the mode

#define RETAIN_LOADER_MODE()  0

Regards

Mark


10
I got the Serial Loader for teensy3.5 working but it requires the loader to start first before it will read the new software off of the SD Card. Is there a setting within the Serial Loader build process to have the Serial Loader start at power up every time?

My existing project with Teensy3.5 won't allow me to have specific pins pulled low or high at boot so I was wondering if there was a mechanism in the Serial Loader build process to just always have it boot and pull in the current the rev of software that will be residing on the SD Card?
Pages: [1] 2 3 ... 10