Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arduino Nano 33 ble - Bootloader custom (Read 684 times)
vslacs
Newbies
*
Offline


Posts: 2
Location: Italy
Joined: May 9th, 2024
Arduino Nano 33 ble - Bootloader custom
May 9th, 2024 at 12:25pm
Print Post  
Hi,
I built a custom board similar to the Arduino Nano 33Ble (nRF52840 cpu, MBED OS, 1Mb flash).
I implemented a bootloader with VisualMicro, I would like to install it instead of the Arduino bootloader, so I imagine at address 0x00, using a Segger j-link mini edu SWD programmer.

Then this, using the _start_application(0x000668A0) instruction, continue by launching the actual application.

With various attempts (modifying the link file linker_script.ld, board.txt, etc) I am unable to start our bootloader.

Can someone help me ?
Tanks


(0x00)-------bootloader --------------| (0x0668A0)------------------------------------------|
« Last Edit: May 9th, 2024 at 12:34pm by vslacs »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2495
Joined: Feb 13th, 2019
Re: Arduino Nano 33 ble - Bootloader custom
Reply #1 - May 9th, 2024 at 1:36pm
Print Post  
Thanks for the report.

Can you also attach/email the board.txt file so we can see what overrides are in place?

Can you also confirm the full path to the bootloader.hex you wish to use?
  
Back to top
IP Logged
 
vslacs
Newbies
*
Offline


Posts: 2
Location: Italy
Joined: May 9th, 2024
Re: Arduino Nano 33 ble - Bootloader custom
Reply #2 - May 10th, 2024 at 8:48am
Print Post  
thanks for the quick response.
Among various attempts, I had added an entry to the project's board.txt to force the starting address to 0x0  (which I don't remember).   Then I reported it as original, i.e. empty:

board.txt local:

# micro_boot build property overrides
#

I attach the board.txt of the ...AppData\Local\Arduino15\packages\arduino\hardware\mbed_nano\4.1.3 folder   but I have not modified it.

I made an attempt to edit the file DUINO_NANO33BLE\linker_script.ld :

original:

MEMORY
{
   FLASH (rx) : ORIGIN = 0x10000, LENGTH = 0xf0000
   ........

modified:

MEMORY
{
   FLASH (rx) : ORIGIN = 0x00000, LENGTH = 0xf0000
   ........

but it did not work. Restored to the original.

I also confirm that I always use complete paths.
The only thing, I always work with .bin files and not .hex.
Could it be a problem?

From your observation maybe I should work on the project's board.txt file. If you think that's the way to go, could you give me some advice on how to do it?

Thank you
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint